# Automation emails with SendGrid

**URL:** <https://forum.bubble.io/t/automation-emails-with-sendgrid/225220>\
**Category:** Plugins\
**Created:** [September 21, 2022, 2:23am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220 "2022-09-21T02:23:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 21, 2022, 2:23am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/1 "2022-09-21T02:23:24Z")

</div>

Hi,

I’m having a lot of trouble adding in substitution tags to automated emails through SendGrid. I’m using the the CoPilot plugin and when I send one off emails, I can get this to work (it’s easier because there is just the dynamic template ID to add).

However, I’m trying to set up an email flow to new users so they receive 3 emails, and I want to use their first name in the email - but it isn’t working even when completing the substitution tags and adding the {{ }} fields in the email template on SendGrid.

Is this possible?

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 23, 2022, 11:28pm UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/2 "2022-09-23T23:28:13Z")

</div>

@copilot do you know if this is possible?

---

<div class="post-metadata">

**Author:** ![building4stripe](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@building4stripe](https://forum.bubble.io/u/building4stripe)\
**Post date:** [September 25, 2022, 2:54am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/3 "2022-09-25T02:54:53Z")

</div>

Hi! Could you share some screenshots of both the dynamic template in SendGrid where you’ve added the substitution tags ( {{tag}} ) and the “Sendgrid - Send email” action you’ve set up in the Bubble editor? Otherwise unable to replicate the issue.

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 25, 2022, 9:43am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/4 "2022-09-25T09:43:29Z")

</div>

Hi @building4stripe, thanks for writing back!

I’ve realised that the send email I had wasn’t actually doing any work. What I’ve got is SendGrid Campaigns - Add to a list and the customer’s email address getting added to the list. Then in SendGrid, I have an automation that runs for people entered into this list.

Works fine which is something, but there is no way to personalise the emails that way with substitution tags. In the SendGrid Campaigns - Add to a list field, there is only (body) List ID and (body) email fields that can be added.

Do you know of a way to run automation emails and being able to add substitution tags?

---

<div class="post-metadata">

**Author:** ![building4stripe](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@building4stripe](https://forum.bubble.io/u/building4stripe)\
**Post date:** [September 25, 2022, 7:15pm UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/5 "2022-09-25T19:15:31Z")

</div>

If you have added substitution tags to the templates in the SendGrid Automation, all you need to do is use the “SendGrid - Add contact to list(s)” and add the correct substitution tags in the action settings. Just tried it and it’s working as expected on my end. If that’s your setup and you’re still experiencing the same issue, please share some screenshots from the SendGrid template and the workflow in Bubble.

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 26, 2022, 10:34am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/6 "2022-09-26T10:34:12Z")

</div>

Ok, so the issue I have (I think) is that the welcome series is three emails long, but the plugin is asking me for dynamic template ID - but there is no dynamic template because the emails are in the Automation.

So Sendgrid looks like this:

 ![Screen Shot 2022-09-26 at 8.30.25 pm](https://us1.discourse-cdn.com/bubble/original/3X/2/a/2a958f40411959d145dd0afb03a26e77fc4b3203.png)

The workflow on Bubble looks like this where the List ID is from the URL in the list. Not sure what to add in the Template ID section?

 ![Screen Shot 2022-09-26 at 8.31.07 pm](https://us1.discourse-cdn.com/bubble/original/3X/f/e/fea8d64053062461d740332efeaf866250597f95.png)

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 29, 2022, 10:46am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/7 "2022-09-29T10:46:49Z")

</div>

@building4stripe , would you mind sending me how you complete it and particularly where the Template ID comes from?

I keep getting this error:  
 ![Screen Shot 2022-09-29 at 8.48.38 pm](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9ac4c05dda3928fc26dddca456edaf701b7ce2cf.png)

---

<div class="post-metadata">

**Author:** ![building4stripe](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@building4stripe](https://forum.bubble.io/u/building4stripe)\
**Post date:** [September 29, 2022, 6:06pm UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/8 "2022-09-29T18:06:00Z")

</div>

Looks like you’re not the only one having this issue, looking at the plugin reviews. Might be an issue with that specific action. I haven’t used the Automations feature for the past couple of years. Whenever I need to schedule a message to be sent later, I set up a “SendGrid - Send email” action in a backend workflow and schedule the email using that workflow. I realize you might want to use the Automations feature because it can provide some more in-depth analytics details. If you don’t need that, just use backend workflows. Otherwise, you could try to contact Copilot or set up the API on your own using API Connector.

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 30, 2022, 10:21am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/9 "2022-09-30T10:21:02Z")

</div>

Yep, no problems.

Appreciate all your help Toby!

---

<div class="post-metadata">

**Author:** ![ahmed.khodeir.87](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.khodeir.87/32/109799_2.png) [@ahmed.khodeir.87](https://forum.bubble.io/u/ahmed.khodeir.87)\
**Post date:** [September 30, 2022, 10:29am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/10 "2022-09-30T10:29:22Z")

</div>

I know this is subject is about Sendgrid, but did you try out Postmark? I am using it and it is perfect!

---

<div class="post-metadata">

**Author:** ![nickhutton13](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nickhutton13](https://forum.bubble.io/u/nickhutton13)\
**Post date:** [September 30, 2022, 10:35am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/11 "2022-09-30T10:35:16Z")

</div>

I set up Sendgrid initially because it worked directly through Bubble, but it is an infuriating user experience as an email service.

What plugins do you use for Postmark @ahmed.khodeir.87 ?

---

<div class="post-metadata">

**Author:** ![ahmed.khodeir.87](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.khodeir.87/32/109799_2.png) [@ahmed.khodeir.87](https://forum.bubble.io/u/ahmed.khodeir.87)\
**Post date:** [September 30, 2022, 10:39am UTC](https://forum.bubble.io/t/automation-emails-with-sendgrid/225220/12 "2022-09-30T10:39:13Z")

</div>

I am using this one

![image](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8e06c325378d5c19199a146b396db6f689a2ea83.png)

And for the HTML I design them using [beefree.io](http://beefree.io)
