Use Cases
- Transform natural language requests into SQL queries for email data retrieval.
- Automate the generation of SQL statements based on user inputs.
- Facilitate quick access to email metadata without requiring SQL expertise.
How It Works
Capture user input through a chat interface. Load the database schema from a local file. Generate SQL queries using AI models based on user requests. Execute the generated SQL queries against a PostgreSQL database. Format and present the results back to the user.
Setup Steps
- 1Import the workflow into n8n.
- 2Configure the PostgreSQL database credentials.
- 3Set up the chat trigger to capture user inputs.
- 4Run the workflow to test the SQL query generation.
Apps Used
PostgreSQL
OpenAI
File Management
Categories
Target Roles
Tags
#ai content generation
#process automation
#workflow management