Webhook
Webhook callback integration:Send visitor messages and replies from Agents and human support staff on a conversation platform to your own system in real time—for customer service integration, real-tim
Purpose
Webhooks are configured on a conversation platform. Once a developer provides an API endpoint (a URL), MaiAgent sends the message content to that URL whenever a message is created on the platform. This lets you integrate conversations into your own system, for example, to record them, forward them to users, or use them in other applications.
Each conversation platform can have multiple Webhooks, each with its own message direction:
Outgoing
When a reply from an Agent or human support staff is created
Incoming
When a visitor message is created
Receive
When an external customer service platform sends messages back to MaiAgent (currently supports Genesys Cloud)
The payload, response, and status code of each delivery are recorded for review and troubleshooting. See View Delivery Records below.
Add a Webhook
1. Open Webhook Settings
Go to Customer Service Conversations → Conversation Platforms, click Edit on the platform you want to configure, and open Webhook Settings:
API platforms: In the “Integration and Login” group in the left menu.
Messaging platforms such as LINE, Slack, and Microsoft Teams: In the top tab bar.
Web and internal platforms do not have this setting. To see which platforms support Webhooks, see the Platform Support Matrix.
2. Fill In the Webhook Fields
Click Add Webhook, fill in the following fields, and save:
Name
A custom name for easy identification
Type
Outgoing, Incoming, or Receive. See the type descriptions above. Receive uses different fields; see Fields for the Receive Type below
Enabled
When disabled, deliveries stop, but the settings are retained
Webhook URL
The URL where your system receives data
HTTP Method
Use POST (default), PUT, or PATCH
Headers
Custom headers included in every delivery, such as an API key required by your system
Secret Token
An optional signing secret. When configured, every delivery includes an HMAC signature and a timestamp header. Your system can use the same Secret Token to confirm that the request came from MaiAgent and that its content has not been tampered with. See Verify the Delivery Source with a Secret Token below. The value is not displayed after saving. When editing, leave it blank to keep the existing value; enter a new value to update it. This field is hidden when the payload format is Genesys Cloud
Payload Format
MaiAgent Standard (standard format), Genesys Cloud, or a Custom Template written in Jinja2 (available variables are listed in the form). When Genesys Cloud is selected, the Webhook URL and Headers are generated automatically from the Genesys Cloud Integration section below, and Secret Token is hidden
Verify the Delivery Source with a Secret Token
Example: Acme Shopping wants to sync visitor messages from its website support channel to its own customer management system. Its engineers want the system to accept only data actually sent by MaiAgent. The support manager adds an Incoming Webhook in the API platform’s Webhook Settings, enters the customer management system’s receiving URL in Webhook URL, enters the secret agreed with the engineers in Secret Token, and clicks Confirm to save. Every subsequent visitor message delivery includes a signature, and the engineers’ code rejects any delivery that fails verification.
Enter a secret in the Secret Token field of the Webhook form, then click Confirm. This field is available for all three types: Outgoing, Incoming, and Receive.
Give the same secret to the engineers responsible for the receiving system. For signature header names and verification steps, see Verify Signatures and Timestamps in the technical manual.
To rotate the secret, click the edit icon in the Webhook list, enter a new value in Secret Token, and save. This field is always blank when editing and never shows the current secret. Saving it blank keeps the existing secret.

Fields for the Receive Type
Receive works in the opposite direction: an external customer service platform sends messages into MaiAgent. Instead of entering your own URL, MaiAgent provides a receiving URL for the external platform:
Default Payload Format
The format sent by the external platform. Currently supports Genesys Cloud (conforming to the Genesys Cloud Open Messaging API format)
Secret Token
The secret used for signature verification. It must match the setting on the external platform. When editing, leave it blank to keep the existing value; enter a new value to update it
Receiving URL
Appears only after saving. Copy this URL and set it as the outbound webhook URL on the external platform
Genesys Cloud Integration
For Outgoing/Incoming Webhooks with Genesys Cloud selected as the payload format, a “Genesys Cloud Integration” section appears at the bottom of the form. Enter these settings once to apply them to all Genesys Cloud Webhooks on this conversation platform:
Region
The region of your Genesys Cloud organization
OAuth Client ID/OAuth Client Secret
Genesys Cloud OAuth Client Credentials, which must have the conversation:message:create permission. MaiAgent uses them to obtain a token automatically, so you do not need to enter Headers manually
Integration ID
The Open Messaging Integration ID under Genesys Cloud Admin → Message → Platforms
After filling in the fields, click Test Connection to check that the credentials are valid, then save. If Genesys Cloud later reports invalid credentials, a warning appears above the Webhook list with the number of affected Webhooks. Click Edit Integration Settings, re-enter the Client Secret, and save. Remove Integration prevents the configured Genesys Cloud Webhooks from sending messages. For the full integration procedure, see Third-Party Customer Service System Integration in the technical manual.
3. Verify Delivery
Send a message on the conversation platform, then check that the status code is 2xx in Delivery Records.
View Delivery Records
Go to AI Features → AI Assistants, select the Agent connected to this conversation platform, and switch to the Webhook tab. The list shows the conversation ID, message ID, URL, status code, and creation time for each delivery. Click the view icon in the actions column to see the request preview, request JSON, and response content.
The Agent’s Webhook tab contains only delivery records, collecting Webhook results from all conversation platforms under that Agent. To add, edit, or disable a Webhook, return to Webhook Settings on the relevant conversation platform’s settings page (see Add a Webhook). If an Agent connects to multiple platforms, use the conversation ID in the list to identify which platform the conversation belongs to.
Use Cases
Customer Service System Integration
After an Agent answers a user’s question, use a Webhook to sync the reply to your organization’s customer service system so support staff can review conversation records, follow up, or take over manually.
Real-Time Notifications
Send Agent replies or specific events (such as anomalies) to communication tools such as Slack, Line Notify, and Email to alert the relevant staff to take action promptly.
Data Analytics and Archiving
Automatically send all AI conversation data to a data warehouse, cloud database, or Google Sheets for usage analysis, quality evaluation, or interaction record archiving.
Internal Workflow Automation
When users report issues, request resources, or report anomalies through an Agent, Webhooks can automatically send the data to internal form systems or task management tools (such as Jira and Notion) for follow-up tracking.
Difference from Handoff Notifications
The Webhooks on this page deliver individual messages. To notify an external system when a conversation is handed off to a human, returned to AI, or times out in the queue, use Webhook Notifications (System Integration) in the human handoff settings. The two features are configured independently.
Last updated
Was this helpful?