Send emails with dynamic attachments

Published July 31, 2023
Modules
Difficulty

There are various business cases in which personalized attachments need to be sent to customers through email. One reason for this is the specific nature of industries like finance, banking, insurance, or healthcare. Email communication in various industries often involves sending dedicated documents to customers, often due to legal requirements. Additionally, personalizing attachments can be beneficial for specific marketing campaigns aiming to meet particular business needs. Our Dynamic Attachments feature enables the process of sending customized attachments to each customer by email.

In this use case, we demonstrate how to add two dynamic attachments to an email communication, with each attachment tailored to individual customer. To do this, we create a workflow in which we upload selected files then attach them to an email and send them to customers. This use case illustrates a scenario where we send two requests with a single file.

Prerequisites


Note: To see the event reference related to attachment upload events, click here.

Create a workflow


Create a workflow in which you specify the files you want to attach to the email communication. In this use case, we follow a scenario in which the workflow is triggered by the attachment.upload event, which retrieves information about the Insurance Agreement files. Then, we wait for the Policy Certificate to be uploaded, and then send email with both of these documents in attachments, where each attachment is dedicated to an individual customer.

Event attachment.upload can be extended with any custom attributes. In our case, we are sending an additional parameter docType, which contains information about the type of the uploaded file. We will use this parameter to specify the event from which we want to get the uploaded files.

  1. Go to Automation > Workflows > New workflow.
  2. Enter the name of the workflow.

Define the Profile Event trigger node


The trigger for starting this workflow is the attachment.upload event that appears in the customers profiles when files sent from the external source have been successfully uploaded and are ready to be used as a dynamic attachment. The first event from which we want to get file was send with docType parameter value - Insurance agreement.

  1. As the first node of the workflow, add Profile Event.
  2. Name this node with a unique name.
  3. From Choose event dropdown menu, choose the attachment.upload event.
  4. Click the + where button and from the dropdown list, choose the parameter that specify the type of uploaded file. In our case, it is the docType parameter.
  5. From the Choose operator dropdown, select Equal(String).
  6. In the text field, type the type of the file. In our case, it is Insurance agreement.
  7. Confirm by clicking Apply.
Profile
Profile Event trigger node

Define event filter


After the first file is uploaded, define the second event from which you want to upload file. We use attachment.upload event with the docType parameter value - Certificate of policy.

  1. Add the Event filter node.
  2. Name this node with a unique name.
  3. From Choose event dropdown menu, choose the attachment.upload event.
  4. Click the + where button and from the dropdown list, choose the parameter that specify the type of uploaded file. In our case, it is the docType parameter.
  5. From the Choose operator dropdown, select Equal(String).
  6. In the text field, type the type of the file. In our case, it is Certificate of policy.
  7. Confirm by clicking Apply.
Event
Event filter node

Define the Send Email node


When all files are already uploaded, add them as attachments to the email communication.

  1. Add the Send Email node.
  2. In the Sender details section, choose the email account from which the email will be sent.
  3. In the Content section, in the Subject field, enter the subject of the email, and from the Template dropdown, select the template you created as part of the prerequisites.
  4. From the Dynamic Attachment dropdown list, select nodes from which the dynamic files will be sourced.
    Send
    Send email node
  5. In the UTM & URL parameters section, you can define the UTM parameters added to the links included in the email.
  6. In the Additional parameters section, you can optionally describe campaigns with additional parameters.
  7. Click Apply.

Add the finishing node


  1. Add the End node.
  2. In the upper right corner, click Save & Run.
The view of the workflow configuration
Workflow configuration

Check the use case set up on the Synerise Demo workspace


You can check the configuration of the workflow directly in Synerise Demo workspace.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker