AI assistant
AI assistant
The AI assistant is a conversational helper inside the query editor. It can answer questions about the schema, write and refine SQL from a plain-language request, and offer to run what is in the editor.
When to use
Use it while you are composing a query, to generate SQL from a description, improve a query you have, or understand an unfamiliar schema.
Using it
- Open the assistant from the editor's view toggle (Ask AI to write SQL). You can dock it to the side or the bottom.
- Type a request in Message the assistant… and press Enter (Shift+Enter for a new line).
- When the assistant proposes a query, it goes straight into the editor (or appears read-only if you cannot edit the query). When it wants to run something, a Run this query? bar appears. Nothing runs until you confirm through the normal run flow.
Setup and access
- Your own Anthropic key. The assistant runs on your organization's own Anthropic API key. Squeezle does not supply one. Your prompts, and the schema and query context the assistant sends, go to Anthropic under your key.
- Plans. Using your own key is part of the Business and Enterprise plans. On other plans the editor shows the entry point locked, or a message that the assistant needs your own Anthropic API key, with a way to view plans.
- Add the key (admin). Under Admin → AI settings, save an Anthropic API key. Once saved, the key is never shown again. The page shows which model is in use.
- Per-member access. A member sees the assistant only if their membership allows AI and they can edit queries.