Send an email with TrustMate survey link

Published July 28, 2022
Modules
Difficulty
Selected Clients
mig logo

TrustMate is a tool that enables building online brand image through management of reviews of your online shop or company. You can integrate it with Synerise using dedicated node in Automation to build a variety of business scenarios. The node enables you to get two survey links - to rate the purchased product and to rate the company.

This use case describes the process of creating a workflow to generate a survey link from TrustMate and send it in email communication to encourage customers to leave their feedback about the purchased products. The link to the survey will be sent after 7 days from the day of purchase.

Prerequisites


Process


  1. Create a workflow
  2. Track survey answers

Create a workflow


Create a workflow that is triggered by every product purchase. In response to the purchase, the system sends a request to TrustMate with the details of the purchased products. In exchange, a link to the survey is saved to Synerise. After 7 days, the workflow sends an email to a customer.

Trustmate integration workflow
Trustmate integration workflow that generates link to the survey

Define the Profile Event trigger


  1. In Synerise, go to Automation > Workflows > New workflow.
  2. Add the first node - Profile Event. In the node configuration:
    1. Select an event that signifies a purchase of an item (in this use case it’s product.buy).
    2. Confirm by clicking Apply.
      Configuration of the Profile Event node
      Configuration of the Profile Event node

Configure TrustMate Integration node


In this part of the process, you will configure an action that workflow performs - outgoing integration that sends the details of purchased products to TrustMate and generates the trustMate.getSurveyLinks event with survey links. The values of the integration parameters are dynamic and they are sourced from the event trigger by using inserts.

  1. On the Profile Event node, click the plus icon.
  2. From the dropdown list, select TrustMate.
  3. From the dropdown list, select Get Survey Link.
  4. Click the node.
  5. Click Select connection.
  6. From the dropdown list, select the connection.
    If you haven’t established a connection yet, see Create a connection.

Create a connection

Use an access key which allows you to send a request.

  1. At the bottom of the Select connection dropdown list, click Add connection.
  2. In the Access key field, enter the access key received from TrustMate.
  3. Click Next.
  4. In the Connection name field, enter the name for the connection you created.
  5. Click Apply.
    Result: A connection is created and selected.

Define the integration parameters

  1. In the Customer’s firstname field, enter the insert that extracts the customer’s first name from the customer’s attribute: {{ customer['firstname'] }}

  2. In the Customer’s email field, enter the insert that extracts the email of your customer from the customer’s attribute: {{ customer['email'] }}

  3. In the Order Id field, enter the insert that extracts the order ID of the purchase from the Profile Event trigger: {{ event.params['$orderId'] }}

  4. In the Product’s name field, enter the insert that extracts the name of the purchased product from the Profile Event trigger: {{ event.params['$name'] }}

  5. In the Product’s category field, enter the insert that extracts the category of the purchased product from the Profile Event trigger: {{ event.params['$category']|join(' / ') }}

    Note: TrustMate requires to separate categories path elements with /, ex. clothes/dresses/pink-dresses
  6. In the Product’s SKU field, enter the insert that extracts the SKU of the purchased product from the Profile Event trigger: {{ event.params['$sku'] }}

  7. In the Product’s image URL field, enter the image URL of the purchased product. Use the following insert to extract it from the profile event trigger: {{ event.params['image-link'] }}.

  8. In the Product’s URL field, enter the insert that extracts the SKU of the purchased product from the Profile Event trigger: {{ event.params['$url'] }}

Important:

The names of the parameters you send in the transaction events may differ in your case, so make sure that Jinjava inserts correspond with the parameters’ names you send in the transaction events.

If you do not pass some of the parameters required to configure TrustMate integration node in transaction events, try extracting them from the product catalog using inserts.

Note:

When the TrustMate node is launched, trustMate.getSurveyLinks event is generated on the customer’s profile. There are links to surveys in event parameters.

Event generated on the customer's profile
Event generated on the customer's profile

Configure the Event Filter node

This node enables you to make sure the link to survey is generated and keeps it as the context for the workflow.

  1. Add Event Filter. In the configuration of the node:

    1. In the Define conditions field, from the Choose event dropdown menu, choose trustMate.getSurveyLinks event.
    2. Click where button.
    3. From the dropdown menu, select the body.product[0] parameter.
    4. From the Choose operator dropdown menu, select Regular expression (String).
    5. Enter the . value.
    6. Confirm by clicking Apply.
Final configuration of the Event Filter node
Final configuration of the Event Filter node

Configure the Delay node


Add the Delay node to define the lag between the purchase and sending an email with survey link. In this example it is 7 days.

  1. On the Get Survey Link node, click the plus icon.
  2. From the dropdown list, select Delay.
  3. Click the node.
  4. In the Delay field enter 7.
  5. From the Unit dropdown menu, select Day.

Configure settings for email

  1. As the next node, add Send Email. Configure it according to your business needs.

  2. Configure the sender details section.

  3. Configure the Content section.

    1. In the Subject field, enter your message subject.
    2. In the Template section, choose the template email template prepared earlier.
    3. You can define UTM & URL parameters.
  4. Confirm by clicking Apply.

    Important: You need to enrich your email template with the survey link generated in the TrustMate integration node. The link to survey about purchased product is stored in the body.product[0] parameter of the trustMate.getSurveyLinks event, so you can use the following Jinjava code in your email template: {{ event.params['body.product[0]'] }}
  5. Add the End node.

  6. In the upper right corner, click Save & Run.

Track survey answers


Optionally, you can level up your communication with customers based on the answers from the survey. To make it possible, configure a custom event that will be sent to Synerise through API and which will include the rate of a product. When a customer fills in the survey, this event will be sent to Synerise.

Exemplary event frame:

  
{
   "action":"client.review",
   "client":{
      "email":"string"
   },
   "params":{
      "author_name":"string",
      "created_at":"2021-04-28T14:09:27.000Z",
      "grade":0,
      "brand":"string",
      "category":"string",
      "group_id":"string",
      "gtin":"string",
      "image_url":"string",
      "local_id":"string",
      "name":"string",
      "product_url":"string",
      "public_identifier":"string"
   }
}

Tip: You can find the API method here.

Check the use case set up on the Synerise demo workspace


You can also check the workflow configuration directly in Synerise Demo workspace at this link.

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