curl --request POST \
--url http://{your-domain}/v1/aibot/bots/{AgentId}/openai/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "Agent-xxxxx",
"messages": [
{
"role": "user",
"content": "This is a conversation message"
}
],
"stream": false
}
'{
"id": "record-427d3652",
"object": "chat.completion",
"created": "1726030224",
"model": "Agent-xxxx",
"choices": [
{
"index": 0,
"delta": {
"role": "assistant",
"content": "Hello"
},
"finish_reason": "continue"
}
]
}curl --request POST \
--url http://{your-domain}/v1/aibot/bots/{AgentId}/openai/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "Agent-xxxxx",
"messages": [
{
"role": "user",
"content": "This is a conversation message"
}
],
"stream": false
}
'{
"id": "record-427d3652",
"object": "chat.completion",
"created": "1726030224",
"model": "Agent-xxxx",
"choices": [
{
"index": 0,
"delta": {
"role": "assistant",
"content": "Hello"
},
"finish_reason": "continue"
}
]
}Token corresponding to the environment ID, obtained through login authentication
Agent conversation successful, streaming response
Was this page helpful?