Skip to main content
POST
/
v1
/
aibot
/
bots
/
{AgentId}
/
recommend-questions
Get Recommended Questions
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?"
}

Authorizations

Authorization
string
header
required

Token corresponding to the environment ID, obtained through login authentication

Path Parameters

AgentId
string
required

Agent ID

Body

application/json
name
string

Agent name

Example:

"My Agent"

introduction
string

Agent introduction

Example:

"Agent introduction"

agentSetting
string

Agent settings

Example:

"Agent settings"

msg
string

User message content

Example:

"Hello"

history
object[]

Historical conversation messages

Response

Successfully retrieved recommended questions, returns SSE format

Text content event from the agent. Contains streaming text responses as the agent generates them.

type
enum<string>
required

Event type identifier

Available options:
text
content
string
required

Text content from agent

Example:

"Hello! How can I assist you today?"