ComponentsActions

SendGrid

Send transactional email and manage contacts in SendGrid from inside an agent workflow.

SendGrid actions let an agent handle email directly in a flow. An agent can send transactional email, add contacts, and list existing contacts, then pass the results to later steps.

Supported actions

GroupActions
EmailSend Email
ContactsAdd Contact, List Contacts

Prerequisites

How to use these actions

  • Map text inputs from earlier steps. Inputs such as To Email, Subject, and Plain Text Content accept a value mapped from a previous step.
  • Fixed value inputs. The Page Size count and the List IDs set are entered as fixed values.
  • Provide a body when sending. When sending an email you must provide a Plain Text Content body, an HTML Content body, or both. At least one is required.
  • List results page with a token. To page through more contacts, pass the Page Token from the previous response into the next call.

Actions

Email

SendGrid Send Email

Sends a transactional email.

InputRequiredDescription
From EmailYesThe sender address.
From NameNoThe sender display name.
To EmailYesThe recipient address.
To NameNoThe recipient display name.
SubjectYesThe email subject line.
Plain Text ContentConditionalThe plain text body. Provide this or HTML Content.
HTML ContentConditionalThe HTML body. Provide this or Plain Text Content.
Reply To EmailNoThe reply to address.
At least one of Plain Text Content or HTML Content is required.

Contacts

SendGrid Add Contact

Adds a contact to your SendGrid contacts.

InputRequiredDescription
EmailYesThe contact's email address.
First NameNoThe contact's first name.
Last NameNoThe contact's last name.
CityNoThe contact's city.
State Province RegionNoThe contact's state, province, or region.
CountryNoThe contact's country.
Postal CodeNoThe contact's postal code.
List IDsNoThe list IDs to add the contact to.

SendGrid List Contacts

Lists contacts.

InputRequiredDescription
Page TokenNoPagination token from a previous request.
Page SizeNoNumber of contacts per page, from 1 to 1000. Defaults to 50.

Example

An agent that emails a customer and records them as a contact:

A SendGrid Send Email action sets From Email to your sender address, maps To Email and Subject from earlier steps, and provides a Plain Text Content body composed by a model step.

A SendGrid Add Contact action maps Email to the recipient and sets First Name, Last Name, and List IDs so the contact is added to the right list.

Troubleshooting

For issues common to every vendor, see the Actions overview.

Was this page helpful?

On this page