Mailchimp transactional newbie trying to send an email using a template with dynamic content
We are using Mailchimp Transactional (aka Mandrill) to send emails to new users of our product. I am trying to send a follow up email 2 days later.
I already have a template for the follow up, that uses 1 dynamic field, {{first_name}}.
I have already set up the webhook and a zap that receives it and that part is working fine.
I have already set up the delay to wait the 2 days using zapier’s delay app.
I am now trying to complete the ‘Send Template’ action in Mailchimp Transactional.
What I am struggling with are how to fill are 2 fields related to the dynamic content. The two fields are
Template Variables
Merge Field
Given that I only have 1 field, what do I put in these?
Page 1 / 1
Hi @RunForestRun
Good question.
In order for us to have full context, please post detailed screenshots with how your Zap steps are configured, thanks.
Sure @Troy Tessalone
The first step:
The second step is checking that it triggering off our initial Welcome email, sent in Mailchimp transactional. Currently the test is failing, which is fine, since it is being triggered off a test message from Mailchimp:
The 3rd step is the 2 day delay:
Finally, we get to the part where we are sending the follow up email:
Template name is correct
From Name is the sender we have set up in Mandrill
From & To emails are automatically chosen; BCC is set to our Hubspot acct so that it is tracked there too.
And the lower part of the setup is where I’m struggling:
This is where I’m assuming I’m putting in {{firstname}}, but not sure what key or what the merge fields would be, etc. The documentation it is pointing to is not helping me I’m afraid.
Thanks!
@RunForestRun
Did you review the available help articles for using MailchimpTransactional in Zapier?
Can you provide screenshots with the full field descriptions so we have context?
Here we go:
I kinda figure the key|{{field}} means I need ‘firstname’ as key, and somehow get the recipient’s name from the welcome email. But that doesn’t tell me which of the two I should use, Templates Variables or Merge Field, or why both are required.
If you don’t know which to use, then why not try testing?
Test with Template Variables, and see if that works.
If not, test with Merge Fields, and see if that works.
You’d configure the Template Variables and Merge Fields the same.
key|{{variable}}
EXAMPLE
firstname|{{map the FIRST NAME from previous step}}
Appreciate your help @Troy Tessalone, it isn’t sending but will keep working on it, thanks.
@RunForestRun
Best to provide updated screenshots in order for us to have context.
OK, I have Mailchimp transactional sending the email, but the first_name value is not being included in the email. Here’s what I’ve done:
I have added a step to query Hubspot for the person’s name; at the moment this is hard-coded to query for my record, but of course in the ‘real’ version it will be the targeted recipient’s address.
In the email generation step, I have hard-coded the send to address as my personal email, for testing purposes.
In Template Variables I’ve included the hubspot record’s first name as the field value, and in Merge Fields, I’ve included the hubspot record’s last name as the field value; my thought that if one comes through I wanted to see where it came from.
The result is a blank space in the email where first_name should be; other than that, it is choosing the right email template and reflecting any corrections I make to it.
Zapier seems to approve of all settings, as steps are checked green.
Both fields are required -- if either Template Variables or Merge Field is blank, it will not pass.
Here are the entries in Zapier:
Here is the template’s code in Mailchimp transactional:
Here is the resulting email:
@RunForestRun
Try removing the enclosing brackets {{ }} around the mapped variables
This is how I have it configured for a client.
That worked, and it was needed in the Merge Field.
I would still love to know why both are required for the zap to pass tests, if the other value (Template Variables) is not used.
@RunForestRun
Both fields being required is a due to how the Zap app was developed.