- Home
- Resources
- Integrations
- RabbitMQ
RabbitMQ n8n integrationAutomate RabbitMQ with n8n.
A queue stops being a black box the moment n8n sits on both ends of it. The RabbitMQ n8n integration gives you 2 node operations, publishing a message and clearing one from a queue, plus a trigger that consumes a queue and starts one workflow run per message.
Verified Trustpilot reviews · AI, automation & growth agency
What does a RabbitMQ n8n integration actually cover?
RabbitMQ is a message broker: one system drops messages into a queue, another picks them up when it is ready to work. The n8n integration puts a workflow on either side of that queue. The RabbitMQ node publishes a message to a queue or to an exchange, and it can also delete a message from a queue. The RabbitMQ Trigger plays the consumer role, turning each message that arrives on a queue into a workflow execution.
Start with the pacing problem. A workflow that collects data on a schedule often runs faster than whatever has to store or process the result. Publishing each result to a RabbitMQ topic lets the second workflow drain the queue at its own speed before writing rows into Postgres. n8n's own template library shows the shape with satellite position updates pushed to a topic (workflow 844).
Then there is routing. n8n's own template library shows client onboarding events published to RabbitMQ with a routing key, picked up by a small consumer workflow that shapes the record with a Code node and sends the alert through Gmail (template 15316). One workflow publishes, one purpose-built consumer reacts, instead of a single workflow growing branch after branch.
The third case is fan-out. A fanout exchange copies one published message to every queue bound to it, so a single "order paid" message can feed an archiving workflow that writes to MySQL and, in parallel, a workflow that prepares the customer email. You publish once. The broker handles the duplication.
Now the limits, stated plainly. The node carries 2 operations and nothing more: no queue listing, no user administration, no reading of a message outside the trigger. The credential opens an AMQP connection to the broker rather than an HTTP API, so the usual escape hatch of adding an HTTP Request node does not apply here. What the node and the trigger expose is what you get from n8n, and the rest stays on the RabbitMQ side.
That makes this a good fit for teams already running a broker and looking to put automation around it, less so for teams hoping n8n will administer RabbitMQ for them. If queues are new territory for the people who will maintain these workflows, the n8n training covers the trigger and credential mechanics that this page assumes.
How do you connect n8n to a RabbitMQ broker?
- 01
Point n8n at the broker
In n8n, open the Credentials menu and create a RabbitMQ credential. The only supported method is a user connection, so start with the address of the broker itself: Hostname takes the machine that runs RabbitMQ, and Port takes the port the connection should use. A credential is created once here and then offered in the dropdown of every RabbitMQ node and trigger you add afterwards.
- 02
Fill in the login and the virtual host
User is the account the connection logs in as, and Password its password. RabbitMQ ships with
guestas the default user andguestas its password, and recommends a different user in production. Vhost is the virtual host the connection should use, a way of splitting one broker into isolated spaces; the default virtual host is/. - 03
Turn on SSL when the broker expects it
The SSL toggle decides whether the connection is encrypted. With it on, Passwordless says whether the certificate connection uses the SASL mechanism EXTERNAL or no password at all. Turned on, it asks for the Client Certificate and the Client Key pasted as text, plus the Passphrase. CA Certificates takes the text of the CA certificates to trust.
What does the RabbitMQ Trigger listen to?
RabbitMQ Trigger is the node that starts a workflow when something happens in RabbitMQ. Activate the workflow and every event it receives becomes one execution.
What you see in n8n
Configuration notes
01Configure the RabbitMQ Trigger
There is no event list to tick here. The trigger consumes one queue and produces one execution per message that arrives on it. Save the workflow, then activate it: an inactive workflow does not listen.
Key parameters
- Queue / Topic: the name of the queue to read from, typed exactly as it exists on the broker, for instance
orders.created. - Delete From Queue When: found under Options, it sets when the message is acknowledged, which decides whether it leaves the queue as soon as n8n receives it or once the run is finished.
- Parallel Message Processing Limit: the maximum number of executions running at the same time. Use
-1for no limit.
02Shape the messages the trigger returns
A message arrives as raw content. The Options collection decides what n8n hands to the next node and whether the queue is created on the fly.
Key parameters
- JSON Parse Body: parses the body into an object, so the fields become usable as
{{ $json.field }}downstream instead of one string. - Only Content: returns just the content property, leaving out the delivery envelope that surrounds it.
- Content Is Binary: saves the content as binary, the setting for messages carrying a file rather than text.
- Assert Queue, Durable, Exclusive, Auto Delete Queue: check the queue exists before reading, keep it across broker restarts, scope it to this connection, or drop it once no consumer is left.
- Binding, Arguments, Headers: add a binding to the queue, and pass arguments or headers along with it.
What can the RabbitMQ node do?
The RabbitMQ node exposes 2 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Send a Message to RabbitMQ
sendMessageWhat you see in n8n
Notes & use cases
Publishes a message to a queue or to an exchange.
Key parameters
- Queue / Topic: the name of the queue to publish to.
- Exchange and Type: publish through an exchange instead, typed
direct,topic,headersorfanoutdepending on how the broker should spread the message. - Routing Key: the routing key the exchange matches against.
- Send Input Data: sends the incoming item as JSON; turn it off and write the payload yourself in Message.
- Alternate Exchange: under Options, an exchange that catches messages this one cannot route to any queue.
Delete From Queue
deleteMessageWhat you see in n8n
Notes & use cases
Removes a message from a queue instead of publishing to it, so the node works against an existing entry rather than adding one.
Key parameters
- Queue / Topic: the queue the operation acts on.
- Exchange and Type: name the exchange when the target is reached through one, with the same
direct,topic,headersandfanoutchoices. - Routing Key: the routing key attached to the message.
- Message: the message the operation targets, often built from the trigger with an expression such as
{{ $json.content }}.
Need help automating RabbitMQ with n8n?
A person reads every message.