/api/v1/chatTalk to the clone
Send a message and get the clone's full reply as JSON (no streaming), with its structured actions: recommended product, link, video, offer to talk to a human. Same engine as the web and WhatsApp (knowledge, FAQs, catalogue). Each reply counts as 1 against your plan's monthly responses, and conversations show up in the panel under the "API" channel. It also respects the monthly limit configured for that clone (403 cap_reached) and stops automated repetition before generating a reply (429 automated_repetition).
Body (JSON)
messagestring 1..4000requiredThe user's message (max 4000 characters).
conversation_idintegerContinues that thread (returned by a previous call). If sent, visitor fields are ignored.
visitor_external_idstringYOUR stable id for the end user (recommended for systems). Each user keeps a rolling thread.
visitor_emailstringIdentify the user by email (joins the widget's email-verified visitor, if any).
visitor_namestringversion_idintegerWhich clone replies. Omit = your active clone.
new_conversationbooleantrue opens a fresh thread instead of continuing the latest one (e.g. a different ticket).
curl -X POST "https://www.clonify.com/api/v1/chat" \
-H "Authorization: Bearer clk_live_…" \
-H "Content-Type: application/json" \
-d '{"message":"…"}'{
"object": "chat.reply",
"conversation_id": 412,
"visitor_id": 88,
"reply": {
"content": "¡Claro! Para empezar con la sentadilla te recomiendo…",
"actions": [
{ "type": "product", "product_id": 172 },
{ "type": "link", "url": "https://example.com/guia", "label": "Ver la guía" }
]
},
"usage": { "input_tokens": 5210, "output_tokens": 240 }
}