Skip to main content

Step 4: Configure End-User Notifications

Onboarding tutorial · Step 4 of 5

Send users a secure onboarding link and, when using OTP verification, deliver confirmation codes through email or SMS.

Notification plan

NotificationWhen it is sentRequired for
Welcome emailAn onboarding record is created.Every onboarding flow that uses email to deliver the secure link.
OTP emailA user chooses email for an OTP code.OTP profiles with email delivery.
OTP SMSA user chooses SMS for an OTP code.OTP profiles with SMS delivery.

Create the welcome email

The welcome email gives the user a personalized URL containing their secure ID. Opening this link bypasses the registration prompt.

  1. Go to Events > Templates and add a template.

  2. Set Notification Event to mapping: Onboarding_Employee_Create.

  3. In To, add {var.event.argument.MailAddress1}, or the event value that corresponds to your mapped personal-email field.

  4. Add an appropriate subject and message. Include this secure onboarding URL in the message body:

    {var.system.ExternalHostUrl}/onboarding/{var.event.argument.Profile}/{var.event.argument.SecureID}

  5. Save the template.

  6. Go to Events > Actions and add an action.

  7. Set Event Type to mapping, then select the mapping that creates your onboarding records under Event Name.

  8. Select the welcome-email template under Template, then save the action.

Configure OTP email

Complete this section only if your profile lets users receive an OTP by email.

  1. In Events > Templates, add a template and set Notification Event to onboarding-code-mail: EmployeeOnboarding. Replace EmployeeOnboarding if your profile has a different name.

  2. In To, add {var.event.data.voConfirmationCodeAddress}.

  3. Add a subject and message body that includes the user’s OTP:

    {var.event.data.voConfirmationCode}

  4. Save the template. In Events > Actions, add an action with Event Type onboarding-code-email and your profile name as Event Name.

  5. Select the OTP email template and save the action.

Configure OTP SMS

Complete this section only if your profile lets users receive an OTP by SMS.

SMS prerequisites

SMS delivery requires an SMS license key and working SMS settings. See Configure SMS.

  1. In Events > Templates, add a template and set Notification Event to onboarding-code-sms: EmployeeOnboarding. Select SMS as the Notification Type.

  2. In To, add {var.event.data.voConfirmationCodeAddress}.

  3. Add a brief message that includes the OTP variable:

    {var.event.data.voConfirmationCode}

  4. Save the template. In Events > Actions, add an action with Event Type onboarding-code-sms and your profile name as Event Name.

  5. Select the OTP SMS template and save the action.

Next: test the journeyContinue to step 5: Testing before making the onboarding experience available to users.