Templates / Send sales data from webhook to Mautic

Send sales data from webhook to Mautic

Needs changes

by rangelstoilov · 2,610 views · created 2020-07-09 · CRM

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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.

  1. Set Webhook Request (Edit Fields (Set)): sets or maps fields
  2. Switch: routes items into 2 branches
  3. Find User (Mautic): get many
  4. Split Full Name (Function): runs custom JavaScript (legacy Function node)
  5. Find User To Tag Sale (Mautic): get many
  6. If not found return - (Function): runs custom JavaScript (legacy Function node)
  7. @MAIN STUDENT DATA (Merge): merges the data from its input branches
  8. Tag User (Mautic): update
  9. Set userFound (Edit Fields (Set)): sets or maps fields
  10. If: checks a condition and branches into true / false

…plus 6 more steps. See the full node list below.

Services it uses

Mautic

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.0Replace with
Function (legacy)
Split Full Name, If not found return -1
Code node, mode 'Run Once for All Items'

Nodes used (7)

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!

Excerpt from rangelstoilov's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.