Once the agent training is complete (status=done), you can ask it questions through the chat interface.
cURL Request Example
Authorizations
token
Body
application/json
agent UUID
Example:
"29db255d-211c-4fc6-8fbe-af97fa59cafa"
chat question
Example:
"How do I apply for XXX?"
chat messages
Example:
[
{
"text": "How long is the warranty period for your products?",
"role": "human"
},
{
"text": "Our products come with a standard one-year warranty.",
"role": "ai"
}
]
enable stream output
Example:
true
Session ID implemented by the third-party application.