How to Test the OTP Phone Message

Overview

This article explains how to view the send-phone-message - Event Object when testing.

Applies To

  • Actions
  • One Time Passwords (OTP)

Solution

Create a send-phone-message action that will log the message to the console using console.log. For instructions on how to create actions, read Write Your First Action.

exports.onExecuteSendPhoneMessage = async (event) => {
  const text = event.message_options.text;
  console.log('Message: ' + text);
};

Then use the Action Logs in the Dashboard under the Monitoring tab to monitor the output.