
Time optimizer is a tool that selects the best time to perform an action towards your customers (for example, send an email). It uses the Synerise proprietary AI engine to analyze customer behavior and reach your customers with the right content at right time.

## Modes

In time optimizer, you can create multiple modes for different channels (for example, email, mobile push, and so on).  
After enabling time optimizer, the **Standard** mode is available on the list of modes by default and it predicts the optimal time based on the `page.visit` and `screen.view` events. 

- You can create a mode out of a ready-made template:   

    | Template name | Time predicted for  | Analyzed events                               |
    |---------------|---------------------|-----------------------------------------------|
    | Email         | page.visit          | page.visit, newsletter.open, newsletter.click |
    | Mobile        | screen.view         | screen.view, screen.interaction               |
    | Web           | page.visit          | page.visit, product.addToCart, form.submit    |
- You can create custom modes, which means that you build them from scratch - in the settings of a custom mode, you select the purpose and the input events (up to 6) based on which the best time to perform an action is predicted. 

## Application  

You can use time optimizer in:  
- **Automation Hub** - time optimizer is available as the [Optimize Time](/docs/automation/flow-control/optimize-time) node. In Automation Hub, time optimizer makes predictions for each customer individually.  
- **Experience Hub** - time optimizer is available while scheduling email, mobile push, SMS, and web push communication. In Communication, time optimizer predicts the best time to send a message for the whole audience. 


## Enabling time optimizer
---
1. Go to **Settings > AI Engine Configuration**.  
2. Select **Time optimizer** tab.  
3. Click **Define**.  
4. Switch the toggle on.


   <div class="admonition admonition-note"><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="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   After time optimizer is enabled, it starts being trained. The training may take a few hours.

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

## Creating modes
---
1. Go to **Settings > AI Engine Configuration**.  
2. Select the **Time optimizer** tab.  
3. Click **Define**. 
4. Click **Add new node**.   
5. Select how you want to create a new mode:  
    
   <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">

   To keep the time optimizer enabled, at least one mode must be active.

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

    
    
   <details class="accordion"><summary>Create a mode from a template</summary><div class="accordion-content"><p> More information about the settings of each template is available in the <a href="/docs/settings/configuration/time-optimizer/#modes">Modes</a> section.</p> <ol> <li>On the pop-up, select the <strong>Template</strong> tab. </li> <li>You can choose one of the following modes: <ul> <li><strong>Email</strong> </li> <li><strong>Mobile</strong> </li> <li><strong>Web</strong></li> </ul> </li> <li>Confirm your choice by clicking <strong>Apply</strong>.</li> </ol></div></details>

    
   <details class="accordion"><summary>Create a custom mode</summary><div class="accordion-content"><ol> <li>In the <strong>Mode name</strong> field, enter the name of the mode. </li> <li>From the <strong>Predicted event</strong> dropdown list, select several customer activities for which you want to calculate the most probable time of occurrence. </li> <li>From the <strong>Input events</strong> dropdown list, select up to 6 events based on which the engine will perform the predictions.</li> </ol></div></details>
  
    


