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

Message

Sends a message to the Chat agent and triggers an AI response.

POST /api/agents/chat/message

Request Body

{ "message": "Hello, I need help with pricing.", "agentId": "123e4567-e89b-12d3-a456-426614174000", "site_id": "123e4567-e89b-12d3-a456-426614174000", "conversationId": "optional-uuid", "lead_id": "optional-uuid", "visitor_id": "optional-uuid", "team_member_id": "optional-uuid" }
ParameterTypeRequiredDescription
messagestringYesThe content of the message to send.
agentIdstringYesThe UUID of the agent handling the chat.
site_idstringYesThe UUID of the site.
conversationIdstringNoThe UUID of the conversation. If not provided, a new one is created.
lead_idstringNoThe UUID of the lead (if authenticated).
visitor_idstringNoThe UUID of the visitor (if anonymous).
team_member_idstringNoThe UUID of a team member if they are sending the message on behalf of a user.

Response

{ "success": true, "data": { "commandId": "uuid", "status": "completed", "conversation_id": "uuid", "conversation_title": "Pricing Inquiry", "messages": { "user": { "content": "Hello, I need help with pricing.", "role": "user" }, "assistant": { "content": "I can help with that. Our pricing starts at...", "role": "assistant" } } } }
Last updated on