
Curated by n8n Markets team
Last updated: March 8, 2026
## Who is this template for? This workflow template is designed for any professionals seeking relevent data from database using natural language. ## How it works - Each time user ask's question using the n8n chat interface, the workflow runs. - Then the message is processed by AI Agent using relevent tools - `Execute SQL Query`, `Get DB Schema and Tables List` and `Get Table Definition`, if required. Agent uses these tool to form and run sql query which are necessary to answer the questions. - Once AI Agent has the data, it uses it to form answer and returns it to the user. ## Set up instructions Complete the Set up credentials step when you first open the workflow. You'll need a Postgresql Credentials, and OpenAI api key. Template was created in n8n `v1.77.0`
n8n instance (self-hosted or cloud). credentials.
1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation
Included in Builder Pro — $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
⚠️ 1 service require credentials. Make sure you have accounts set up before importing.
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!