AI Query Assistant
The assistant requires an AI provider (Anthropic or OpenAI), API key, and model to be configured under System Settings → AI Settings; see [[product:ol-dataiq/administration-security|Administration and Security]].
Open the Query Console chat panel with the chat icon and describe the data or operation you need in natural language. The assistant uses database-schema context to propose SQL.
Your messages, the database-schema context, and errors you send with Explain go to the configured AI provider. Check your organization's data-handling rules before using it on regulated data.
- Ask for the tables, filters, joins, aggregation, or ordering you need.
- Review the suggested SQL.
- Insert it into the editor, revise it if necessary, and execute only after validating it.
The assistant retains conversation context for follow-up refinement. When an SQL or stored-procedure action fails, use Explain in the error notification to send the error to chat for analysis.
Be specific about table names, required columns, filters, and expected results.
Generate and refine SQL through schema-aware natural-language chat.