Send Message
Sends a message to the Customer Support agent and triggers an AI response or tool execution.
POST /api/agents/customerSupport/message
Request Body
{
"message": "I have an issue with my order.",
"site_id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"origin": "website"
}| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Yes | The content of the message. |
site_id | string | Yes | The UUID of the site. |
userId | string | No | The UUID of the user sending the message. |
agentId | string | No | The UUID of the specific agent. |
conversationId | string | No | The UUID of the conversation. |
lead_id | string | No | The UUID of the lead (if identified). |
visitor_id | string | No | The UUID of the visitor (if anonymous). |
name | string | No | Name of the contact (for lead creation/identification). |
email | string | No | Email of the contact. |
phone | string | No | Phone number of the contact. |
origin | string | No | Channel origin: ‘website’, ‘email’, ‘whatsapp’, ‘chat’, ‘website_chat’. |
website_chat_origin | boolean | No | Legacy flag for website chat origin. |
Response
Returns the AI response, created/updated conversation details, and any tool outputs (e.g., ticket creation).
Last updated on