Skip to content

Mautic Trigger#

Mautic is an open-source marketing automation software that helps online businesses automate their repetitive marketing tasks such as lead generation, contact scoring, contact segmentation, and marketing campaigns.

Credentials

You can find authentication information for this node here.

Example Usage#

This workflow allows you to receive updates when a form is submitted in Mautic using the Mautic Trigger node and send an SMS confirmation to the submitter. You can also find the workflow on n8n.io. This example usage workflow would use the following node.

The final workflow should look like the following image.

A workflow with the Mautic Trigger node

1. Mautic Trigger node#

The Mautic Trigger node will trigger the workflow when a Mautic form is submitted.

  1. First of all, you'll have to enter credentials for the Mautic Trigger node. You can find out how to do that here.
  2. Select 'Form Submit Event' from the Events dropdown list.
  3. Click on Execute Node to run the node.

In the screenshot below, you will notice that the node returns the data that was submitted to the Mautic form. This output is passed on to the next nodes in the workflow.

Using the Mautic Trigger node to trigger the workflow

2. Twilio node (send: sms)#

This node sends a registration confirmation SMS to the users who filled out the Mautic form. We get the phone number of the submitter from the previous node.

  1. First of all, you'll have to enter credentials for the Twilio node. You can find out how to do that here.

  2. Enter the Twilio phone number in the From field.

  3. Click on the gears icon next to the To field and click on Add Expression.
  4. Select the following in the Variable Selector section: Nodes > Mautic Trigger > Output Data > JSON > mautic.form_on_submit > [item: 0] > submission > results > phone_number. You can also add the following expression: {{$node["Mautic Trigger"].json["mautic.form_on_submit"][0]["submission"]["results"]["phone_number"]}}.
  5. Click on the gears icon next to the Message field and click on Add Expression.
  6. Enter the following message in the Expression field.
    1
    2
    3
    Hey, {{$node["Mautic Trigger"].json["mautic.form_on_submit"][0]["submission"]["results"]["first_name"]}} 👋
    Thank you for signing up for the Webinar - Getting Started with n8n. The webinar will start at 1800 CEST on 31st October 2020.
    See you there!
    
  7. Click on Execute Node to run the node.

In the screenshot below, you will notice that the node sends an SMS to the submitter whose name and phone number are returned by the Mautic Trigger node.

Using the Twilio node to send an SMS

Activate workflow for production

You'll need to save the workflow and then click on the Activate toggle on the top right of the screen to activate the workflow. Your workflow will then be triggered as specified by the settings in the Mautic Trigger node.