Send a live chat message
https://api.chat-data.com/ api/ v2/ live- chat/ live-chatSend a live chat message to an existing conversation of a chatbot. The message can be sent as a human agent (role: 'human'), as an assistant response (role: 'assistant') or as a user message (role: 'user').
Role behavior:
- 'human' (default): The message is sent as a human agent, and the AI bot stops answering so it does not interfere. In the website widget the conversation then goes to the agent. On WhatsApp, WhatsApp Web, Instagram, Messenger, Telegram and LINE the bot pauses for the integration's auto-off time after the last human message (30 minutes by default), and not at all if auto-off is turned off; use
/bot-controlto take over for longer. Thenameandavatarparameters are used for the human agent's identity. - 'assistant': The message is sent as an AI assistant response. The AI bot continues to operate normally. The
nameandavatarparameters are ignored. - 'user': The message is sent as a user message. The AI bot continues to operate normally. The
nameandavatarparameters are ignored.
If you want to take over the conversation as a human agent, use the default 'human' role. If you want to send assistant responses without stopping the AI bot, use the 'assistant' role.
Minimum API key access level: Full.
Request body
Sending 2 of 7 fieldschatbotIdstringconversationIdstringOnly these fields are sent (application/json).