Skip to main content
Set followups=True to generate prompt suggestions when a run returns content. Agno makes a second model call using the user input and response.
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 run followup generation with a separate model.

Developer Resources