Templates / Connect apps / MySQL + OpenAI
Connect MySQL to OpenAI with n8n
6 public n8n templates use both MySQL and OpenAI. We checked each one against the n8n 3.0 breaking changes: 4 ready, 2 need changes, 0 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 8,345 views on n8n.io. The most viewed is Query MySQL database with natural language using GPT AI (3,548 views, ready for 3.0). Other apps these templates often use: Gmail (1), Google Calendar (1), OpenRouter (1), Pinecone (1), PostgreSQL (1), Slack (1).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (1 template), Function (legacy) (1 template).
How to connect MySQL to OpenAI in n8n
- Start from a template instead of a blank canvas. The most viewed one that passes our n8n 3.0 check is Query MySQL database with natural language using GPT AI.
- Pick how it starts. Most of these workflows start with Chat Trigger (2 templates), Form Trigger (2 templates), Manual Trigger (1 template).
- Add your own credentials. Templates never include credentials, so open each MySQL and OpenAI node and connect your accounts. In this group, for MySQL all of them use n8n’s built-in MySQL node; for OpenAI, all of them use n8n’s built-in OpenAI node.
- Run it once with test data, then turn it on. Before upgrading to n8n 3.0, paste your version into the 3.0 checker.
MySQL + OpenAI templates
- Ready for 3.0 Query MySQL database with natural language using GPT AI · 3,548 views
- Ready for 3.0 Automate HR Q&A sessions with AI question clustering and Google Calendar integration · 2,057 views
- Needs changes Generate & test SQL code with GPT/OpenRouter AI and PostgreSQL sandbox · 951 views
Fix: AI Agent v1 (old agent modes) - Needs changes Automate Twitter content with trend analysis using OpenAI GPT & MCP · 786 views
Fix: Function (legacy) - Ready for 3.0 Route equipment requests to Procurement with manager approval via Gmail · 719 views
- Ready for 3.0 Synchronize MySQL database schemas to Pinecone with OpenAI embeddings · 284 views
Check your own MySQL → OpenAI workflow or see all MySQL templates and all OpenAI templates
Other MySQL pairs
- Google Sheets + MySQL (8)
- Gmail + MySQL (5)
- MySQL + Slack (4)
- Google Drive + MySQL (3)
- Google Gemini + MySQL (3)
- MySQL + Groq (3)
Other OpenAI pairs
- OpenAI + Google Sheets (2,011)
- OpenAI + Gmail (1,623)
- OpenAI + Slack (979)
- Telegram + OpenAI (807)
- OpenAI + Google Drive (628)
- OpenAI + Google Gemini (249)
- Apify + OpenAI (230)
- OpenAI + Airtable (215)
FAQ
Is there an n8n template to connect MySQL to OpenAI?
Yes. 6 public n8n templates use both MySQL and OpenAI. The most viewed is “Query MySQL database with natural language using GPT AI” with 3,548 views.
Do the MySQL and OpenAI n8n templates work in n8n 3.0?
By our static check, 4 are ready for n8n 3.0, 2 need changes and 0 are unknown because they use community nodes we can’t verify. The most common fix: AI Agent v1 (old agent modes).
Does n8n have a built-in MySQL node?
Yes, every template here uses n8n’s built-in MySQL node.
Static check of the workflow JSON, not a live run on n8n 3.0. Apps are detected from the nodes in each workflow and from well-known API addresses in HTTP Request nodes. All app pairs.
Tools we use or recommend
- Make: Visual automation platform; a good alternative when an n8n flow needs a rebuild. Free plan available.
- Firecrawl: Turns any website into clean, LLM-ready data; simpler than hand-rolled scraping. New users get 10% off their first purchase.
Affiliate links: we may earn a commission at no cost to you.