Natural language to SQL workflow blueprint
Type a question, get a validated SQL query and formatted results
See where this blueprint fits in the production workflow lifecycleDag
2
0
1
Inputs for the Natural Language SQL workflow
Provide the following information when starting this workflow. Required inputs are validated before the first workflow stage runs.
Question
RequiredBusiness question (e.g. "What were top 10 products by revenue last quarter?")
Type: StringDatabase
RequiredTarget database name (e.g. analytics_prod)
Type: StringOutput Format
OptionalReport format: table, summary, or detailed
Type: String
Input template
This request shape is generated from the blueprint's input schema. Angle-bracket values are placeholders; defaults and examples appear only when the source blueprint defines them.
{
"question": "<required string>",
"database": "<required string>",
"output_format": "<optional string>"
}How the Natural Language SQL AI workflow works
This data & analytics blueprint uses a dag workflow with 2 agents, 0 functions, and 1 MCP server. This catalog blueprint is available by request; contact GraphN to discuss access and customization for your use case.
Report Loop
Judge Loop
Blueprint resources and prerequisites
These are the actual agents, functions, and MCP servers declared by the blueprint. If an MCP server connects to an external system, configure the required connection and credentials in your GraphN workspace before running the workflow.
Report Writer
You are a data analyst who writes SQL reports from natural language questions.
Data Auditor
You are a data quality auditor.
Database Tools
Database query and schema inspection tools
Tools: Get Schema, Run Query, Validate Sql
Workflow output contract
The completed workflow makes the following output available to downstream steps, applications, or API clients:
Frequently asked questions
- What does the Natural Language SQL blueprint do?
- Type a question, get a validated SQL query and formatted results
- What inputs does the Natural Language SQL workflow use?
- The workflow uses Question, Database, Output Format. Required fields and their expected formats are listed on this page.
- What resources are included in the Natural Language SQL blueprint?
- The blueprint contains 2 AI agents, 0 functions, 1 MCP server. Its workflow pattern is Dag.
- Can I customize the Natural Language SQL blueprint in GraphN?
- This blueprint is currently available by request. Contact GraphN to discuss access and customization for your use case.
Related Data & Analytics blueprints
View all data & analytics workflowsVideo Analysis
Analyze stored videos using sampled key frames and best-effort speech transcription
Anomaly Detector
Monitor metrics and generate readable alerts when anomalies occur
CSV Analyzer
Upload any CSV file and get automatic profiling, chart descriptions, and key insights
Dashboard Narrative Writer
Connect your dashboard metrics and get a weekly narrative explaining what changed and why