Templates / Connect apps / MQTT + OpenAI

Connect MQTT to OpenAI with n8n

2 public n8n templates use both MQTT and OpenAI. We checked each one against the n8n 3.0 breaking changes: 1 ready, 1 needs changes, 0 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.

1ready for 3.0
1need changes
0unknown

Together these templates have 873 views on n8n.io. The most viewed is IoT sensor monitoring with GPT-4o anomaly detection, MQTT & multi-channel alerts (451 views, needs changes for 3.0). Other apps these templates often use: Slack (2), Gmail (1), Google Sheets (1), PostgreSQL (1).

What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (1 template).

How to connect MQTT to OpenAI in n8n

  1. Start from a template instead of a blank canvas. The most viewed one that passes our n8n 3.0 check is Real-time IoT anomaly detection with MQTT, GPT-4o-mini AI, and multi-channel alerts.
  2. Pick how it starts. Most of these workflows start with Mqtt Trigger (2 templates), Schedule Trigger (2 templates). 2 templates here start from a MQTT trigger node, so they run when something changes in MQTT.
  3. Add your own credentials. Templates never include credentials, so open each MQTT and OpenAI node and connect your accounts. In this group, for MQTT all of them use n8n’s built-in MQTT node; for OpenAI, all of them use n8n’s built-in OpenAI node.
  4. Run it once with test data, then turn it on. Before upgrading to n8n 3.0, paste your version into the 3.0 checker.

📬 Weekly n8n 3.0 breakage alerts, free

MQTT + OpenAI templates

Check your own MQTT → OpenAI workflow or see all MQTT templates and all OpenAI templates

Other MQTT pairs

Other OpenAI pairs

FAQ

Is there an n8n template to connect MQTT to OpenAI?

Yes. 2 public n8n templates use both MQTT and OpenAI. The most viewed is “IoT sensor monitoring with GPT-4o anomaly detection, MQTT & multi-channel alerts” with 451 views.

Do the MQTT and OpenAI n8n templates work in n8n 3.0?

By our static check, 1 are ready for n8n 3.0, 1 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 MQTT node?

Yes, every template here uses n8n’s built-in MQTT 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.

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.