
This trigger starts the scenario immediately when Synerise receives information that a customer has performed a specific action, for example, submitted a form or reacted to a notification by opening it or clicking a link in it. Such actions are called events and they define customers' activities in the touchpoints integrated with Synerise. 

## Requirements
----
- You must have customers in your database.
- You must implement a tracking code into your website. 

## Node configuration
--- 
1. Click the pencil icon.  
**Result**: A pop-up shows up. 
2. Click **Choose event**.  
**Result**: A dropdown list shows.
3. From the dropdown list, select the event which is to trigger the workflow.  
    The list only includes events whose definitions exist in **Data Modeling Hub > Events**.  
    
   <div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   The following events can't be used as triggers: `automation.clientStartPath`; `automation.clientEndPath`; `automation.clientPathStep`

   </div></div></div>

4. Optionally, click the **+ where** button to select the event parameters. This lets you narrow down the event occurrence that triggers the workflow.
    - Select the parameter.  
    - Define the operator.
    - Enter the value of the parameter. 
5. Confirm the settings by clicking the **Apply** button.

## Defining the date of event occurrence
---
You can determine when exactly the customer activity launches the workflow. In the example on the screen, the workflow is triggered only when a user visits a website between 0:00 on the 14th of April to 23:59 on the 30th of April, 2021.  


<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

The workflow is triggered according to the time zone selected in the workspace.

</div></div></div>


<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/client-event-date.png" alt="Example of use" class="full">
<figcaption> Selected event occurrence date range </figcaption>
</figure>

1. From the **Choose event** dropdown list, select the event.
2. Click **+ where** button. 
3. In the list of parameters, click the <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/threedoticon.png" alt="Three dot icon" class="icon" > tab.
4. Select **Specials**.
5. Select **TIMESTAMP**.  
    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/timestamp-event2.png" alt="Example of use" class="large">
    <figcaption> Timestamp parameter </figcaption>
    </figure>
6. From the **Choose operator** list, select:  
    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/date-operators.png" alt="Example of use" class="large">
    <figcaption> Timestamp parameter </figcaption>
    </figure>  

    - **Date** - if you want to select a start or end date  
        
      <details class="accordion"><summary>Click to see the explanation of operator options</summary><div class="accordion-content"><ul> <li><strong>More than</strong> - You choose dates after the selected date (including the selected date).</li> <li><strong>Less than</strong> - You choose dates before the selected date (including the selected date).</li> </ul></div></details>
  

    - **Custom** - apart from standard date ranges, you can use  non-standard (dynamic) dates, for example, everyday from 8:00 to 14.00; Mondays and Thursdays between 15:00 and 17:00; the first and the fourteenth day of the month, and so on.
        
      <div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

      To use non-standard (dynamic) dates, click this option in the calendar.
           <figure>
           <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/enable-date-filter.png" alt="The Enable date filter option" class="large">
           <figcaption> The Enable date filter option </figcaption>
           </figure>

      </div></div></div>

    - **Current date** - if you want to include those event occurence that happen.  

        
      <details class="accordion"><summary>Click to see the explanation of operator options</summary><div class="accordion-content"><ul> <li><strong>Matches the current hour</strong> - matches only date that fits the current hour, day, month, and year (example: if current date is 2024-05-20 17:00:00, dates from 2024-05-20 17:00:00.000 to 2024-05-20 17:59:59.999 matches)</li> <li><strong>Matches current day</strong> - matches only date that fits the current day, month, and year (example: if current day is 2024-05-20, only 2024-05-20 matches)</li> <li><strong>Matches current month</strong> - matches any date that fits the current month in current year (example: if current month is May 2024, dates from 2024-05-01 to 2024-05-31 match)</li> <li><strong>Matches current year</strong> - matches any date that fits the current year (example: if current year is 2024, dates from 2024-01-01 to 2024-12-31 match)</li> </ul></div></details>



## Example of use
---

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/end-node-example.png" alt="Example of use" class="full">
<figcaption>Example of a workflow that uses the Profile Event trigger</figcaption>
</figure>

The purpose of the workflow is to send an email with a purchase summary every time a customer buys a product. 

1. Add the **Profile Event** trigger node. From the list of events, choose the event which signifies a purchase (`product.buy`).
2. Connect the trigger with the **Send email** action. In the settings of the node, select the appropriate template or create a new one. 
3. Complete the process with the finishing node (**End**).


