Pick topic
Analyze a natural language prompt and determines which topic in the model is the best fit for answering the question.
Useful as a preprocessing step before calling the Generate AI query or Create AI job endpoints, especially when the user’s question could relate to multiple topics.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Body
User ID to evaluate topic access as. Their permissions will be used for permission-aware topic selection. AI credit checks and usage attribution also apply to this user (including their embed entity, if any) rather than the API key holder.
Only valid with Organization API keys. PATs always act as the authenticated user.
"990e8400-e29b-41d4-a716-446655440004"
Response
Topic selected successfully. The returned topicId can be used as the topicName parameter in other AI endpoints.
The name of the topic that best matches the prompt.
Use this as the topicName parameter when calling the Generate a query or the Create AI job endpoints.
"order_items"

