Agent Builder Workflow Template
Build AI-powered workflows with OpenAI’s Agent Builder — no code needed.
The Agent Builder Workflow Template (AI2SQL Edition) helps you create an AI agent that connects to your Postgres database, understands natural-language questions, generates SQL queries, executes them, and summarizes the results.
⚙️ How it works:
1️⃣ The Schema Retriever MCP fetches your database structure
2️⃣ GPT-5 generates SQL based on user input and schema context
3️⃣ The SQL Executor MCP runs the query
4️⃣ A summarizer agent explains the result in plain English
🧩 What’s included:
- Ready-to-import Agent Builder JSON workflow
- Two FastAPI MCPs (
/mcp/schema
+/mcp/sql-executor
) - Detailed setup guide (PDF)
- Example prompts + demo video link
💡 Example:
Ask → “How many users signed up last week?”
Output → “351 users signed up last week.”
🧱 Built with: OpenAI Agent Builder + MCP + GPT-5
🧠 Goal: Make databases conversational — no scripts, no SQL, just natural language.