> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Team with Followup Suggestions

> Generate followup prompt suggestions from a team's completed response.

Set `followups=True` on a Team to generate followup prompt suggestions when the main response has content. Followup generation makes a second model call and works with all team modes.

<Steps>
  <Step title="Create a Python file">
    ```python team_followup_suggestions.py theme={null}
    from agno.agent import Agent
    from agno.models.openai import OpenAIResponses
    from agno.team import Team, TeamMode

    researcher = Agent(
        name="Researcher",
        role="Research topics thoroughly",
        model=OpenAIResponses(id="gpt-5.4-mini"),
    )

    team = Team(
        name="Research Team",
        model=OpenAIResponses(id="gpt-5.4-mini"),
        mode=TeamMode.coordinate,
        members=[researcher],
        followups=True,
        num_followups=3,
    )

    response = team.run("What are the latest advances in fusion energy?")

    print(response.content)
    print("\nFollowup suggestions:")
    for i, suggestion in enumerate(response.followups or [], 1):
        print(f"  {i}. {suggestion}")
    ```
  </Step>

  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno openai
    ```
  </Step>

  <Step title="Export your OpenAI API key">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export OPENAI_API_KEY="your_openai_api_key_here"
      ```

      ```powershell Windows theme={null}
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run Team">
    ```bash theme={null}
    python team_followup_suggestions.py
    ```
  </Step>
</Steps>

## Options

| Parameter        | Type           | Default | Description                                                     |
| ---------------- | -------------- | ------- | --------------------------------------------------------------- |
| `followups`      | `bool`         | `False` | Enable followup suggestion generation                           |
| `num_followups`  | `int`          | `3`     | Number of suggestions to generate (minimum 1)                   |
| `followup_model` | `Model \| str` | `None`  | Model used for followups. When unset, the team's model is used. |

If the followup model call fails, the team response still completes and `response.followups` can be `None`.

## Streaming

Followup suggestions are available via events when streaming.

```python team_followup_streaming.py theme={null}
import asyncio

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.team import Team, TeamMode, TeamRunEvent

researcher = Agent(
    name="Researcher",
    role="Research topics thoroughly",
    model=OpenAIResponses(id="gpt-5.4-mini"),
)

team = Team(
    name="Research Team",
    model=OpenAIResponses(id="gpt-5.4-mini"),
    mode=TeamMode.coordinate,
    members=[researcher],
    followups=True,
    num_followups=3,
)


async def main():
    async for event in team.arun(
        "What are the latest advances in fusion energy?",
        stream=True,
        stream_events=True,
    ):
        if event.event == TeamRunEvent.run_content and event.content:
            print(event.content, end="", flush=True)

        if event.event == TeamRunEvent.followups_completed:
            print("\n\nFollowup suggestions:")
            for i, suggestion in enumerate(event.followups or [], 1):
                print(f"  {i}. {suggestion}")


asyncio.run(main())
```

## Developer Resources

* [Agent followup suggestions](/agents/usage/agent-with-followup-suggestions)
* [Team reference](/reference/teams/team)
* [TeamRunOutput reference](/reference/teams/team-response)
