Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
AgentsCustomer Support

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" }
ParameterTypeRequiredDescription
messagestringYesThe content of the message.
site_idstringYesThe UUID of the site.
userIdstringNoThe UUID of the user sending the message.
agentIdstringNoThe UUID of the specific agent.
conversationIdstringNoThe UUID of the conversation.
lead_idstringNoThe UUID of the lead (if identified).
visitor_idstringNoThe UUID of the visitor (if anonymous).
namestringNoName of the contact (for lead creation/identification).
emailstringNoEmail of the contact.
phonestringNoPhone number of the contact.
originstringNoChannel origin: ‘website’, ‘email’, ‘whatsapp’, ‘chat’, ‘website_chat’.
website_chat_originbooleanNoLegacy 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