Skip to content
SendGrid

How to use SendGrid

CommunicationMarketingCost: 1 credit per runTop 100 · #45Full guide

What it is for

The SendGrid component lets you send transactional or dynamic-template emails, manage contacts and control the global unsubscribe list from flooows. It is used for order confirmations, automated notices, welcome emails or keeping marketing lists up to date.

SendGrid has no triggers in flooows: use it as an action inside flows started by other events, such as a new order or a form signup.

Set up the connection

Authentication type: API key or token · Custom credentials

  1. 1In SendGrid go to Settings > API Keys and create a new key with the permissions you need (for example mail send and contact management).
  2. 2Copy the key right away, since SendGrid will not show it again.
  3. 3In flooows add a SendGrid step, click "Connect" and paste the key into "API Key".
  4. 4If your account is hosted in the EU region, select it under "Data Residency" (when that option is shown).
  5. 5Save the connection.
Connection fieldTypeRequired
API KeySecret keyYes
Data ResidencyFixed listYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Send Email: fill in "To", "From (Email)" (a sender verified in SendGrid), "Subject", choose the "Content Type" (text or HTML) and map the "Content".
  • Send Dynamic Template: enter your "Template Id" and pass a JSON in "Template Data" with the variables, mapping values from earlier steps.
  • Create or Update Contact: map "Email", first and last name and pick the "Lists" to add them to.
  • Check Global Unsubscribe Status lets you confirm someone has not unsubscribed before emailing them.

Tips

  • •Verify your domain or sender in SendGrid to improve deliverability.
  • •Dynamic templates keep design out of the flow: change the email in SendGrid without editing flooows.
  • •Use "Attachments" to send files created in previous steps, such as a PDF.

Actions (8)

Operations available as flow steps. Expand each one to see its fields.

Send Email8 fields
FieldTypeRequired
ToList of valuesYes
From (Email)TextYes
From (Name)TextNo
Reply ToTextNo
SubjectTextYes
Content TypeList (from your account)Yes
ContentTextYes
AttachmentsList of valuesNo
Send Dynamic Template7 fields
FieldTypeRequired
ToList of valuesYes
From (Name)TextNo
From (Email)TextYes
Template IdTextYes
Template DataJSONYes
Reply ToTextNo
AttachmentsList of valuesNo
Create or Update Contact5 fields
FieldTypeRequired
EmailTextYes
First NameTextNo
Last NameTextNo
ListsMulti-selectNo
Additional FieldsKey / value pairsNo
Find List by Name1 fields
FieldTypeRequired
List NameTextYes
Add to Global Unsubscribe List1 fields
FieldTypeRequired
EmailsList of valuesYes
Remove from Global Unsubscribe List1 fields
FieldTypeRequired
EmailTextYes
Check Global Unsubscribe Status1 fields
FieldTypeRequired
EmailTextYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

403 Forbidden when sending

The sender is not verified or the key lacks mail send permission; check both in SendGrid.

401 Unauthorized

The key is wrong or was deleted; create a new one and update the connection.

Template variables are empty

Make sure the names in "Template Data" match those in the template.

Region error

If your account is in the EU, choose the correct data residency in the connection.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps