# 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="/files/SCY15JzN8AlSoCqtIAkL" alt="" width="563"><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="/files/p56vb7fnCITolKnwPs2k" 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aisera.com/agent-assist/event-studio-setup-for-agent-assist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
