Back to Botpress

Loops Integration

integrations/loops/hub.md

12.30.91.5 KB
Original Source

Loops Integration

Configuration

How to use

Actions

Send transactional emails:
To send transactional emails using this integration, a template must first be published. The ID of this template as well as the values of its data variables must then be passed as inputs to the Send Transactional Email action.

Attachments: to include attachments, files can either be uploaded to the workspace and made available to the integration by adding the following to the Files API call:

ts
await client.uploadFile({
  accessPolicies: ['integrations'],
  // Rest of the fields
})

or can be directly included by entering the file's base64-encoded data and MIME content type in the actions input. The first method is useful for sending premade templates while the second allows the user to send personalized content.

Events

This integration currently supports events related to sent emails (via Botpress or not). Some events, such as an email being opened or a link in the email being clicked, only support campaign or Loop emails. See Loops' official event docs for more information.