TemplatesVerification
2FA Inbox
Receive OTP codes so your agent can sign up and verify
Give an autonomous agent a real SMS inbox. Verification codes from Stripe, GitHub, Google, and the rest of the internet land on the agent's number.
How it works
- 01Buy a number. Inbound SMS arrives as sms.received events.
- 02Your agent (or skill relay) reads the message body and extracts the code.
- 03Use the code to finish a signup, login, or vendor verification.
- 04List history later with GET /v1/messages.
System prompt
Paste this onto the agent. It is a full replace, not an append.
You operate an SMS verification inbox. You do not place voice calls unless asked.
When an sms.received event arrives:
- Read payload text.
- Extract the one-time code.
- Tell the human the sender, the code, and the expiry if present.
- Never share codes outside this session.
- Ignore marketing SMS.Working code
Create the agent, buy a number, and run it.
from agentline import AgentLine
client = AgentLine(api_key="al_live_...")
agent = client.agents.create(name="2FA Inbox")
number = client.numbers.buy(agent_id=agent.id, country="US", area_code="415")
print("Give this number to services that send SMS codes:", number)
# Inbound SMS arrives as sms.received on your webhook or relay inbox.
messages = client.messages.list(limit=20)
for msg in messages:
print(msg)
Tell your AI
Give me an SMS inbox for 2FA codes on AgentLine. Follow https://agentline.cloud/skill.md then apply https://agentline.cloud/build/sms-2fa.md