Human in the loop
Human in the Loop
Human in the Loop (HITL) is the connective tissue between raia Copilot and raia Chat. It defines how an AI agent recognizes its own limits, pauses, and hands the conversation over to a human — then how that human passes control back once the issue is resolved.
What you will learn
- When and why an agent should escalate to a human
- How the Escalation Skill triggers a handoff into Copilot
- How human takeover works inside a live Chat conversation
- How supervised responses and feedback flow back into training
Why Human in the Loop matters
No agent is perfect on day one, and some interactions — high-value deals, sensitive customer issues, edge-case questions — should always involve a person. HITL turns that reality into a designed workflow instead of a failure mode: the agent handles what it can confidently handle, and a human quietly steps in for the rest.
The three HITL patterns
Escalation (agent-initiated)
The agent's Escalation Skill fires — low confidence, an explicit keyword, or a business rule — and routes the conversation to the right team in Copilot. The customer sees a graceful handoff; the operator sees full context.
Human Takeover (operator-initiated)
An operator watching a Live Conversation in Copilot decides to jump in and reply directly. The agent yields control, the human drives the conversation, and the transcript stays unified across both speakers.
Supervised responses (approve & send)
For higher-stakes flows, the agent drafts a reply but waits for a human to approve, edit, or reject it before it goes out. Great for early rollouts and regulated channels.
How Copilot and Chat work together
- 01
Agent detects a handoff condition
Escalation Skill matches an intent, sentiment, or explicit request from the end user in Chat.
- 02
Conversation surfaces in Copilot
The live conversation is flagged, routed to the right team, and full transcript + agent reasoning are visible to the operator.
- 03
A person steps in
In Copilot's Admin mode, a Copilot Admin can open the conversation, assign it to a teammate, change its state and reply on behalf of the agent. Which controls you see depends on your role and the agent's Copilot settings.
- 04
Wrap up the conversation
When the issue is handled, update the conversation's state so your team knows it's done. Check how the agent answers the customer's next message before relying on it to carry on.
- 05
Feedback loops into training
The operator can give feedback on answers. With the Feedback skill on, that feedback becomes a document in raia Command that you review alongside Instruction Builder to improve the agent's instructions.
Auto vs Manual Mode
Before using a mode with customers, check how it changes agent responses and operator control in your configured channel.
Auto mode
If Auto mode is available, test what starts a human handoff, what the agent does while waiting, and how control returns. Record what the user and operator each see.
Manual mode
If Manual mode is available, use a safe example to check what an operator can review, change or send, and how the conversation continues.
Setup guides
Step-by-step walkthroughs for configuring each part of the Human in the Loop workflow.
Guide 01
Setting up the Escalation Skill
Walk through enabling and configuring the Escalation Skill so your agent hands off to the right human team at the right moment.
Guide 02
Notification & Routing in escalations
Configure how escalations notify the right people and route to the right team — so handoffs land where they can be acted on immediately.
Guide 03
Inline Chat Escalation
If your chat setup offers human handoff, use an approved fictional request to check what the user sees and where the request goes.
Guide 04
Receiving escalation in Copilot
Use the conversation controls available to your role and verify where an approved test handoff appears before relying on its notifications.
Guide 05
Taking over a conversation
Check how an operator takes control of a conversation and returns it to the agent on your configured channel.
Guide 06
Handing back to AI
After a human responds, verify how control returns to the agent and what both sides see.
Human Oversight
Recommended practice: name the person responsible for reviewing higher-risk actions. Define what needs approval, then check which review and logging features your setup provides.
Review queues
Where your workflow supports it, route higher-risk responses to a person for review. Test the review, edit and rejection steps before using them with customers.
Audit trails
Check which events your deployment logs and where reviewers can find them. Keep the test records needed to verify what actually happened.
Approval gates
For a sensitive action, configure an approved review step and test that the action waits for authorization. Match the check to your actual workflow.
Related documentation
Skill
Escalation Skill
Configure when and how agents hand off to humans.
Product
raia Copilot
The operator surface for supervising and taking over conversations.
Product
raia Chat
The end-user channel where handoffs happen seamlessly.
Guide
Live Chat Setup
Enable live chat so humans can take over from the agent.
Best practice