Get recommended questions
POST/v1/aibot/bots/:botId/recommend-questions
Get recommended questions
Request
Path Parameters
Agent ID
- application/json
Body
required
- Array [
- ]
Agent name
Agent introduction
Agent persona
User message content
history object[]
Conversation history
Role in the conversation history
Content of the conversation history
Responses
- 200
- default
Returned when recommended questions are retrieved successfully (SSE format)
Response Headers
X-Request-Id string
Request ID
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Conversation timestamp
Conversation record ID
Large model type
Large model version
Response type: text for the main answer, thinking for reasoning process, search for search results, knowledge for knowledge base
Conversation role, fixed as assistant in responses
Conversation content
Conversation termination flag; continue means not finished, stop means finished
Deep reasoning content (only non-empty for deepseek-r1)
usage object
Token usage
Number of prompt tokens; remains constant across multiple responses
Total completion tokens. In streaming responses, this accumulates across chunks.
Sum of promptTokens and completionTokens
Knowledge bases used in the conversation
search_info object
Search results (requires web search to be enabled)
search_results undefined[]
Search citation information
Citation index
Citation title
Citation URL
{
"created": "1726030224",
"record_id": "record-427d3652",
"model": "hunyuan",
"version": "202407241700",
"type": "assistant",
"role": "assistant",
"content": "Hello",
"finish_reason": "continue",
"reasoning_content": "",
"usage": {
"promptTokens": 10,
"completionTokens": 20,
"totalTokens": 30
},
"knowledge_base": [
""
],
"search_info": {
"search_results": [
{
"index": "[1]",
"title": "Title",
"url": "Link"
}
]
}
}
Returned when fetching recommended questions fails
- application/json
- Schema
- Example (from schema)
Schema
Error code
Error message
Request ID
{
"code": "INVALID_CREDENTIALS",
"message": "Credentials are invalid",
"requestId": "6360ba4b-f672-434b-9dee-35686a5589a4"
}