I’m never writing SQL again.

Not because I don’t need it.

I’m never writing SQL again.

Not because I don’t need it.
But because I built an AI agent that writes it for me—better, faster, and with zero complaints about my grammar.

Here’s the wild part:
I typed “top five customers with over $500 of spend and tell me their total spend too.”
Bad English, typo and all.
It still returned a perfect SQL query.

This isn’t some magic prompt to ChatGPT.
It’s a fully automated AI agent, running inside n8n, using OpenAI’s GPT-4 model and something called MCP to connect directly to my Postgres database.

The agent reads the schema, understands the tools available, and decides what to do—all on its own.

In today’s video, I show you exactly how to build this:

  • How to spin up a free database on Render

  • How to add dummy data with one terminal command

  • How to wire up n8n, install the right nodes, and connect everything with MCP

  • And how to go from plain English → full SQL query → live results, in seconds

I even give you the full workflow to import and run yourself.
No fluff. No guesswork.

This is part of a bigger project I’m building inside the Applied AI Skool—where we go deep on real-world agents, automations, and hands-on AI.
You get the agent templates, a 7-day free trial, and weekly live Q&As with me.

👉 Watch the video here: https://youtu.be/HyLKH3ULDbo
👉 Join the community here: https://www.skool.com/applied-ai 

Is this the future of querying data?
Or just a very clever shortcut?

You decide.

Luke

There’s a reason 400,000 professionals read this daily.

Join The AI Report, trusted by 400,000+ professionals at Google, Microsoft, and OpenAI. Get daily insights, tools, and strategies to master practical AI skills that drive results.

Reply

or to participate.