Skip to main content
Set followups=True to automatically generate followup prompt suggestions after each response. The agent makes a second model call to produce short, action-oriented prompts based on the conversation.
1

Create a Python file

followup_suggestions.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Agent

Options

Streaming

Followup suggestions are available via events when streaming. The FollowupsCompleted event carries the suggestions after the main response finishes.
followup_suggestions_streaming.py

Using a separate model

Use followup_model to offload followup generation to a cheaper model.

Developer Resources