Skip to main content
POST
Chat with Agent
Once the agent training is complete (status=done), you can ask it questions through the chat interface.
The response data varies depending on whether it is a streaming response or not. You can refer to the following request examples for clarification:

cURL Request Example

Authorizations

Authorization
string
header
required

token

Body

application/json
uuid
string<uuid>
required

agent UUID

Example:

"29db255d-211c-4fc6-8fbe-af97fa59cafa"

question
string
required

chat question

Example:

"How do I apply for XXX?"

messages
object[]

chat messages

Example:
stream
boolean
default:false

enable stream output

Example:

true

sess_id
string<uuid>

Session ID implemented by the third-party application.

Response

successful response

message_id
string<uuid>
required

message ID

Example:

"msg_123456789"

content
string
required

chat response

Example:

"Our return and exchange policy is as follows:..."

reference
object[]

reference information

usage
object

usage information