| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Current Level: 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
Capture the user’s input when they click the Send button.
In the button’s click handler (from Step 2), after validation and “Thinking…”, set userPrompt from the input (getValue(...) or direct DOM).
Log once: console.log("userPrompt:", userPrompt).
Capturing user input? You’ll need to get the value from the input field and store it in your variable. Check out the Input/Output section in SNIPPETS.md for the right function.
getValue with the correct input IDuserPrompt after the validation checkNext: Level 22 - Use Input in Model Call
| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Current Level: 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |