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

# Connected agents

One agent should have one responsibility. When a process involves several intentions, such as qualifying a lead and then collecting a payment, split it into agents and connect them with transfers. Each agent stays short, testable, and easy to fix. This is the multi-agent setup the Nexor team shows at the end of every onboarding.

## Why split

A single agent with one very long prompt has to juggle every situation at once. Symptoms appear quickly: it skips steps, mixes rules from different flows, and every edit risks breaking something else. Splitting by intention keeps each prompt focused on one outcome, gives each agent its own pipeline, variables, tools, and follow-up rhythm, and lets you test each piece alone.

Split when goals, rules, tools, cadence, risk, ownership, or completion criteria differ materially. Keep one agent when they do not.

## How a transfer works

A transfer is configured on a **pipeline stage**. When a lead enters that stage, Nexor moves it to the target agent.

<Frame caption="A stage configured to transfer the lead to another agent.">
  <img src="https://mintcdn.com/nexor/335V9P_gdO6wPMqv/images/getting-started/stage-transfer-config.png?fit=max&auto=format&n=335V9P_gdO6wPMqv&q=85&s=ac53e25783acb84747f0d683763a60d9" alt="Pipeline stage with transfer configuration" width="1600" height="900" data-path="images/getting-started/stage-transfer-config.png" />
</Frame>

* **The conversation history always carries over.** The next agent continues the same thread; the lead does not notice a restart.
* **You choose which fields to copy.** Variables collected by the first agent can prefill the next one, so nothing is asked twice.
* **The receiving agent starts in its own pipeline** with its own rules, tools, and follow-up rhythm.

## Example: qualify, then send a payment link

| Agent     | Responsibility                                                                                            | Hands off when                                                                                                        |
| --------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Qualifier | Confirm fit, collect the required variables, and detect purchase intent.                                  | The lead reaches the **Qualified** stage, which transfers to the Payment agent with budget and product fields copied. |
| Payment   | Confirm the order details and send the payment link. Resolve payment blockers without changing the offer. | The lead pays, declines, or needs a person. Ends in a terminal stage.                                                 |

Other common pairs: a support agent that transfers sales questions to a sales agent, an information agent that transfers ready-to-book leads to a booking agent, and a collections agent that transfers disputes to a human-review stage.

## Design the handoffs before building

Fill in one row per agent before you create anything. It prevents loops and makes ownership clear.

```text theme={null}
Agent:
Responsibility (one sentence):
Starts when:
Transfers to:            on stage:            copying fields:
Ends in (won / lost / human review):
```

Rules of thumb:

* Every lead must end with one agent that owns the final outcome.
* Transfers go forward. Avoid A → B → A unless there is a clear reason and a stop condition.
* Name agents by intention: "Qualifier", "Payment", "Booking", not "Agent 2".

## Build the system

* **With NexorGPT:** describe the flow and the agents you want. NexorGPT proposes the system, creates the agents, and configures the transfer stages. See [Build with NexorGPT](/docs/en/guides/getting-started/build-with-nexorgpt).
* **In settings:** create each agent, then open the stage that should hand off and configure the transfer target and the fields to copy.
* **From the API or MCP:** developers can set transfers on a stage programmatically. See [Update pipeline structure](/docs/en/api/workflows/update-workflow-structure) and the [MCP server](/docs/en/api/mcp-server).

## Test the whole flow

Open the playground on the first agent and drive the conversation to the transfer condition. Then confirm that the next agent picked up with the history and the copied fields, and that it follows its own rules from there. See [Test in the playground](/docs/en/guides/getting-started/test-in-playground).

## Group agents for reporting

Agents that belong to the same process can be rolled up under a **Group**, so the dashboard shows one combined figure for the whole flow rather than one per agent. Set it under **Roll up reporting under** in each agent's advanced settings. See [Agent settings](/docs/en/guides/agents/settings#roll-up-reporting-under).

## Next

Hand the technical pieces to your team with [For developers](/docs/en/guides/getting-started/for-developers), or go to the [Launch checklist](/docs/en/guides/getting-started/launch-checklist).
