| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Current Level: 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
Verify your chatbot is fully functional and check off your progress.
Type “Hello” and click Send. Open DevTools Console tab to see “userPrompt: Hello” logs, and check the Network tab for the API call. You should see the AI response appear in your output card (not just the Console). Try a few different messages to make sure it works!
userPrompt variablesendToModel() updated to use dynamic user inputYour chatbot is now fully functional! Let’s add some polish.
When you’ve completed this level, commit your work with a meaningful message like:
git add .
git commit -m "feature: complete step 4 - wire user input to model call"
Next: Level 25 - Empty Input Handling
| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Current Level: 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |