Manage e-commerce orders end-to-end with PostgreSQL, Gmail, PDFMonkey and Slack
Ready for 3.0What this workflow does
This workflow has 34 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Slack, Postgres and Gmail. It also calls api.pdfmonkey.io over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Verify Order Integrity (If): checks a condition and branches into true / false
- Query Sales Metrics (Postgres): run a query
- Standardize Order Payload (Edit Fields (Set)): sets 5 fields: order_id, email, amount…
- Prepare message for Analytics (Edit Fields (Set)): sets 1 field: analytics_message
- Insert Order to DB (Postgres): uses Postgres
- Post Analytics to Slack (Slack): uses Slack
- Log Payment Event (Postgres): uses Postgres
- Notify Database Error (Slack): uses Slack
- Alert Warehouse (Slack) (Slack): uses Slack
- Calculate Invoice Totals (Edit Fields (Set)): sets 8 fields: invoice_number, customer_email, order_id…
…plus 22 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957) · Other PostgreSQL + Slack templates (109) · Other Gmail + PostgreSQL templates (82)
HTTP calls to: api.pdfmonkey.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Slack
n8n-nodes-base.slack - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Postgres
n8n-nodes-base.postgres - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow receives payment webhooks to validate and store orders in PostgreSQL, notifies the warehouse in Slack, generates PDF invoices via PDFMonkey, and emails customers through Gmail with invoice and shipping updates, then runs…