---
title: "Agent sequencing within a single chat"
slug: "agent-sequencing-within-a-single-chat"
abstract: "SitecoreAI uses chats to work with AI and revisit previous AI-powered tasks."
---
# Agent sequencing within a single chat

*Agent sequencing* allows you to reuse the output of one agent as input for another agent within the same conversation.

For example:

1. The **Researcher** agent generates a *Research Document* for a specific topic. The document appears in the chat as an artifact.
2. When you reopen the conversation in **Chat**, you can select the existing artifact as context and run another agent.
3. You can select the research document and run another agent, such as the **Bulk Content Generator**, to build on the previous output.

    The second agent uses the earlier results to complete the next task, allowing agents to run sequentially within the same conversation.

![Using output from the Researcher agent as context for another agent.](https://doc.sitecore.com/api/markdown-image/sai/en/users/sitecoreai/images/agstd-chat-chain-agents.png)

This allows you to:

- Chain multiple agents within a single conversation.
- Share context and outputs across agents.
- continue evolving your work over time without restarting the chat.

Alternatively, you can chain agents for multi-step workflows by [adding more agents within a space](https://doc.sitecore.com/sai/en/users/sitecoreai/working-with-agentic-studio/understanding-spaces/run-additional-agents-within-a-space.html "Run additional agents within a space").