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

Intervention

Allows a human team member to intervene in a chat conversation. This sends a message from a “team_member” role and can optionally trigger external notifications (e.g., via WhatsApp or Email) depending on the conversation channel.

POST /api/agents/chat/intervention

Request Body

{ "message": "I'm stepping in to help.", "user_id": "123e4567-e89b-12d3-a456-426614174000", "conversationId": "123e4567-e89b-12d3-a456-426614174000", "agentId": "optional-uuid", "site_id": "optional-uuid" }
ParameterTypeRequiredDescription
messagestringYesThe content of the intervention message.
user_idstringYesThe UUID of the team member performing the intervention.
conversationIdstringNoThe UUID of the conversation.
agentIdstringNoThe UUID of the agent.
site_idstringNoThe UUID of the site.

Response

{ "success": true, "data": { "interventionId": "uuid", "status": "completed", "conversation_id": "uuid", "message": { "content": "I'm stepping in to help.", "role": "team_member", "user_id": "..." }, "channel_send": { "success": true, "method": "whatsapp" } } }
Last updated on