Chat with a chatbot
smartwebchat_chatSend a visitor message to a chatbot and get its reply, exactly as a website visitor would see it. Use this to test how the chatbot answers, or to check whether its knowledge base covers a topic. Records a conversation and uses the account's message quota, so it needs a key with full access; a read-only key gets 403 here. Also accepts an OAuth access token with scope assistant:write.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"botId": "<botId>",
"message": "<message>"
},
"name": "smartwebchat_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| botId | Yes | ID of the chatbot, taken from smartwebchat_list_chatbots | |
| message | Yes | The visitor message to send (max. 2000 characters) | |
| sessionId | No | Optional: pass the same session ID again to continue an existing conversation |