Patient Experience
Contact Centres

Switch AI agents between business units

Workflow purpose

This guide demonstrates how to use Proto's platform to hand a customer off between two AI agents run by different business units within the same organisation – for example, from a general support agent to a specialist billing or claims agent. Large organisations often run separate AI agents per business unit for good reason – different training data, different escalation paths – but the customer shouldn't feel that seam. This workflow uses Proto's AI Agent Network to pass the conversation across with full context.

Who can benefit from this guide:

  • Enterprises running separate AI agents per department or business unit
  • Support teams handing off from general enquiries to a specialist team
  • Operations teams wanting a single "no wrong door" customer experience
  • Multi-brand organisations sharing a Proto workspace across units

Switch between business units

This workflow confirms the handoff with the customer, then transfers the conversation to the receiving business unit's AI agent with full context – unless the customer would rather stay put. See how to switch AI agents between business units.

Just starting with the platform?
For initial setup of your AI agent – including workspace setup, agent training, and channel deployment – please start here. This workflow guide assumes your AI agent is set up and ready for more advanced configurations.

1. Create a trigger

Purpose: Catch the moment a customer’s request belongs to a different business unit.

  • Navigate to the Workflows tab in the AI agent settings.
  • Click New workflow and select Message received as the Workflow type.
  • Name the trigger “Business unit handoff”.
  • Add a description such as “Triggers when the customer’s request matches a specialist team’s scope rather than general support.”

2. Confirm the handoff

Purpose: Give the customer a say before they’re transferred anywhere.

  • Add a Send message action: “This looks like something our {destination_team} can help with faster. Shall I transfer you? No need to repeat what you’ve told me.” with quick replies Yes, transfer me, No, keep going here.
  • Add a Set variable action to capture the reply as handoff_choice – quick reply selections aren’t captured automatically, so this step reads _user_input into the variable.

3. Branch on the customer’s choice

Purpose: Only transfer the conversation if the customer actually agreed to it.

  • Add a Branch action. Condition: _.lower(handoff_choice) == "yes, transfer me".
  • If false: Send message – “No problem, let’s keep going here.” – and end this flow.

4. Handoff confirmation

Purpose: Tell the customer the transfer is happening so they aren’t left wondering.

  • Add a Send message action before the handoff: “I’m connecting you with {destination_team} now.” Once the handoff runs, the chat has left this AI agent, so it can’t send anything afterwards.

5. AI agent handoff

Purpose: Transfer the conversation with everything already collected.

  • Add an AI agent handoff action. In AI Agent, select the destination business unit’s AI agent, or select Connect external AI Agent and enter the AI Agent ID, AI Agent secret and Platform domain from External AI Agent handoff on that AI agent’s Network tab, then Verify & Save.
  • There’s nothing else to map – the handoff passes the customer’s name and contact details, their latest message and every variable collected so far. The receiving AI agent reads them from _transferred_context, e.g. {_transferred_context["issue_description"]} and {_transferred_context["account_reference"]}.
  • If more than one business unit can receive chats, add a Branch on the unit and one AI agent handoff per unit.
  • Under When external AI agent transfer failed, add a Live agent handoff to your general support team, so the customer still gets help.

6. Test the flow

Purpose: Confirm the receiving team gets a complete, usable handoff, and that declining actually works.

  • Run a test conversation on your Webchat – the AI agent tester isn’t a supported channel for AI agent handoff, so there the action always takes When external AI agent transfer failed. Collect a few fields, trigger the handoff, and confirm the receiving AI agent picks up the chat and can read the transferred context.
  • Test with the destination team’s agent offline or unpublished, and confirm the When external AI agent transfer failed branch hands the customer to a live agent rather than a silent drop.
  • Test declining the handoff and confirm the conversation continues with the original agent rather than transferring anyway.