Overview
After the AI responds, ChatJS can generate contextual follow-up questions using a fast, cheap model. These appear as clickable buttons below the last assistant message. Clicking a suggestion sends it as a new user message.Quick Start
Enable follow-up suggestions inchat.config.ts:
How It Works
- The main AI response completes
- A fast model generates 3-5 contextual follow-up questions
- Suggestions stream to the client as the model produces them
- They render as buttons below the last assistant message
- Clicking a suggestion sends it as a new user message
Configuration
Model Selection
Configure which model generates suggestions inchat.config.ts:
Related
- Follow-up Questions Cookbook for implementation details and code walkthrough