curl --request POST \ --url https://{instance}.omniapp.co/api/v1/ai/generate-query \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "modelId": "123e4567-e89b-12d3-a456-426614174000", "currentTopicName": "orders", "prompt": "Show me total revenue by product category for the last quarter"}'
Generate a structured Omni query from natural language using AI
POST
/
v1
/
ai
/
generate-query
Generate a query
Copy
Ask AI
curl --request POST \ --url https://{instance}.omniapp.co/api/v1/ai/generate-query \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "modelId": "123e4567-e89b-12d3-a456-426614174000", "currentTopicName": "orders", "prompt": "Show me total revenue by product category for the last quarter"}'