- Introduction
- What is a Zap
- Ready to Use Zap Templates
- Add new People to Mailing Lists Zap
- Update Contact Properties Zap
- Send Email with Mailjet Template Zap
- Send HTML Email Zap
- Send Email Campaign to a Mailjet Contact List Zap
- Parse Inbound Emails Zap
- Email Events Zap
- Troubleshooting
- Conclusion
Introduction
Zapier is an online tool that allows you to connect two or more apps to automate repetitive tasks - like moving 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.
Below we will guide you through the steps to create zaps between your Pipedrive and Mailjet accounts, which we believe will help you better take advantage of both platforms’ capabilities.
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.
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)
Ready to Use Zap Templates
Zapier also 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. If such a template is available, we will include it in the ‘General Information’ section of the respective zap.
Keep in mind that there will be several important differences between using the templates and the way you create a zap directly from the ‘Make a Zap!’ option on the Zapier site:
- The Trigger and Action Apps will be pre-selected for your convenience.
- Since the template has been created with a specific trigger and action in mind, all other triggers and actions will be hidden to avoid mistakes.
- During trigger and action configuration generally only mandatory options will be displayed. You can view the optional configurations by clicking on ‘Show advanced options‘.
Add new People to Mailing Lists Zap
General Information
When you create new contacts (Persons) in Pipedrive, you may want to subscribe the associated emails to different Mailjet contact lists. With Zapier you can streamline this process, saving valuable time and being able to send them automated emails and newsletters through Mailjet straight away.
We will now create a zap to add details for new Pipedrive Persons to a Mailjet contact list.
Trigger Phase
To start, go to your Zapier account dashboard and click on ‘Make a Zap!’.
-
Enter a name for your new zap.
-
Choose a Trigger App. Search for Pipedrive in the search bar and select the result.
-
Select a Trigger. You need to add the details of a newly added Person to your Mailjet contact list, so please choose ‘New Person’ and click on ‘Save + Continue’.
-
Select a linked Pipedrive account you want to use, then click on ‘Continue’. If you don’t have a Pipedrive account linked to Zapier, or want to select a new one to use, click on ‘Connect an Account’.
For this example, we will connect a new Pipedrive account to use.
In the pop-up window enter your Pipedrive API Key and click on ‘Yes, Continue’. You can find your API Key by clicking on the link provided in the pop-up.
Go back to the Zapier page and you will see the new account added to the list, marked with the email address of the account owner. If you wish to change the default name, just click on the pencil icon and enter a new name.
Additionally, you can test whether the Pipedrive account you want to use is active by using the ‘Test’ option next to it.
Select the account and click on ‘Save + Continue’.
-
You will need to test the trigger now by pulling an existing person with the selected preferences. Click on ‘Fetch & Continue’ to initiate the test.
-
If the test is successful, you will see the respective message. If not, click on ‘Re-test’ to try again. Once the trigger has been successfully tested, click on ‘Continue’.
Action Phase
-
First, search for Mailjet in the Search bar, then select the result.
-
You need to choose an Action now. You want to add the newly added Person to the respective Mailjet Contact List, so select ‘Subscribe Contact to Mailjet List’ and click on ‘Save + Continue’.
-
Select the Mailjet account you want to use. If no account has been registered or you want to link a different one, click on ‘Connect a New Account’.
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 your API Key Management page.
Click on ‘Yes, continue’.
The new account will appear as “Mailjet #”. 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 contact 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.
-
You will now need to match the contact properties from Mailjet to information present on Pipedrive. To do this, click on the ‘Insert a field’ button to call up the drop-down menu, then select the contact detail that corresponds to the respective property.
‘Email’ is the only mandatory contact property. However, it is useful to match additional ones - e.g. Full Name, Date of Birth, Address etc. This will help you later for personalizing emails in Mailjet, or for segmentation of the contact list for campaigns, for example.
In the end, you will have a result similar to the picture below.
-
You will see the details of the pulled account matched to the Mailjet contact properties.
You can test the zap by clicking on ‘Create & Continue’. Keep in mind that this will add the pulled contact information to the Mailjet contact list. Alternatively, you can click on ‘Skip Test & Continue’. In both cases, you will be asked to ‘Finish’ the zap.
-
The only thing left is to turn on the zap by clicking on the toggle button and you are ready to go!
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 Person, when the Person’s 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.
Update Contact Properties Zap
General Information
In order to send good personalized emails and marketing campaigns, you need to make sure that your contacts’ personal information is always up to date. To make it easy for you, you can link Pipedrive to Mailjet via Zapier using Mailjet’s ‘Update Contact Properties’ zap action.
Once the details of a person, for example, are updated in Pipedrive, the information is updated in the contact properties on Mailjet’s end.
Trigger Phase
-
Click on ‘Make a Zap!‘, choose a zap name, then for a Trigger App search for and select Pipedrive. For reference click here.
-
It is time to select the trigger.
For this example we will choose an Updated Person trigger. As it is not a common trigger, it is usually hidden and to see it you need to click on ‘Show less common options’. Once selected, press ‘Save + Continue’.
-
Select the Pipedrive account you want to use, or connect a new one to Zapier. For reference click here.
-
Afterwards you will be asked to test the trigger. Zapier will try to fetch a person in your Pipedrive account with recently changed details.
Simply click on ‘ Fetch & Continue’ to initiate the test.
-
Use the ‘view your updated person’ link to see the details fetched by Zapier. You can also re-test to get a different activity. Click on ‘Continue’ to move on to the Action phase, once you are satisfied with the test results.
Action Phase¶
-
Search for an select Mailjet as the Action App.
-
Choose the action to be performed when the trigger is activated.
In our case, this would be ‘Update Contact Properties’. Afterwards, click on ‘Save + Continue’.
-
Select the Mailjet account you want to use, or connect a new one to Zapier. For reference please click here.
-
You now need to match your Pipedrive persons’ properties to your Mailjet ones, so they can be properly updated when the zap is triggered.
You will see a list of your properties in Mailjet.
The ‘Email’ property is the only mandatory one, However, it is useful to match additional ones – e.g. First and Last Name, Address, Phone, Organization etc. This will help you later both when personalizing emails in Mailjet and for segmentation of the contact list for marketing campaigns, for example.
To match properties, simply call up the drop-down menu for the Mailjet property you are interested in and select the corresponding Pipedrive detail.
In the end you will have a picture similar to the one below. When you are ready, click on ‘Continue’.
-
You will need to test the zap. You can check the information pulled by Zapier and see if it the properties are correctly aligned.
Click on ‘Send Test to Mailjet’. If you wish to skip the test, select the ‘Skip Test’ option.
Note
Mailjet matches accounts by their email addresses. The test will only be successful, if there is already an existing account on Mailjet with the same email address as the one fetched by Zapier.
-
When the test is successful (or skipped), you will see a message informing you about the same. Click on ‘Finish’ to complete the zap.
-
All that’s left is to turn on the zap, and you are ready to go!
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 promptly contact other partners or employees about new contacts, leads, opportunities etc. that have been added to Pipedrive. 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 Pipedrive for a certain event of your choice - e.g. a new Contact, Deal, Activity etc.
- You then create an action on Mailjet to ‘Send Email Using a Saved Mailjet Template’ when the respective event occurs.
Trigger Phase
-
Click on ‘Make a Zap!’, choose a zap name, then for a Trigger app select Pipedrive. For reference click here.
Afterwards, choose the actual trigger. It can be one of various options, like a New Person being added, a Deal entering a certain stage, a new Activity etc. For this example we will choose a New Activity trigger - select it and click on ‘Save + Continue’.
-
Select a Pipedrive account you want to use, or link a new one. For reference click here.
-
Once the selection has been made, click on ‘Continue’. Zapier now needs to test the trigger - make sure that you have at least one activity created recently, then click on ‘Fetch & Continue’.
-
If the test is successful, you will see a confirmation message.
Use the ‘view your activity’ link to see the details fetched by Zapier. You can also re-test to get a different activity. Click on ‘Continue’ to move on to the Action phase, once you are satisfied with the test results.
Action Phase
- Search for Mailjet in the Action App search bar and select the result.
-
Select the ‘Send Email Using a Saved Mailjet Template’ action and click on ‘Save + Continue’.
-
Select the Mailjet account you want to use, or connect a new one. For reference click here.
-
Now you need to configure 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 Pipedrive variables.
-
You can link these emails to a 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 issues with 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.
Simply choose a detail from Pipedrive 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.Note
Using the default text is optional - you can remove it altogether. However, in case you do, and the variable is not provided, an error will be displayed in its place.
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 Pipedrive 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’ and turn on the zap, and you are ready to go!
Send HTML Email Zap
General Information
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, but that removes the necessity of creating a template in the Email Editor in the first place, so you will be able to create your zap quickly.
Trigger Phase
To configure the trigger please follow the same steps as in the Send Email with Mailjet Template Zap.
Action Phase
-
You have entered the Action phase. Search for Mailjet in the Action App search bar and select the result.
-
Select the ‘Send HTML Email’ action and click on ‘Save + Continue’.
-
Choose a linked Mailjet account, or connect a new one that you wish to use. For reference click here.
-
You will now be asked to create the email template by choosing a Sender email address, Sender name, Recipient Email address or addresses, Subject Line and email body.
You will also be 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.
You can personalize the email body or Subject field by inserting fields from Pipedrive containing important information like the date and time of the activity, duration, attendees etc.
Once you are ready, click on ‘Continue’.
-
You will be asked to review and test the new template.
Click on ‘Create & Continue’, or if you wish to skip the test, select ‘Skip Test & Continue’.
-
Once you have successfully tested the zap, or skipped the test, you will need to ‘Finish’ the zap creation process.
-
All that’s left now is to turn on the zap and you are ready to go!
Send Email Campaign to a Mailjet Contact List Zap
General Information
The list of people you need to contact regarding certain developments can be ever changing. If you keep it in a contact list in your Mailjet account, you may find it more convenient to configure your zap to send emails to the respective contact list as a whole.
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.
Trigger Phase
To configure the trigger please follow the same steps as in the Send Email with Mailjet Template Zap.
Action Phase
-
You have entered the Action phase. Search for Mailjet in the Action App search bar and select the result.
-
Select the ‘Send an Email Campaign to a List’ action and click on ‘Save + Continue’.
-
Choose a linked Mailjet account, or connect a new one that you wish to use. For reference click here.
-
You will now be asked to set up the campaign by choosing a Sender email address, Sender name, Contact List, Campaign Title, Subject Line and email body.
You will also be 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.
You can personalize the email body or Subject field by inserting fields from Pipedrive containing important information like the date and time of the activity, duration, attendees etc.
Once you are ready, click on ‘Continue’.
-
You will be asked to review and test the new template.
Click on ‘Send Test to Mailjet’, or if you wish to skip the test, select ‘Skip Test’.
-
Once you have successfully tested the zap, or skipped the test, you will need to ‘Finish’ the zap creation process.
-
All that’s left now is to turn on the zap and you are ready to go!
View Your 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
You can take advantage of the contact forms you set up to 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 Pipedrive and automatically create a new prospect.
Trigger Phase
- Go to your Zapier account dashboard, click on ‘Make a Zap!’, then choose a name for your new Zap. Click here.
-
In the ‘Choose a Trigger App’ search box, enter and select ‘Mailjet’.
-
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 in 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 Mailjet account.
Now you need to provide 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.
Click on the ‘Copy to clipboard’ button.
Go back to the Hurl.it page and click the ‘+Add Parameter(s)’ link.
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 Pipedrive or any other Zapier connected app.
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 to create a new Person on Pipedrive. The minimum information needed by Pipedrive to create a new Person is the person’s name, but we suggest adding fields for the Organization they are part of, as well as for the person’s contact information (email and cellphone), so you can contact them back.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 on the ‘Continue’ button to complete the Parse Inbound Email Trigger!
Action Phase
In the Action phase you tell Zapier what to do with the information that Mailjet parses from the email and sends to Zapier. In this use case, we are telling Zapier to add a new person to Pipedrive!
-
From the ‘Choose an Action App’ search box, enter ‘Pipedrive’ and select it from the list.
-
From the list of options choose the appropriate Action for your Zap - in this case ‘Create or Update a Person’, then click on ‘Save + Continue’.
-
Select (or connect) a Pipedrive account to use for this zap. Click here for reference.
-
You will now see all the fields associated with a Pipedrive Person’s details.
First, you need to select the owner of the added person - call up the drop-down menu and choose the account responsible for the newly added persons. In our case we will assign that task to the employee Jane Doe.
Afterwards you need to match the information from your parsed email to the respective Pipedrive fields. Simply call up the drop down list for the desired Pipedrive detail and select the corresponding email info.
The last option available is to decide who can view the newly added (or updated) person in Pipedrive. Once finished, click on ‘Continue’.
-
You will see a page with the pulled information and will be able to test the zap Action. If you wish to skip the test, click on ‘Skip Test & Continue’.
-
If the test is successful, or if you skipped it, you will be asked to Finish the zap.
-
The only thing left is to turn on the zap.
You are done! Your Zap is on and will automatically run when an email is sent to your parse email address.
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 Pipedrive account for the respective emails you are interested in.
Naturally, the ways to configure the Zap depend on the Zapier actions available for Pipedrive. Here as an example we will configure a Zap to leave a note in a Pipedrive contact every time this contact ‘clicks’ an email.
- 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.
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.
Note
In order to track email Clicks or Opens, you need also to have the respective options turned on in your Account Settings as well.
-
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.
Once you have made your selection, 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 Pipedrive as the Action App.
-
Choose the action you want the Zap to perform. In our example this will be a ‘Create Note’ action. Then click on ‘Continue’.
-
Select the Pipedrive account you want to use, or connect a new one to Zapier. Once you have chosen the account, click on ‘Continue’. For reference click here.
-
You will now need to configure the note. Once you have configured it 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!
Troubleshooting
If you experience difficulties or have questions about the Pipedrive platform, please visit the Pipedrive Help Center.
The Zapier Help page can assist you with answers to questions about Zap functionalities and common issues.
Of course, feel free to contact our Customer Support team, in case you come across any technical difficulties with the Mailjet product - our team of specialists will be more than happy to assist you! Please visit the Mailjet ‘Contact Us’ page for more information.
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