Send OTP
Ability Name: mo-otp/send-otp
Purpose: Send a One-Time Password to a user.
Description: Sends an OTP over the chosen channel — SMS, Email, or WhatsApp — using the configured miniOrange gateway. Returns a transaction ID ( tx_id ) that is later passed to Verify OTP. The WhatsApp channel requires WhatsApp to be enabled in the plugin settings.
Trigger Conditions:
- "Send an OTP to +1-415-XXX-XX38"
- "Email a verification code to user@example.com"
- "Send a WhatsApp OTP to this number"
Input:
| Field | Type | Required | Notes |
|---|---|---|---|
channel |
string | Yes | One of sms , email , whatsapp . |
phone |
string | For sms/whatsapp | Number with country code, e.g. +919766755338 . |
email |
string | For email | Valid email address. |
Output: { success: boolean, message: string, tx_id: string }
Expected Output: Confirmation that the OTP was sent, plus the transaction ID to verify against. If the channel is misconfigured, a clear failure message.
Agent Response Example: "✅ OTP sent successfully via SMS to +1-415-XXX-XX38. Transaction ID: 1234abcd ."
For more information, visit our OTP Verification page.