- SUCCESS
- FAILURE
- RETRY
- HUMAN
Short answer
How can I automate OTP verification with my AI?
Your AI uses Termii to send a code to a user and then checks that code to confirm their identity. This allows your agent to manage the entire authentication cycle. You'll see the specific steps and outcomes below.
Authentication outcomes
Where the process ends up
The different ways your AI handles the verification loop.
SUCCESS
User is verified
The AI confirms the code is correct and moves the user forward in your application.
FAILURE
Invalid code
The AI detects a mismatch and can tell the user to try again or stop the attempt.
RETRY
New code sent
If a user misses their window, your AI triggers a fresh code to keep them moving.
HUMAN
Manual review
If the AI hits too many failed attempts, it flags the user for you to check manually.
The workflow
What your AI does when a user needs to log in.
The AI handles the repetitive work of sending and checking security codes.
Trigger the code
Your agent sends a request to Termii to deliver a code to the user's phone.
send_otpWait for input
The AI waits for the user to provide the code they received.
send_otpCheck the code
The agent compares the user's input against the sent code to ensure it matches.
verify_otpGrant access
Once the code is confirmed, the AI completes the verification process.
verify_otp
Try it
Copy these to start.
Use these prompts to start the authentication process with your agent.
Starting points
These are opening lines. Swap the phone numbers and codes for your actual user data.
Termii Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_uNlbS5qiaq4m090PZVXxpqT3eWPu2LJkv9gXxhwk/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Termii capabilities are ready to use.
{
"mcpServers": {
"termii-mcp": {
"url": "https://edge.vinkius.com/vk_preview_uNlbS5qiaq4m090PZVXxpqT3eWPu2LJkv9gXxhwk/mcp"
}
}
}Send an OTP to +15550102030 to verify this user.
Verify the code 123456 for the phone number +15550102030.
The user didn't get their code; please send a new one to +15550102030.
Check if the code 987654 for +15550102030 is valid.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Termii once, then ask.
Connect your account once and your credentials stay encrypted. You can then immediately tell your agent to start managing codes.
Connect Termii to your AIFAQ
How the task behaves
- 01
Can the AI send regular text messages?
No. The AI can only use the specific tools for sending and verifying OTPs.
- 02
Can the AI change my Termii account settings?
No. The AI only has access to the OTP tools provided in the manifest.
- 03
Does the AI handle the user's actual login session?
No. The AI verifies the code, but you manage the user session in your own app.
- 04
Can the AI delete my Termii history?
No. There are no tools available for the AI to delete or modify account history.
- 05
How does the AI know if a code is right?
It uses the verification tool to check the user's input against the system.
More questions about Termii? The Connector page answers them. See everything the Termii Connector can do
Connect Termii to Claude, Cursor, ChatGPT & more
