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 Salesforce and automatically create a new prospect.

Trigger Phase

  1. Go to your Zapier account dashboard, click on ‘Make a Zap!’, then choose a name for your new Zap. For reference click here.
  2. In the ‘Choose a Trigger App’ search box, enter and select ‘Mailjet’.
  3. Select the ‘Parse Inbound Email’ trigger and click ‘Save + Continue’.

    parse-img1

  4. Select the Mailjet account you want to use, or connect a new one. For reference click here.

  5. As this point you will need to ask Mailjet to create a new parse email address for your Zap.

    parse-img2

    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.

    parse-img3

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

    parse-img4

    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.

    parse-img5

    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.

    parse-img6

    Go back to the Hurl.it page and click the ‘+Add Parameter(s)’ link.

    parse-img7

    In the name text box, enter: URL

    And paste the webhook into the second text box.

    parse-img8

    Click the checkbox to confirm you are not a robot ;)

    Then click on ‘Launch Request’.

    parse-img9

    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 Salesforce or any other Zapier connected app.

    And yes, the parse email address is quite long - please record it somewhere for future reference. ;)

    parse-img10

    Note

    Mailjet also offers you the option to receive these emails on your own domain name. Remember that the domain should be verified with Mailjet for this to work. Please visit the ‘Use your own domain‘ section in our Parse API Guide for more information.

  6. 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 Lead in Salesforce. The minimum information needed by Salesforce to create a new lead is the company and last name. Once you have sent the test email, switch back to your Zapier screen and click on ‘OK, I did this’.

    parse-img11

    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.

  7. Click on the ‘Continue’ button to complete the Parse Inbound Email Trigger!

    parse-img12

    Note

    You will need to redirect emails sent from your ‘Contact Us’ form to your new Mailjet parse email address - with the key contact information stored in custom email headers. This step is done outside of Zapier and should be completed before you turn on your zap.

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 contact prospect to Salesforce!

  1. From the Choose an Action App search box, enter ‘Salesforce’ and select it from the list.

    parse-img13

  2. You will see a list of possible Salesforce actions. Select ‘Create a new lead’ and click on ‘Save + Continue’.

    parse-img14

  3. Select (or connect) a Salesforce account to use for this zap. Click here for reference.

  4. You will now see all the fields associated with a Salesforce Lead.

    parse-img15

    You need to match the information from your test email to the respective Salesforce fields.

    Simply call up the drop down list for the desired Salesforce field and match it to your email.

    parse-img16

    parse-img17

    Once you have matched up all the fields, scroll to the bottom of the page and click on ‘Continue’.

    parse-img18

  5. The test page should say ‘Test Successful!’. (If the test was unsuccessful, please select the ‘Re-test Salesforce to get another lead’ option.)

    Click on ‘Finish’.

    parse-img19

  6. And the last step – click on the toggle button to turn on your Zap.

    parse-img20

    You are done! Your Zap is on and will automatically run when an email is sent to your parse email address.