Using event expressions in Automation

You can create an event expression to enrich the parameters of this event and use it while creating different types of analyses (for example, metrics, segmentations, funnels, and so on) and also in the specific nodes in Automation. This means that you can use the result of the event expression as a special parameter of that event.

Important: Segmentation, expression, and aggregate definitions are cached for 20 minutes after a node with the analysis is activated in a journey.
When another journey in the Automation requests a result of the same analysis in that period, the cached definition is used to calculate the results. This means that if you edit a segmentation, aggregate, or expression used in an Automation, it takes 20 minutes for the new version to start being used in journeys.
This includes definitions of segmentations, expressions, and aggregates nested in other analyses and used in Inserts.
Selecting the group of customers in the Audience node
Event expression for the product.buy event available in the Audience node
Note: You can find more information about creating event expressions here.

Event expressions in nodes


You can use event expressions only in the following nodes:

Examples of use


You can use event expressions to build the filter conditions based on the values calculated on the fly.

Selecting the group of customers in the Audience node
Example workflow
  1. Create an expression based on the product.buy which multiplies the quantity by the volume of the item. This way, you can calculate the number of sold liters.
  2. Go to Automation, create a workflow that starts with the Audience node.
    1. In the segment, select customers who bought more than 3 liters of any item you sell.
    Selecting the group of customers in the Audience node
    Configuration of the Audience node
  3. Add the Send SMS to the workflow and select a template that contains a discount code.
    Selecting the group of customers in the Audience node
    Configuration of the Send SMS node
  4. Complete the workflow with the End node.

FAQ


You can find answers to the most frequently asked questions here. If you experience any issues while creating or sending emails, you can try to detect and remove the cause of the issues on your own by following the guides in our troubleshooting.

😕

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