curl --request POST \
--url http://{your-domain}/v1/aibot/bots/{AgentId}/recommend-questions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Agent",
"introduction": "Agent introduction",
"agentSetting": "Agent settings",
"msg": "Hello",
"history": [
{
"role": "user",
"content": "This is a conversation message"
}
]
}
'{
"type": "text",
"content": "Hello! How can I assist you today?"
}curl --request POST \
--url http://{your-domain}/v1/aibot/bots/{AgentId}/recommend-questions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Agent",
"introduction": "Agent introduction",
"agentSetting": "Agent settings",
"msg": "Hello",
"history": [
{
"role": "user",
"content": "This is a conversation message"
}
]
}
'{
"type": "text",
"content": "Hello! How can I assist you today?"
}Token corresponding to the environment ID, obtained through login authentication
Agent ID
Successfully retrieved recommended questions, returns SSE format
Was this page helpful?