Create chat suggestions

Generate follow-up suggestions for a conversation based on the assistant's capabilities and conversation history.

post/v1/chat/suggestions

Request

  • Base URL
    https://api.runbear.io
  • Auth
    HTTP bearer

Request body

assistant_idstring uuid required

Unique identifier of the assistant

Example request

{
  "assistant_id": "0fade940-133f-49e6-bf4b-8f662186479b",
  "messages": [
    {
      "role": "assistant",
      "content": "I'd be happy to help you write a business plan. A comprehensive business plan typically includes several key sections..."
    },
    {
      "role": "user",
      "content": "Can you help me write a business plan?"
    }
  ]
}

Response

Default Response

suggestionsstring[] required

Array of suggested follow-up prompts

Example response

{
  "suggestions": [
    "Create a financial projection for the next 3 years",
    "Help me outline the marketing strategy section",
    "What should I include in the executive summary?"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.