Skip to main content

Get recommended questions

POST 

/v1/aibot/bots/:botId/recommend-questions

Get recommended questions

Request

Path Parameters

    botId stringrequired

    Agent ID

    Example: bot-xxx

Body

required
    name string

    Agent name

    introduction string

    Agent introduction

    agentSetting string

    Agent persona

    msg string

    User message content

    history object[]

    Conversation history

  • Array [
  • role stringrequired

    Role in the conversation history

    content stringrequired

    Content of the conversation history

  • ]

Responses

Returned when recommended questions are retrieved successfully (SSE format)

Response Headers
  • X-Request-Id string

    Request ID

Schema
    created number

    Conversation timestamp

    record_id string

    Conversation record ID

    model string

    Large model type

    version string

    Large model version

    type string

    Response type: text for the main answer, thinking for reasoning process, search for search results, knowledge for knowledge base

    role string

    Conversation role, fixed as assistant in responses

    content string

    Conversation content

    finish_reason string

    Conversation termination flag; continue means not finished, stop means finished

    reasoning_content string

    Deep reasoning content (only non-empty for deepseek-r1)

    usage object

    Token usage

    promptTokens number

    Number of prompt tokens; remains constant across multiple responses

    completionTokens number

    Total completion tokens. In streaming responses, this accumulates across chunks.

    totalTokens number

    Sum of promptTokens and completionTokens

    knowledge_base string[]

    Knowledge bases used in the conversation

    search_info object

    Search results (requires web search to be enabled)

    search_results undefined[]

    Search citation information

  • Array [
  • index string

    Citation index

    title string

    Citation title

    url string

    Citation URL

  • ]
Loading...