workflows.fit
Back to n8n workflows
n8n templateFreeBy Venkata V

Route client onboarding webhook events through RabbitMQ to Gmail alerts

Publish Subscribe Example - Webhook to RabbitMQ, RabbitMQ to GMAIL How it works This workflow demonstrates a resilient publish/subscribe automation pattern using n8n, RabbitMQ, JSON Schema validation, and Gmail. It co...

CommunicationHITLDevelopmentCore NodesUtilitySticky NoteWebhookSet
Loading interactive preview...

Template notes

Publish Subscribe Example - Webhook to RabbitMQ, RabbitMQ to GMAIL

How it works

This workflow demonstrates a resilient publish/subscribe automation pattern using n8n, RabbitMQ, JSON Schema validation, and Gmail.

It contains two flows in the same workflow:

1. A publisher flow receives client onboarding JSON through a webhook. 2. The payload is validated against a JSON Schema. 3. If valid, the workflow publishes the event to RabbitMQ. 4. A subscriber flow listens to the RabbitMQ queue. 5. The subscriber validates the received event again. 6. If the message is valid, it prepares and sends a Gmail notification. 7. Invalid messages and processing failures are routed to a dead-letter/error queue.

This template is useful for client onboarding, accounting intake, document processing, form submissions, internal notifications, and event-driven workflow automation.

Set up steps

1. Create or connect a RabbitMQ instance. 2. Create the following RabbitMQ resources: - Exchange: client.onboarding.exchange - Exchange type: topic - Main queue: client.onboarding.queue - Routing key: client.onboarding.received - Dead letter/error queue: client.onboarding.dlq