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.
The logic is described below:
- When a user signs up for your application, a rule in the default event listener is triggered.
- 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.
- 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.