Get Next Question
Returns the next best question to ask in the current conversation. You must provide at least one of conversation_history or context. The last message in conversation_history must have role: "user".
Authorizations
Pass your NBQ API key in the Authorization header: Bearer nbq_live_xxx
Body
A stable identifier for the conversation. Reuse the same value for every call within one conversation — this is how usage is counted.
1 - 128"conv-7f3a1c"
The full conversation so far, as an ordered list of messages. Required if context is not provided. The last message must have role: "user".
50A free-text summary of the conversation so far. Required if conversation_history is not provided. Include facts gathered, user segment, and latest intent. Maximum 8000 characters.
8000"Visitor wants an outdoor dining table for a south-facing terrace. Prefers contemporary metal. Budget not yet discussed."
The external_id values of questions already asked and answered. NBQ excludes these so it never repeats a question.
200["q_budget_range", "q_seating_capacity"]Response
Next question returned
The recommended next question, or null when exhausted is true.
true when all eligible questions have been asked. Treat this as the signal to end the question flow.
false
Version identifier of the active NBQ Studio configuration. Include in logs and support requests.
"0.9.0-beta.1"
Unique ID for this API call. Include in any support request.
"req_3b9f0a1c2d4e6f80"