The Campaign Builder provides a blank canvas on which you can build your Campaign workflow. A Campaign Builder is made up of conditions, decisions, and actions. It enables you to create a simple workflow by dragging and dropping various decisions, actions, and conditions onto a canvas.
To build your Campaign, perform the following steps:
Click Launch the Campaign Builder on the New Campaigns wizard. The Contact Sources menu appears as shown in the following image.
In this step, you specify the Contacts to be included in your Campaign. Campaigns can be triggered by Contacts joining a Segment, and/or submitting Forms.
Select where your campaign will pull the Contacts from:
Note that the Segment selection will only show public Segments. If you create a Segment marked as private, that Segment will not be available for use in Campaigns.
You can select a mix of both types of Contact sources for your Campaign. To use both, click the grey selector button on either the left or right side of the Contact source box to add whichever source type you didn’t originally select.
After selecting one or more Contact sources, click the grey selector button to add at least one event to your Campaign. A Campaign event comprises of a combination of actions, decisions, and/or conditions as shown in the following image:
For more information about Campaign actions, decisions, and conditions, see the following topics:
Actions and decisions in a Campaign must be triggered by a cron job which executes the following command at the desired interval:
php /path/to/mautic/bin/console mautic:campaigns:trigger --env=prod
If you want to execute the command at different intervals for specific Campaigns, you can pass the
--campaign-id=ID argument to the command.