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.
Headers
The connected WhatsApp phone number for scope validation
"919874532456"
Body
The unique identifier of the chat to reply in
"120363025896399300@g.us"
The unique_id of the message to reply to. The AI will use this message and its surrounding context to generate a reply
"BAE58B775A57D71E"
The phone number of the organization (connected WhatsApp number) in the format country_code + number without special characters
"919874532456"