Chatbot Operations
Send a live chat message
Send 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. This automatically stops the AI bot so that it does not interfere with human assistance. The name and avatar parameters 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 name and avatar parameters are ignored.
- 'user': The message is sent as a user message. The AI bot continues to operate normally. The name and avatar parameters 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.
post/live-chat
Request
- Base URL: https://api.chat-data.com/api/v2
- URL: https://api.chat-data.com/api/v2/live-chat
- Auth: HTTP bearer
Request body
Example request
{
"chatbotId": "6650f1c2a9e4b83d2c7a1f05",
"message": "Hi Jane, I'm Alex from the support team. Let me check your order status for you.",
"conversationId": "3f2b8c1e-9a4d-4e7b-8c2a-5d1e6f7a8b9c",
"name": "Alex Chen",
"avatar": "https://example.blob.core.windows.net/chatfiles/6650f1c2a9e4b83d2c7a1f05/agent-avatar.png"
}Response
Successful response.
Example response
{
"is_user_online": true,
"delivery": {
"channel": "Whatsapp",
"state": "accepted"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.