Raising and subscribing to custom events in application code can help you provide a more personalized conversational AI solution.

In this guide, you will learn how to create custom user events in client-side code.

You’ll learn how to create triggers that intercept and handle user events in your website-hosted chatbot.

You will also learn how to reference and leverage event data in your application in UI Builder to create bespoke business logic.

Prerequisites

Before working through the guide, make sure you have access to the Zammo Portal, UI Builder and an existing business and are comfortable with basic HTML and JavaScript.

What Is a User Event

A user event lets you write custom code that contains a human-readable description and data for processing by your chatbot.

They are written in JavaScript using in conjunction with Zammo UI Kit.

Any user events you create can be handled by triggers in UI Builder and processed as part of your chatbot logic during conversational AI design.

You can see the most basic implementation of a user event below :