Notification about delay

Published December 27, 2021
Modules
Difficulty
Selected Clients
mediaexpert logo

You can use Synerise to inform customers that their order will be delayed, instead of calling them or waiting until they call and ask about the products they orderd.

This use case provides the instructions on the basic implementation of this use case, that is sending an email with information about the delay in delivery of the order.

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Implement a custom event.
  2. Prepare an email template.
  3. Create a workflow.

Implement a custom event


As the first part of the process, send through API a custom event (for a test user with a test order ID) to Synerise, that signifies the delay of the order delivery. Use this method.
You will need this event in the further part of the process to select it as a trigger of the workflow.

  • If you have more than one reason for the order delay, insert them in the parameter. This way, you can prepare an email template for every reason and prepare a workflow that is reason-dependant.
  • In the event information, add the ID of the order. This way, you can later use it as an insert in the email template.

Example of an event:

{   
"label": "Delay notification",
"action": "order.delayed",
"client": {
        "email": "john.doe@example.com"
    },
    "params": {
        "reason": "info28",
        "orderId": "1988100"
    }
}

Prepare an email template


In this part of the process, prepare an email template that includes the information about the order ID.

If you have more than one reason for the order delay, prepare template for each reason of delay. Later on, you can prepare workflow for every reason.

  1. Go to Image presents the Communication icon Communication > Email.
  2. On the left side of the screen, click Templates.
  3. Select the wizard.
  4. In the content of the message add this insert:
     {{ event.params.orderId }} 

    It will be replaced with the actual ID of the order.
    Important: When you use the syntax above, the parameters are retrieved from the event that is in the current context. The context is the most recent Trigger or Event Filter node in the workflow. Learn more about reusing event context from preceding nodes
  5. Adjust the design of the template according to your needs.
  6. Save the template.

Create a workflow


In this part of the process, prepare a workflow that is triggered by the event that signifies the delay of the delivery. As a result, an email is sent to the customer whose order will be delayed.

If you have more than one reason for the order delay, insert them in the parameter. This way, you can prepare workflows for each reason of the delay.

  1. Go to Automation > Workflows > New workflow.
  2. Enter the name of the workflow.
  3. As the first node of the workflow, add Profile Event. In the node settings:
    1. Select the event you implemented in the first part of the process.
    2. As the parameter, select the parameter that signifies the reason of the delay.
    3. As the logical operator, select Equal.
    4. In the text field that appeared, enter the reason of the delay.
      Settings of the Profile Event trigger
      Settings of the Profile Event trigger
    5. Confirm by clicking Apply.
  4. As the next node, add Send Email. In the node settings:
    1. In the Sender details section, select the sender account from which the email will be sent. Confirm the changes by clicking Apply.
    2. In the Content section, enter the subject of the email (it will display in the recipient’s inbox).
      Tip: In the email subject, you can also put the order number by using an insert, for example Order information no {{event.params.orderId}}.
    3. Select the template you created in Prepare an email template step.
    4. Confirm the settings of the Content section by clicking Apply.
    5. In the UTM & URL parameters section, click Change.
    6. Enter the parameters.
    7. Confirm the settings in the UTM & URL parameters section by clicking Apply.
    8. Confirm the settings of the Send Email node by clicking Apply on the bottom of the pop-up.
  5. As the last node, add End.
  6. Click Save & Run.
Final configuration of the workflow
Final configuration of the workflow

Check the use case set up on the Synerise Demo workspace


You can check the workflow created in this use case.

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.

What’s next


As an extra step, you can send a discount coupon after a delayed shipment. If the ordered goods cannot be delivered on time for logistical reasons, you can inform customers ahead of time and offer a discount coupon to be applied in future purchases, boosting the loyalty of your customers.

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