v1
latestOpenAPI 3.0.32026-07-26870417.2 KBai
Trigger AI Reply
Triggers an AI-generated reply to a specific message in a chat. The AI agent processes the message context and generates an appropriate response asynchronously.
Requirements:
- Organization must have an active subscription
- Organization must be on the Pro plan
- AI agent must be enabled at the organization level
- AI agent must be enabled for the specific chat
This is an asynchronous endpoint - it queues the AI reply for processing and returns immediately with a trace ID for tracking.
post/ai/reply
Headers
x-phonestring
Example:919874532456
The connected WhatsApp phone number for scope validation
Request body
Example request
{
"chat_id": "120363025896399300@g.us",
"unique_id": "BAE58B775A57D71E",
"org_phone": "919874532456"
}Response
AI reply triggered successfully
Example response
{
"success": true,
"message": "AI reply triggered",
"trace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}