Send sales data from webhook to Mautic
Needs changesWhat this workflow does
This workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Mautic.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Webhook Request (Edit Fields (Set)): sets or maps fields
- Switch: routes items into 2 branches
- Find User (Mautic): get many
- Split Full Name (Function): runs custom JavaScript (legacy Function node)
- Find User To Tag Sale (Mautic): get many
- If not found return - (Function): runs custom JavaScript (legacy Function node)
- @MAIN STUDENT DATA (Merge): merges the data from its input branches
- Tag User (Mautic): update
- Set userFound (Edit Fields (Set)): sets or maps fields
- If: checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Split Full Name, If not found return -1: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Split Full Name, If not found return -1 | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Mautic
n8n-nodes-base.mautic - Function
n8n-nodes-base.function - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if
From the author
This workflow goes through the teachable webhook request types and adds a user, updates him and tags him with unsubscribe or removes the unsubscribe tag. It also tags the user with the tag of the name of the course. Enjoy!