Getting Started with Event Functions

Configure an Event Function and associate it with an Event Listener

Set up an event function that will send automated onboarding emails to the users when they sign up for the Catalyst client application

Introduction

This tutorial will help you configure an event function for an event listener in your Catalyst project. This will send automated onboarding emails to the users when they sign up for the Catalyst application. We will set this up using the default event listener and an event function.

You can learn about event listeners and event functions in detail from the Event Listeners and Functions help pages.

The logic is described below:

  1. When a user signs up for your application, a rule in the default event listener is triggered.
  2. This rule associates the user sign-up event to the execution of an event function. The data the user provided when they signed up, such as their name and email address, is passed to the event function by the event listener.
  3. The event function sends an automated email to the user's email address welcoming them to access the application. The email contains a link which redirects the user to a tour page of the application.

In this tutorial, we have provided the code for the files to be included in the function and the client components. You will just have to copy the code given here and paste it into the appropriate files.