# Event Studio Setup for Agent Assist

Using Event Studio with [Agent Assist](https://aisera.com/products/assist/) improves performance because the Aisera Gen AI platforms receives updates to tickets in real time and starts pre-generating predictions. Without [Event Studio](https://aisera.com/blog/event-studio/),  the predictions are made when the ticket is opened and the widget loads.

1. Navigate to **Settings > Configuration > Feature Flags > Enable Event Studio** and Internal Request

<div align="left"><figure><img src="https://2363686080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpGx3TYftP94ZFjKvFVqM%2Fuploads%2FealAuHV1UIYM8NitAPv1%2Fev_studio_int_req.png?alt=media&#x26;token=d96cf1d5-1be8-4b52-9fea-b6a348dae737" alt="" width="563"><figcaption></figcaption></figure></div>

1. Select **Settings > Data Type > Create Data Type.**

<div align="left"><figure><img src="https://2363686080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpGx3TYftP94ZFjKvFVqM%2Fuploads%2FO8Kwl3kHXyoBBtQz1sFx%2Faws_data_source2.png?alt=media&#x26;token=9400b01c-6af6-435c-8a87-f690efe6b77a" alt="" width="375"><figcaption><p>New Data Source</p></figcaption></figure></div>

2. Choose **Data Source > New Data Source** > and then fill out the required fields.&#x20;
3. Set **Functions** to **Event Trigger.**
4. Set **Data Types** to **Agent Assist.**

<div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfTROOJcPL7YXASzquk-eMxtTInLPJzhAtQkoucTxhTLW9LhLxj6RdPOCeGx6GXKSXWlJlfF4sUOqme6wZmgBLMynbp0GqYeHeWX41Se-_QjSF3hPsPeO11TrDu34CwKBnGtEsgNDZvNL9iUBbQMcjcE5F4?key=dWPLPE661ZjXXue-nJh6OQ" alt="" width="563"><figcaption><p>Functions and Data Types</p></figcaption></figure></div>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe_Udjpm6Yr8dy7GVly7lBLYW_4DSa-jmeVb9QTVzZ0dWLL5r3T9K0Ogoy9qg_1N7ipBN7OZseuruhcTfzE0i3IM8M8Hp6pmfQ589Mwi1qTWdLmp3MDYFkvonZv0NiDqRsqZl3tEJqQ9xDcgIQujflCoFqu?key=dWPLPE661ZjXXue-nJh6OQ" alt=""><figcaption><p>View Event Trigger on Data Source Details Window</p></figcaption></figure>

4. Create **Events** in Event Studio for **Summary**, **Answer** and **Next Best Actions** on **Create** and **Update**
   1. Create a **New Event Trigger**
      1. Select an **External Event Trigger** as the Data Source you created above.&#x20;

<div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeajAFksgp3Nded7Wc_0gLPHJv6eJUZ9CyuG9ZlbVKQMn0EXELmNq9WeCTYfZydzh0mhaToK_5GJw_8BYi8aZAkxk_iBGpe2IO5QhGURLeyJmZY3dlkcR2d6_wweV_LOXGNxj_Aa5uAUPG4Hr4aiuEfcdJ1?key=dWPLPE661ZjXXue-nJh6OQ" alt="" width="563"><figcaption></figcaption></figure></div>

5. Set the **Data Type** to **Agent Assist** and **Event Type** to **Created** or **Updated** \
   (You need to create 1 for each).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXenp83t6sQJtFOhl-o9KzlM0bcQmXKr_7tymK_Ofu275XWNEUGkNHwmXaRZUOe0Uc0Y9Z7kLGHxQQasmnzDSWPQ0bhVPWXZtTM43dfYQxmUCEa5WrNgr-5YOnFijvYJnOIdHMVZ4aYOAu0IsxIYrM3pIR7U?key=dWPLPE661ZjXXue-nJh6OQ" alt=""><figcaption><p>Edit Event Trigger</p></figcaption></figure>

6. Select **Trigger Entity-Summarizer - Summary.**
7. Set **ticketId** to ticketId (others can be blank).

This is how Event Studio should look after all of the events are set up:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXenXL3EcXzxRSHPxBV1_sGijH3NedFHZtqmNtwMzfkQbA2wA_KVmSBww7XY0rFEYzjEEHRmzJFySYs6d1uucRU-kFAw4cW836LDeZpb3yWcvQYh_lNPRIewALSlTNQvrdgAU72T57CSdBUZ8CCGqQ5QZwk?key=dWPLPE661ZjXXue-nJh6OQ" alt=""><figcaption><p>Event Studio with Triggers</p></figcaption></figure>

<br>
