Verify OTP
Ability Name: mo-otp/verify-otp
Purpose: Check whether a code entered by a user is correct.
Description: Verifies a One-Time Password against the tx_id returned by Send OTP. Returns success if the code matches.
Trigger Conditions:
- "Verify the code 482913 for that transaction"
- "Is this OTP correct?"
Input:
| Field | Type | Required | Notes |
|---|---|---|---|
tx_id |
string | Yes | Transaction ID from Send OTP. |
otp |
string | Yes | The code the user entered. |
type |
string | Yes | SMS or EMAIL . |
Output: { success: boolean, message: string }
Expected Output: Whether the code was valid.
Agent Response Example: "✅ OTP verified successfully."
For more information, visit our OTP Verification page.