-
Notifications
You must be signed in to change notification settings - Fork 559
AI chat
To use the AI Chat:
-
Activate the AI assistant.
-
Select AI Chat from the top toolbar.
- Alternatively, click on the AI assistant icon
located in the left toolbar
of the SQL Editor.
- Alternatively, click on the AI assistant icon
-
In the chat window that opens, select a connection and, optionally, a scope.
-
Enter your request in natural language.
-
Press the Send icon (
) to get the SQL translation. You can then choose from the following options:Option Icon Description Execute 
Run the generated SQL query Insert 
Open the query in the SQL Editor and continue working with it directly Copy query 
Copy the query to your clipboard Copy 
Copy the entire AI Chat response to your clipboard 
Tip: To stop response generation, select the Stop button next to the input field.
To use a specific connection in AI Chat, select the connection from the toolbar at the top of the chat panel. The selected connection defines which database the AI will use when generating SQL queries.

You can create multiple chats for different connections.

The first chat is created automatically when you open AI Chat. Each chat is named based on your first prompt. Messages related to the same query or object in the same connection are kept together in one conversation.
| Action | Icon | How to do it |
|---|---|---|
| New conversation | ![]() |
Click the icon to start a new conversation |
| Conversation history | ![]() |
Use the dropdown menu to switch between existing chats |
| Delete a chat | ![]() |
Select the chat from the Conversation history dropdown, then click the delete icon |
Important: Deleted conversations can’t be restored.
The AI Chat logs your query history, enabling you to reference and expand on prior inputs. Each new or edited entry
prompts the AI to generate a revised SQL query. To change the query context in AI Chat or clear history up to a
specific message, click the Delete message icon (
) next to the desired message. Deleting a message also removes
it and all messages below it.
To improve accuracy, especially in databases with large schemas, you can use the Scope field to limit the context to specific database objects.
-
In the AI Chat toolbar, click the Configure AI context icon
to open the context menu. -
Choose the desired context level:
Scope option Description Connection AI considers all schemas within the current database connection Current Database AI is limited to the currently selected database Current Schema AI focuses only on the schema you’re currently using Custom Lets you define a more specific scope, such as a particular table or set of objects
Each conversation uses the default AI profile unless you switch it. To use a different provider or model just for the current chat:
- In the AI Chat toolbar, click the Configure AI context icon
to open
the context menu. - Under Active configuration, pick a profile from the list.
The switch only applies to the current conversation - it doesn't change the default profile in AI Settings.
When enabled, AI Chat shows the total input and output token count for the current conversation.
- In the AI Chat toolbar, click the Chat settings button (
) to open the dropdown menu. - Click Enable metrics
Token usage appears as 0↑/0↓ Tokens (input↑/output↓) below the chat header, and updates after each response.
- Getting started
- Create connection
- Connection network options
- Supported databases
-
Drivers management
- Database authentication methods
- Connections
- Properties editor
- Data editor
- SQL editor
- AI Assistant
-
Entity relation diagrams
- Cloud services
- Data transfer
- General user guide
- Administration
- Server configuration
-
Server security and access configuration
- Authentication methods
- Access management
- Proxy configuration
-
Secret management
- Logs
-
Query manager
- Workspace location
- Command line parameters
-
Session manager
- Deployment options
- CloudBeaver Editions
- FAQ
- Development


