- Introduction
- What is a Zap
- Zap Creation Basics
- Add Contacts to Mailing Lists Zap
- Send Email with Mailjet Template Zap
- Send HTML Email Zap
- Send Email Campaign to a Mailjet Contact List Zap
- Parse Inbound Emails Zap
- Update Contact Properties Zap
- Email Events Zap
- Additional Zap Functionalities
- Ready to Use Zap Templates
- Troubleshooting
- Conclusion
Introduction
Zapier is an online tool that allows you to connect two or more apps to automate repetitive tasks – like synchronizing information between them – without coding or relying on developers to build the integration. Most importantly, workflows can be created with only a few clicks, which makes it extremely easy.
In this guide we will describe the advantages of linking a CRM app with Mailjet through zaps, as well as the commonly used zaps you can create to better use the platforms’ functionalities.
As this guide is general in nature, we will not be able to get into specifics regarding the steps to configure the zaps on the CRM side. You can get a better understanding of the application of the instructions by using our Pipedrive and Salesforce guides as examples.
What is a Zap
A zap is basically an automated task that you want run over and over again between two online apps. A zap consists of a trigger and an action:
When this happens (Trigger), do something (Action).
Once you have created your zap, Zapier will check your trigger every few minutes for new data. If the zap is triggered, Zapier will automatically perform the action! There is no involvement needed from you - your data will flow from one app to the other.
Note
As Zapier only syncs with new data and not with any data already collected, it is important to set up your zap as soon as possible in any process.
With Mailjet, you have the following Trigger options:
- Subscribe Contact to Mailjet List
- Unsubscribe Contact from Mailjet List
- Parse Inbound Email (when new email is sent to your Parse API email address)
- Email Events (when an event occurs with a Mailjet contact - send, open, click, bounce, spam, block)
And several Actions :
- Subscribe Contact to Mailjet List
- Unsubscribe Contact from Mailjet List
- Send a Plain Text Email
- Send an HTML Email
- Send Email Using a Saved Mailjet Template
- Send an Email Campaign to a Mailjet List
- Update Contact Properties (in Mailjet)
Zap Creation Basics
To start creating a zap, please go to www.zapier.com, log in and click on ‘Make a Zap’. When you design a zap, you will always go through the same steps:
- Trigger Phase
- Choose a Trigger App from the list of applications supported by Zapier.
- Choose the actual trigger.
- Select the account registered with the trigger app to use for this zap. If you do not have an account linked with Zapier, you will have to connect one.
- Set up the Trigger specifics.
- Test the trigger.
-
Action Phase
- Select Action App from the list of applications supported by Zapier.
- Choose the Action performed upon the trigger being activated.
- Select the account registered with the Action app to use for this zap. If you do not have an account linked with Zapier, you will have to connect one.
- Set up the Action specifics.
- Test the Action.
-
Activate the Zap
For more information please visit the ‘How to Create a Zap’ page at Zapier.
Add Contacts to Mailing Lists Zap
General Information
One of the most commonly used Zaps when it comes to integrating a CRM service with Mailjet is to automatically add new contacts from the CRM to a Mailjet contact list.
When you create new contacts / prospects in your CRM app, you may want to subscribe the associated emails to your different Mailjet contact lists. With Zapier you can streamline this process, saving valuable time and enabling the distribution of automated emails and marketing campaigns through Mailjet straight away.
Below we will describe the zap configuration process in Zapier.
Trigger Phase
- Click on ‘Make a Zap!’ and choose a name for the zap.
- You will enter the Trigger phase. Select the trigger from the list of options for your CRM app – a new Person / Contact / Lead etc. being added to the CRM.
- Select a CRM account to use in Zapier, or connect a new one.
-
Set up the trigger specifics.
Depending on the options configured for the CRM in Zapier, this may not be available. If it is, it will allow you to narrow down your trigger instances to specific contacts you want to add to the respective mailing list – for example, only add contacts that have an open deal linked to them.
-
Test the trigger – Zapier will try pulling information from the CRM that corresponds to the trigger configuration.
- Finish the trigger configuration.
Action Phase
You now need to create an Action on Mailjet for the Contact / Person / Lead’s details to be added to a Mailjet Contact List.
-
First, select Mailjet as the Action App.
-
Select the appropriate action – ‘Subscribe Contact to Mailjet List’.
-
Select a Mailjet account to use and link it to Zapier, if needed.
For this example, we will add a new account by selecting the ‘Connect a New Account’ option.
In the pop-up window, add your Mailjet API Key (User) and Secret Key (Password). You can find this information on the API Key Management page of your Mailjet account.
Click on ‘Yes, continue’.
The new account will appear as “Mailjet Account #”. To change its name, just click on the pencil icon and enter a new one.
Select your Mailjet account and click on ‘Save + Continue’.
-
Select the Mailjet Contact List you want to use for this zap. The lists are fetched from your Mailjet account, so you need to have a Contact List already created. In case you don’t have one, you can create it in the Mailjet Contact Lists section.
-
Match the properties of the CRM contact with the contact properties in Mailjet.
Clicking on the highlighted buttons will call up a drop-down menu with the different properties in the CRM, and you simply need to select the appropriate ones.
The only mandatory property that needs to be matched is the email address, but it is useful to add others, like Full Name, Company, Location etc. This will help you later for personalizing emails in Mailjet, or for segmentation of the contact list for campaigns, for example.
You will end up with a result similar to the below image.
-
Zapier will then test the action by adding the previously pulled contact information to the Mailjet contact list you have selected.
- Finish the zap and turn it on.
Combining Zaps with Mailjet Email Automation
Thanks to the Mailjet Email Automation feature, it is possible to create and manage automated workflows of emails, triggered by various events. This can be used in conjunction with zaps to send automatic emails to the email address registered with a Contact /Lead / Person etc, when their information is being added to a Mailjet contact list.
To do this, you need to configure a Welcome automation scenario for the respective contact list. For more information, please visit the Mailjet Email Automation Guide.
Send Email with Mailjet Template Zap
General Information
In every business, it is often necessary to communicate quickly about new developments. You may need to quickly contact other partners or employees about new contacts, leads, deals, appointments, opportunities etc. that have been added to your CRM app. To do this automatically, you can create a zap with the ‘Send Email with Mailjet Template’ action.
You can create highly customizable templates in Mailjet using our powerful and easy-to-use drag-and-drop Email Editor tool. You can then use these templates to send automatic emails to concerned parties, whenever the Zap is triggered.
The main benefits from using Mailjet’s Email Editor templates are:
- Extremely user-friendly interface
- Variety of options to customize your emails
- Easy to collaborate between teams on template design and content
- Templates are stored in the Email Editor and can be reused for other purposes
The zap will work like this:
- You create a trigger on your CRM for a certain event of your choice – e.g. a new Contact, Deal, Deal status, Opportunity, Activity etc. For reference on the general steps, please click here.
- You then create an action on Mailjet to ‘Send Email Using a Saved Mailjet Template’ when the respective event occurs. For reference, please click here.
How to Configure the Mailjet Template
The most important part of this zap’s creation is configuring the action specifics – in this case configuring the email template.
-
The initial selections you need to make are the usual ones – for a Sender Address, Sender Name, Recipients and Email Subject.
- Once you are done, you need to select a Mailjet template to use for the zap.
You will need to scroll through the list of templates, or simply use the Search menu, to find the one you need.
-
Once you have selected the template you want to use, you will be given the option to enable or disable the Template Language. You need this option turned on, if you want to personalize the email with contact properties or CRM variables.
-
You can link these emails to an existing Campaign for better email tracking and statistics. You can link it to an existing campaign, or – using a Custom Value – create a new one to use for that purpose.
-
You can also choose an email, where you will receive any error reports connected to the use of templating language within the emails.
-
Now we come to the options to personalize your email template. You can add different variables in the text of your email in order to include details relevant to the communication. The personalized variables are extracted directly from the CRM app by Zapier. Here are some examples of information you can add:
- New Contact – full name, company name, email, cell phone etc.
- New Appointment – date, time, participants, duration etc.
- New Deal – stage, time it was added/updated, who is assigned to it, value etc.
Simply choose a detail from the CRM that you want to include by selecting it from the drop-down menu.
You can select up to 5 variables to include in your email. In the end you will have a selection similar to the below.
Remember – you need to add the variables to the template text in order to include the necessary information. They are defined as
{{var:var1:”default text”}}
for the first one,{{var:var2:”default text”}}
for the 2nd one etc. The “default text” can be changed to accommodate situations where there is no value for the respective variable.Here is an example of how a template will look in the Email Editor with variables included and default text added to them.
When you are ready in Zapier with your template configuration, click on ‘Continue’.
-
You will now need to test the template – you will see the details you entered, as well as the information, pulled from the CRM for the variables you have opted to use.
Review the information and click on ‘Create & Continue’.
-
The only thing left is for you to ‘Finish’ the zap and turn it on, and you are ready to go!
Send HTML Email Zap
Should you need a faster way to send an email, creating a template isn’t mandatory, you can also send plain HTML content directly from Zapier using the ‘Send HTML Email‘ action. The template will lack the customizable design of the Email Editor and will instead be a simple text email, but that removes the necessity of creating a template in the Email Editor in the first place, which will in turn allow you to create your zap quickly.
To create the zap you need to follow the same steps as with the Send Email with Mailjet Template Zap:
- You create a trigger on your CRM for a certain event of your choice. For reference on the general steps, please click here.
- You then create an action on Mailjet to ‘Send HTML Email’ when the respective event occurs. For reference, please click here.
After selecting the action and the Mailjet account you will use for the zap, you will need to configure the template.
Here is an example of how a personalized HTML email template about a new Deal being created in the CRM can look like:
Send Email Campaign to a Mailjet Contact List Zap
General Information
In a business environment the list of people you need to contact regarding specific developments can be ever changing.
Do you want an effective way to instantly communicate information about new prospects, deals or opportunities in your CRM? With this Zapier automation you can easily send the necessary details to every person in a selected Mailjet contact list.
The main advantages of using a Mailjet contact list are:
- You only need to update your Mailjet contact list with the proper recipients in order to ensure that every person is added - no need to update every single Zap you’ve created whenever an email address needs to be added or removed.
- You can view your campaign stats in Mailjet to check deliverability reports and open / click rates.
The zap will work like this:
- You create a trigger on your CRM for a certain event of your choice – e.g. a new Contact, Deal, Deal status, Opportunity, Activity etc. For reference on the general steps, please click here.
- You then create an action on Mailjet to ‘Send an Email Campaign to a List’ when the respective event occurs. For reference, please click here.
How to Configure the Mailjet Campaign Email
The most important part of this zap’s creation is configuring the action specifics – in this case selecting the campaign email details.
The information you need to enter is:
- From Address - The sender address to be used for the campaign
- From Name - The name of the sender that will appear in the campaign emails
- Contact List - The Mailjet contact list you want to send the campaign to
- Campaign Title - The name of the campaign, to be displayed internally in your Mailjet Campaigns
- Email Subject - The text that will be entered in the subject line for the campaign
- Email Body - The body of the campaign email
In addition, you are able to choose a ‘Reply To’ address. This is optional, but allows you to select a different email address, where replies from recipients will be received.
Campaign Personalization
Personalize your emails by inserting information from the contact properties stored in Mailjet, by using the syntax [[data:property_name:"default_value"]]
. For example, a Dear [[data:firstname:"Customer"]],
email introduction will add the value of the firstname
property for each contact to their respective email.
If there is no value linked to firstname
for a certain contact, it will be replaced by the default value, in this case - Customer
.
Additionally, you have the option to add information from details available in the CRM (e.g. deal name, account to which it is linked, close date, value etc.) to your email, subject line and/or campaign title, so that you can then send the campaigns with the relevant information included.
Campaign Statistics
Every time a zap with the ‘Send Email Campaign to a List’ action is triggered, it will create a campaign and send out the email template you configured to the contact list you have selected.
The respective campaign will be recorded in Mailjet and you can see your campaign stats at any time by going to your Mailjet Campaigns and clicking on the name of the one you want to view.
For more information on Mailjet campaign stats, please visit our dedicated guide.
Parse Inbound Emails Zap
General Information
Wouldn’t it be great to have your incoming mail automatically processed and distributed to another application?
You can take advantage of the contact forms you set up on your website, in order to streamline the contact registration process. For example, a sales prospect fills out the Sales contact form on your website. With a properly set up zap, the email – with the key information in the email custom headers – will be transferred into your CRM and automatically create a new prospect.
Here’s how you can achieve this:
- Create a zap with the Mailjet trigger: Mailjet Parse Inbound Email.
- Mailjet will then generate a special email address (called a Parse API email address).
- You then redirect your inbound emails to this new parse email address (you have to do this outside of Zapier).
- Complete the zap by selecting what parts of the email you want to be parsed and sent into which Zapier connected app (Action).
Trigger Phase
To create the zap, first you need to create a proper trigger. To do that, please follow the instructions below.
- Go to Zapier, click on ‘Make a Zap’, then search for and select ‘Mailjet’ as a Trigger App.
-
Select the ‘Parse Inbound Email’ trigger and click ‘Save + Continue’.
-
Select the Mailjet account you want to use, or connect a new one. For reference click here.
-
As this point you will need to ask Mailjet to create a new parse email address for your Zap.
Although the long list of instructions on Zapier may look confusing, it is quite simple! :)
You can generate a parse email address using the Mac Command Terminal, Postman, Hurl.it or your favourite API Request Builder. For this example, we will create the parse email address using Hurl.IT.
Open a new browser window and go to www.Hurl.it.
From the drop down list, select ‘POST’. Then paste the Mailjet Parse Route URL: https://api.mailjet.com/v3/REST/parseroute
The Mailjet Parse Route URL will parse the inbound emails and send the contents to another location – in this case Zapier.
Click the ‘+ Add Authentication’ link.
Add your Mailjet API Key (username) and Secret Key (password) into the respective text boxes. You can find this information in the API Key Management section of your account.
Now you need to provide a destination URL, where the parsed email content should be sent. This URL is called a webhook URL.
Go back to your Zapier page and scroll to the bottom to find the webhook URL, then click on the ‘Copy to clipboard’ button.
Go back to the Hurl.it page and click on ‘+Add Parameter(s)’.
In the name text box, enter: URL.
And paste the webhook into the second text box.
Click the checkbox to confirm you are not a robot ;)
Then click on ‘Launch Request’.
Congratulations – you have made your first parse email address! When an email is sent to this parse email address, Mailjet will parse the elements of the email and send them to Zapier. Then your zap will forward the parsed elements to the CRM.
And yes, the parse email address is quite long – please record it somewhere for future reference. ;).
-
Now you need to send a test email to your new parse email address to activate it.
Please ensure the email contains the information needed – you will need to cover at the very least the minimum requirements for details needed to create the prospect.
Once you have sent the test email, switch back to your Zapier screen and click on ‘OK, I did this’.
You should see the ‘Test Successful!’ Page with a link to view your parse inbound email (the test email you had sent a few minutes earlier).
If the test was not successful, click the Re-test Mailjet button to get another parse email address, or send another test email to the parse email address.
-
Click the ‘Continue’ button to complete the Parse Inbound Email Trigger!
Action Phase
- Once the trigger has been configured successfully, you will need to set a proper Action for your CRM – e.g. Add a new Contact / Person / Lead to the CRM.
-
After selecting the CRM account you want to use, you will need to configure the action specifics.
You will have to match the information from your test email headers to the respectful CRM fields. This works similarly to the functionality explained here.
-
When you are finished, click on ‘Continue’ to test the zap.
- Once the test is successful, you can finish the configuration and turn on the zap.
You are done! Your Zap is now on and will automatically run when emails are sent to your parse email address.
Update Contact Properties Zap
General Information
Every business wants to always keep their customers’ information up-to-date, which makes it necessary to make regular changes when your CRM contacts / leads change their cell phone / address / family name etc. It would be awesome for those changes to be immediately updated in Mailjet as well, right?
To accomplish this, you need to create a zap that links an update of your Contact’s details to and update of the same contact’s Contact Properties in Mailjet. We will now explain how this is done.
Trigger Phase
- Click on ‘Make a Zap!’, enter the name of your zap and choose the CRM software you are using as the Trigger App.
- Choose the trigger for your CRM that corresponds to updating Contact / Lead details. Depending on the CRM configuration in Zapier, it can be ‘Updated Contact’, ‘Updated Lead’, ‘New Contact Property Change’, ‘Create/Update Contact’ etc.
- Select the account you will use for your CRM from the list shown. If needed, connect a new CRM account to Zapier by clicking on ‘Connect an Account’.
- Click on ‘Fetch & Continue’ to test the trigger by fetching information about a recently updated account from your CRM.
- Once the test is successful, click on ‘Continue’ to finish setting up your trigger.
Action Phase
- Search for and select Mailjet as your Action App.
-
Choose the ‘Update Contact Properties’ trigger, then click on ‘Continue’.
-
Select the Mailjet account you will use. If needed, connect a new CRM account to Zapier by clicking on ‘Connect an Account’. Once you are ready, click on ‘Continue’.
-
You will now need to match the contact details from your CRM to the contact properties in Mailjet.
In the end you will have a result similar to the picture below.
Click on ‘Continue’ when you are ready with your selections.
-
You will now have to test the action by matching the contact details pulled earlier with the trigger test to the contact properties in Mailjet.
Click on ‘Create & Continue’ to start the test. If you want to skip it, click on ‘Skip Test & Continue’.
-
Once the test is successful (or if you have skipped it), you will need to simply ‘Finish’ the zap and turn it on, and you are ready to go!
How to Configure with Create / Update trigger
If the trigger configured for your CRM app in Zapier is ‘Create / Update Contact’ (or similar), it covers two different events – when the contact is created and when the contact information is updated. However, the ‘Update Contact Properties’ action only covers the ‘Update’ part of the trigger, and will miss all the accounts that have been created.
To fix this, you need to add a second action for Mailjet in your zap. To do this, after testing the ‘Update Contact Properties’ action click on ‘Add a Step’ instead of finishing the zap.
Afterwards simply follow the instructions for configuring the ‘Subscribe Contact to Mailjet List’ action here.
Email Events Zap
General Information
The Email Events trigger allows you to set up a Zap, which will activate upon a certain email event – e.g. the mail is opened, a link within it is clicked, it bounces and cannot be delivered etc. This allows you to transfer information back to your CRM for the respective emails you are interested in. Here are some examples of the possibilities:
- Leave a Note in CRM for the contacts, whenever they open a Mailjet campaign email.
- Transfer the contents of a Mailjet campaign email to the CRM and add a log for the email to the respective account.
- Create new Leads based on clicks within a Sales Email campaign.
Naturally, the ways to configure the Zap depend on the Zapier actions available for the CRM you are using. Here as an example we will configure a Zap to leave a note in a CRM contact every time this contact ‘clicks’ an email.
Trigger Phase
- Click on ‘Make a Zap!’, enter the name of your zap and choose Mailjet as the Trigger App.
-
Select the ‘Email Events’ trigger, then click on ‘Continue’.
-
Choose a Mailjet account to use, or link a new one to Zapier, if needed. For more information click here.
-
You will now need to select the events you want to automatically track for this trigger. Event Tracking simply means whenever there is an event, an event is dispatched to the provided Endpoint URL, containing meaningful context about the event (like the recipient email, timestamp, etc). From here, the customer can script actions to be done following it.
Note
Mailjet allows you to track each event from one URL at a time, so it will not be possible to track a Click event simultaneously from Zapier and a custom URL, for example.
We will use the URL provided to allow Zapier to recognize when a link in an email was clicked, and subsequently trigger the Zap. To do that, first please copy the provided URL to your clipboard.
Then go to the Trigger Events section of your Mailjet account.
Follow the below instructions to configure the Endpoint URL for the Click trigger.
A. Tick the checkbox next to the ‘Click’ event.
B. Paste the previously copied URL into the ‘Endpoint URL’ field for the ‘Click’ event.
C. You can test the URL by clicking on the ‘Send’ button – if it is correct, you will receive a ‘OK, Code 200’ response.
D. Click on ‘Save’ to submit the changes.
-
Once you have done this, go back to Zapier and click on ‘Continue’.
-
You will be given the option to select a contact list for the zap. Call up the drop-down menu and choose the list you want to use.
Note
If you do not select a contact list, the trigger will activate for all contacts linked to your Mailjet account. This will allow you to track transactional emails as well.
Once you are done, click on ‘Continue’.
-
You will be asked to review your selections – make sure that you have added the Endpoint URL link and selected the proper contact list.
-
The system will now want to test the trigger. Make sure that you have recent events matching your selections so far. In this case, we need a contact from the ‘Mail Events List’ contact list, who has clicked on a link in a Mailjet campaign recently.
-
Once the test is successful, click on ‘Continue’ to complete the trigger configuration.
Action Phase
- Search for and select your CRM as the Action App.
- Choose the action you want the Zap to perform. In our example this will be a ‘New Note’ or ‘Add Note’ action. Then click on ‘Continue’.
- Select the CRM account you want to use, or connect a new one to Zapier. Once you have chosen the account, click on ‘Continue’.
-
You will now need to configure the note. The options may vary depending on the CRM you are using, but you will always be able to select a user, match certain properties to the contact properties in Mailjet, as well as select the Note body.
Here is an example for a configured note. Once you have configured the Note on your end, click on ‘Continue’.
-
Zapier will now ask you to test the zap – click on ‘Create & Continue’ to do that, or on ‘Skip Test & Continue’ to skip it. Afterwards simply Finish the Zap and turn it on and you are all set!
Additional Zap Functionalities
Due to the variety of triggers and actions for the different applications supported by Zapier, we are unable to list all of the possible zap configurations. We feel that the above instructions will cover most (if not all) of your CRM integration needs, but you can always test out differently configured zaps to try and link your Mailjet and CRM accounts.
Ready to Use Zap Templates
Zapier allows the creation of templates for commonly used zaps – they will streamline the process for you, by hiding unnecessary options and allowing you to select only the ones you need for your zap.
To review the available Zap templates, go to Zapier’s Explore section. There you can search for and add the applications you want to link – Mailjet and your CRM application. Once selected, the respective app tags will show below the search section.
When you have selected the two apps, scroll down to see the popular Zap templates and click on ‘Use this Zap’ to use the template you have chosen.
Here is an example list of popular zap templates configured for different CRM services.
Conclusion
We hope you find this guide helpful. Let us know what you think of the Zapier integration process, or especially what functionality we should introduce next by emailing plugins@mailjet.com.
Happy Zapping,
Mailjet Integrations Team