Brainstorming helps improve research quality by generating clarifying questions before executing a query. This is useful when a query is ambiguous or could be interpreted multiple ways.
Response:
When the predefined options don’t fit your needs, use custom_text to provide a free-form answer:
To skip a question, simply omit it from the answers array. Only include answers for questions you want to influence the research:
In this example, only q1 is answered. Question q2 is skipped and won’t influence the research context.
Each answer requires:
question_id (required): The ID of the question being answeredselected_option (optional): 0-based index into the options arraycustom_text (optional): Free-form text that overrides selected_optionYou must provide either selected_option or custom_text (not both empty). If both are provided, custom_text takes precedence.
A brainstorm session can only be used once. After submitting research with a session, its status changes to “used” and cannot be reused.
If you provide a brainstorm session but skip all questions (empty answers array), the research will proceed but you’ll receive a warning in the response.
Optional usage: Brainstorming is entirely optional. You can always call POST /research directly without a brainstorm session.
No questions needed: If your query is already specific enough, the brainstorm response may return an empty questions array. In this case, proceed directly to research without a session.