π¬Chat with Chatbot
Endpoint
POST https://app.wonderchat.io/api/v1/chatRequest Parameters
Parameter
Type
Required
Description
Example Request (JSON Response)
curl --location --request POST 'https://app.wonderchat.io/api/v1/chat' \
--header 'Content-Type: application/json' \
--data-raw '{
"chatbotId": "YOUR_CHATBOT_ID",
"question": "Hello there!",
"chatlogId": "YOUR_CHATLOG_ID",
"context": "You are speaking with John, a 28 year old salesperson from Canada. English is not his native language, so please refrain from using complicated words.",
"contextUrl": "https://yourwebsite.com/john-info",
"stream": false
}'JSON Response Format
Response Fields
Field
Type
Description
Streaming
Streaming Request
Streaming Event Types
Event
Data Shape
Description
Example Stream
Server Consumption Example (Node.js)
Use Cases
Last updated
Was this helpful?