Skip to main content
Get AI-generated follow-up question suggestions to help users continue their exploration.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
chat_id
string
ID of an existing chat to generate follow-ups for. The conversation history will be used as context.
user_messages
array
Alternative to chat_id. Provide an array of user message strings directly.
You must provide either chat_id or user_messages, but not both.

Response

followups
array
required
List of suggested follow-up questions.
curl -X POST https://api.trellis.sh/v1/chats/followups \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"chat_id": "chat_abc123"}'
{
  "followups": [
    "How does this compare to the same period last year?",
    "Which product category had the highest growth?",
    "Can you break this down by region?"
  ]
}