PubNub is now on N8N: Bringing real-time workflow automation to over 1 billion connected devices

0 MIN READ • Stephen Blum on Feb 3, 2026
PubNub is now on N8N: Bringing real-time workflow automation to over 1 billion connected devices

Good news! PubNub is officially on N8N.

Check out the PubNub N8N Node integration

This is very exciting for us. We want to bring access to over 1 billion connected devices into the N8N ecosystem with our N8N trigger node and action node.

Enabling Connectivity using N8N’s Security Network Module

There were a few hurdles to building the integration. N8N has advanced security considerations that improve the reliability and performance of the N8N runtime. This is great for end-users who are building workflows with N8N. They can rely and trust on the N8N for security and efficiency. N8N does not allow external dependencies. This of course meant the PubNub JavaScript SDK was not applicable because of the dependency requirements.. And they also do not allow setTimeout or setInterval functions, making it even more challenging. They also don't allow native fetch or XHR. 

Good news however, we were able to use their custom-built method for network communication. This provided the path to enable real-time communication for both Trigger Nodes and Action Nodes using PubNub. And we did it. We figured it out. Success!

What This Means for You

PubNub customers now have access to the full N8N ecosystem starting today. You will be able to leverage your PubNub channels directly inside N8N workflows. It even works with your private N8N deployments! This works for all customer use cases including multiplayer games, collaborative applications, and Internet of Things (IoT) connected devices. If you have an IoT device at home, it's very likely already connected to PubNub. Now, we can seamlessly bring those real-time events over to the N8N ecosystem.

With our dedicated PubNub trigger nodes and action nodes on N8N, you can:

  • Human-in-the-loop notifications: Get notified when you need to take action
  • Start a workflow from anywhere: Even if you're using private N8N hosting
  • Receive notifications when workflows fail or finish successfully
  • Log workflow activity and fetch history from storage and playback
  • Change Channel Groups within a workflow
  • Real-time fleet and asset geofencing
  • Add an interactive Chatbot within your workflow
  • Connect multiple workflows together: With a chain or fork pattern

For example, if you have an app with support chat powered by PubNub and you want to add an AI agent to answer questions, you can have PubNub stream every customer message into an N8N workflow as it happens. This workflow can call an LLM, enrich the request with data from your CRM, and decide whether to auto‑respond, escalate to a human, or trigger a follow-up workflow. The response is then published back through PubNub to the right user and device instantly, giving you a human‑in‑the‑loop, AI‑augmented support experience without building any of the plumbing yourself.

Features Supported

Publish

Send messages from your N8N workflow to any connected device or application. Trigger alerts, push notifications, update dashboards, or kick off actions on remote systems. Your workflow completes a task? Publish a message and every connected client knows instantly.

Subscribe

This is your trigger node. Listen for incoming messages on any channel and start your workflow the moment something happens. An IoT sensor detects motion? A user sends a chat message? A game event fires? Your N8N workflow picks it up and runs. This is how you bring real-time events into your automations.

History

Fetch previous messages from any channel. Perfect for logging workflow activity, auditing what happened, or replaying events. Maybe your workflow was offline. Maybe you need to backfill data. History lets you grab what you missed and process it.

Presence

Know who's online right now. Track which users or devices are connected to a channel. Build workflows that respond to users joining or leaving. Great for monitoring fleet status, tracking active users, or triggering actions when specific devices come online or go offline.

Channel Groups

Manage collections of channels dynamically within your workflow. Add channels, remove channels, list what's in a group. This is powerful for organizing large-scale deployments. You've got thousands of IoT devices? Group them logically. Manage subscriptions at scale without hardcoding channel names.

Getting Started

Getting started is straightforward. Create new credentials for the PubNub API. Your customers can bring in their own existing API keys for the N8N node. Set your user ID and you're ready to go.

Then create a new workflow using the PubNub trigger node. Set up your channel, add filters if you need them, and you're listening for messages. Add an action node to send messages back. Execute the step and it succeeds happily.

Perfect. We've done it.

Watch the Demo

Want to see it in action? Check out the full walkthrough:

What's Next

We've successfully added our N8N trigger node and action node that will bring over a billion connected devices and all of our existing customers over to the N8N platform and ecosystem.

This opens up real-time capabilities for your automation workflows. Whether you're building IoT integrations, collaborative tools, or notification systems. With PubNub on N8N, it is now possible.

Looking forward to seeing your automations in action!