For the complete documentation index, see llms.txt. This page is also available as Markdown.

Human Agent Handoff Notifications

When a conversation is assigned to a human support agent, notify internal staff through the Notification Center and Email, and notify external systems through Webhook when a handoff is triggered, assi

When a conversation is handed over from the AI to a human and assigned to a support agent, MaiAgent can send notifications through Email, the Notification Center, and Webhook notifications (system integration). The first two channels alert agents and supervisors; the Webhook lets external systems such as dispatch, alerting, or CRM systems take over from there. It also sends events when the AI decides to hand off to a human, when a conversation is returned to the AI, and when the queue times out, so an external system with its own human support team can take over completely.

Guide navigation: This page covers one step of conversation platform setup. For the complete text-support rollout process, see Text Support: From Zero to Launch.

This feature is part of “Human Support Handoff Settings.” Notifications are sent only after human support handoff is enabled on the conversation platform.

When Are Notifications Sent?

Notifications have three channels that can each be turned on or off separately. Email and the Notification Center are sent when a conversation is assigned to an agent (Human Assigned). Webhook covers the following four human handoff lifecycle events:

  • Email notification: Sent to the assigned agent. Carbon copy (CC) recipients, such as supervisors, also receive the same email (all recipients can see each other).

  • Notification Center announcement: A “Human handoff notification” announcement is sent to the assigned person and the CC recipients through the bell icon (Notification Center) at the top right of the admin interface, with a link to the conversation.

  • Webhook notification (system integration): Sends JSON events for the human handoff lifecycle to an HTTPS URL set by the administrator, so external systems can automatically open tickets, take over conversations, or raise alerts: handoff.requested when the AI decides to hand off to a human, handoff.assigned when the conversation is assigned to an agent, handoff.returned_to_ai when an agent clicks Return to AI Agent to hand the conversation back to the AI, and handoff.queue_timeout when the conversation is automatically returned to the AI after a queue timeout. The four events correspond to “Handoff triggered,” “Human agent took over,” “Returned to AI Agent,” and “Queue timeout” on the conversation timeline.

What Notifications Do Not Do

  • Clicking the link in an Email or announcement only opens the conversation; it does not automatically switch the conversation to human response mode. After entering the conversation, the agent must still click the Take Over button at the top of the conversation to stop the AI's automatic replies and take over as a human.

  • Notifications are not sent to customers. They are purely internal reminders for staff, and the handoff message the customer sees is unaffected.

  • The Webhook sends only the identifiers required by the event and a link to the conversation in the admin interface. It does not include conversation text, and it does not provide converters specific to any third-party system.

Use Case

A support supervisor wants every human handoff to enter the company's dispatch system automatically, instead of relying on people watching announcements or Email. She opens the conversation platform's Human Support Handoff Settings, turns on Webhook notification (system integration) in the Notifications tab, enters the HTTPS receiving URL of the company's dispatch system, and saves. The next time a conversation is assigned to an agent, the dispatch system immediately receives a handoff.assigned event and creates a ticket automatically. When the agent finishes and clicks “Return to AI Agent,” the dispatch system receives handoff.returned_to_ai and closes the ticket automatically. The supervisor never has to copy and paste any information by hand.

How to Set Up Notifications

1

Open Notification Settings

  1. Go to Customer Support Conversations → Conversation Platforms, and click Edit on the conversation platform you want to configure.

  2. In the left settings menu under “Advanced Features,” click Human Support Handoff Settings, and first confirm that Enable Human Support Handoff at the top is turned on.

  3. Click the Notifications sub-tab.

If human handoff is not yet enabled, Human Support Handoff Settings in the left menu is labeled “Not configured,” and the page shows only the Enable Human Support Handoff switch; sub-tabs such as Notifications do not appear. Turn on human support handoff and save first, then continue with the settings below.

2

Choose Notification Channels

The Notifications tab provides three independent switches that you can turn on or off as needed:

  • Notification Center announcement: When a conversation is assigned, sends an announcement through the Notification Center to the assigned person and the CC recipients.

  • Email notification: When a conversation is assigned, sends an Email to the assigned person and CC notifications to the specified recipients.

  • Webhook notification (system integration): Sends events to the specified external system when the AI decides to hand off to a human, when a conversation is assigned, when it is returned to the AI, and when the queue times out. Off by default; turn it on when you need the integration.

If you turn off only one channel, the other enabled channels continue to send as usual.

Notifications sub-tab of Human Support Handoff Settings
Human Support Handoff Settings → “Notifications” sub-tab: three channel switches, CC recipients, and notification templates
3

Set Up the Webhook (Optional)

  1. Turn on Webhook notification (system integration). The Webhook fields expand below.

  2. In Webhook URL, enter the receiving URL of the external system. The URL must start with https://. If you leave it blank, the message “Webhook URL is required when Webhook is enabled” appears; if you enter http://, the message “Webhook URL must use HTTPS” appears. In both cases you cannot save.

  3. If the receiver needs to verify the source of events, enter a mutually agreed secret in Signing secret (optional). Once signing is enabled, every delivery includes the X-MaiAgent-Signature-256 header.

Webhook URL and signing secret fields after Webhook notification is turned on
The “Webhook URL” and “Signing secret (optional)” fields that expand after you turn on Webhook notification (system integration)

Managing the secret afterward:

  • After the secret is saved, it is never shown again, and the field changes to the prompt “Already set — leave blank to keep unchanged.” To change the secret, enter a new value and save; leave the field blank to keep the existing secret.

  • To stop signing, click Clear secret next to the field and confirm. After it is cleared, deliveries no longer include the signature header; if the receiver is verifying signatures, it will start rejecting events, so adjust the receiver before clearing.

For the event field format, signature verification method, and retry behavior, integration engineers should refer to Human handoff Webhook events in the API documentation. If human agents will take over replies in your own support system, the section “Handing the conversation to an external system after handoff” on the same page explains how to combine the conversation platform's Webhook (message sending and receiving) with the message API to achieve two-way synchronization.

4

Set CC Recipients (Optional)

If you want supervisors or others to stay informed about human handoffs, set CC recipients:

  • Send CC notifications (members): Select the members to receive CC notifications (for example, supervisors).

  • Send CC notifications (groups): Select the groups to receive CC notifications; a group is automatically expanded to all of its members.

The assigned agent is automatically excluded from the CC recipients (so they do not receive a duplicate copy).

5

Customize Notification Templates (Optional)

Four template fields let you customize the text of notifications. Default templates are filled in when you turn on human handoff:

  • Announcement title template

  • Announcement content template

  • Email subject template

  • Email body template

The following variables can be used in templates and are automatically replaced with the actual content of the conversation when sent:

Variable
Replaced with

{agentName}

Name of the assigned support agent

{inboxName}

Name of the conversation platform (support channel)

{customerName}

Name of the customer (visitor)

{conversationUrl}

Link to the conversation

Editing notification templates
The four template fields and the available variable hints
Default template reference

Email subject template

Email body template

Announcement title template

Announcement content template

6

Save Settings

Save when you are done, and the settings take effect immediately. After that, the system sends notifications according to each channel's switch and event scope: Email and the Notification Center send only on assignment, while Webhook sends when the AI decides to hand off to a human, on assignment, when returned to the AI, and when the queue times out.

When you turn off Enable Human Support Handoff, notifications stop being sent, but the notification settings are kept; turning human handoff back on restores the original settings.

What Agents and Supervisors Receive

Email Notification

The assigned agent receives a MaiAgent-branded Email whose subject and body are generated from the templates and which contains a link to the conversation. The configured CC recipients receive the same email as carbon copies (all recipients can see each other).

Notification Center Announcement

Click the bell at the top right of the admin interface to open the Notification Center, then switch to the Organization Announcements tab to see announcements of the type Human handoff notification. Click Go take over in the announcement to open the conversation directly. For full details on the Notification Center, see Notification Center.

Human handoff notifications are high-frequency transactional events. To keep them from flooding the announcement list, these announcements expire automatically 7 days after they are sent.

What the External System Receives

The external system receives a JSON event that contains only identifying information: the event name, event ID and time of occurrence, the conversation, the conversation platform, the organization, the customer, the ID of the agent assigned at the time of the event, and a link to the conversation in the admin interface. It contains no conversation text. All four events have the same fields; for events with no assigned agent (handoff triggered, returned to AI, queue timeout), the assigned agent is empty. For detailed fields and verification examples, see Human handoff Webhook events in the API documentation.

Notes

  • Permissions: Only people with permission to configure the conversation platform can view and edit notification settings; the existing human handoff settings permissions apply.

  • Agent has no Email: If the assigned agent has no Email set, the system automatically skips the Email channel, but the Notification Center announcement is still sent as usual and other recipients are unaffected.

  • Channels are independent: Email, the Notification Center, and Webhook each operate on their own. A failure in one does not affect the others or the conversation assignment process.

  • Webhook failure handling: If the external endpoint times out or returns an error, the system automatically retries three times in the background; during this time, human handoff and the other notification channels continue to work as usual. The receiver should use the event ID to remove duplicate events.

  • Different from the conversation platform's “Webhook”: The conversation platform has a separate Webhook feature that delivers the conversation messages themselves; the human handoff Webhook sends only human handoff status events. The two have independent settings and secrets and do not affect each other.

  • Agents still need to take over after entering the conversation: As noted above, the link only opens the conversation itself; actually taking over still relies on the Take Over button at the top of the conversation.

Last updated

Was this helpful?