{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":5119,"path":"conversational-interfaces/virtual-agent/set-up-custom-events-pae.md","title":"Create custom events to monitor","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create custom events to monitor\n\nCreate custom events and monitor them in the Conversational Analytics dashboard.\n\n## Before you begin\n\nRole required: Chat Analytics Admin.\n\n## About this task\n\nAn event is a combination of conditions that apply to a subset of Virtual Agent \\(VA\\) conversations. For example, an event might be conversations originating on a Slack channel that VA transferred to a live agent.\n\nMost metrics you see on the dashboard, for example topic and conversation details, are derived from pre-built events. The dashboard displays these events on the **Topics** and **Conversations** tabs. To build custom events, you can use the Custom Events feature. Use custom events to create analytics about data you're interested in, for example:\n\n-   Number of conversations on a Slack channel that transferred to a live agent.\n-   Number of conversations on a Slack channel where the user never returned.\n\n\\[Omitted image \"dashboard-custom-events-dashboard-2-pae.png\"\\] Alt text: Virtual Agent Custom Events tab.\n\nCustom events appear on the **Custom Events** tab. If you haven't configured any custom events, the dashboard won't display any. You can create up to 20 custom events.\n\nCustom events take effect when you create them. You cannot use them to analyze data collected before you created the custom event.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Conversational Analytics** &gt; **Event Configuration** and select **New**.\n\n    The Event New record page appears.\n\n    \\[Omitted image \"dashboard-event-config-new1.png\"\\] Alt text: Event new record form.\n\n2.  In the form, fill in the fields.\n\n    |Field|Description|\n    |-----|-----------|\n    |**Name**|Custom event's name.|\n    |**Type**|Choose **Custom**. Choosing any other type changes the default behavior of the dashboard and is not recommended. This field specifies the type of event to include in the dashboard analytics.|\n    |**Source table**|Table of conversations to examine to detect custom events.|\n    |**Source Table Filter**|Use the condition builder to select specific data from the source table.|\n    |**Conversation Mapping Field**|Maps fields in the source table to fields in another conversation-related table. For example, a channel metadata column in the interaction table can be mapped to the sys ID column of the conversation table. Every event must be mapped to a Conversation ID.|\n    |**Active**|Select the check box to enable the custom event.|\n    |**Event Time**|Specifies a time-based event, such as the time VA transferred a chat to a live agent. Selecting this check box opens the **Event Time Field**.|\n    |**Event Time Field**|Specifies the time in an event that you want to monitor, for example, the time a chat was transferred to a live agent. This field appears when you select **Event Time**.|\n    |**Apply Post Fetch Filter**|Enables you to use a script to filter data that was already filtered by the condition builder, **Source Table Filter**.|\n    |**Post Fetch Script**|Text field to enter a script that filters the data that has been filtered by the **Source Table Filter**. This field appears when you select **Apply Post Fetch Filter**.|\n\n3.  Click **Submit**.\n\n    The Events page appears, which lists all custom events. You've specified the table to look for custom events. Now, you must specify the parameter values that trigger the custom event.\n\n4.  Click the custom event you created.\n\n5.  In the Event Properties related list, select **New**.\n\n    The Event Property New Record page appears where you specify the properties for a custom event that you want to track on the dashboard.\n\n    \\[Omitted image \"dashboard-event-property-new-record.png\"\\] Alt text: Event Property new record form with Value Field selected.\n\n    In this example, the **Custom Event** tab shows metrics for **Updated by** for the custom event, Messages-from-Slack.\n\n6.  In the form, fill in the fields.\n\n    |Field|Description|\n    |-----|-----------|\n    |**Name**|Record name for the property you want to collect metrics on.|\n    |**Event**|Name of the custom event associated with this property.|\n    |**Advanced**|Selecting this check box opens a text field in which you can enter a script that specifies the field value you want to filter on. Selecting this check box removes the **Value Field** field.|\n    |**Value Field**|Specifies the field you want to collect metrics on.|\n    |**Application**|The scope of the custom event.|\n    |**Event Source Table**|The same value for this field you entered on the Event New Record page.|\n\n7.  Click **Submit**.\n\n    The Event page appears.\n\n8.  Click **Update**.\n\n    The Events page appears, which lists all custom events. You can open the **Custom Events** tab on the dashboard to see the custom event. This custom event is not retroactive; the dashboard only displays new events that satisfy the custom event criteria.\n\n\n**Parent Topic:**[Setting up the Conversational Analytics dashboard](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/setting-up-va-dashboard-overview1-pae.md)\n\n"}}