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.

AgentLineAgentLineClaudeClaude

How it works

  1. 01Buy a number. Inbound SMS arrives as sms.received events.
  2. 02Your agent (or skill relay) reads the message body and extracts the code.
  3. 03Use the code to finish a signup, login, or vendor verification.
  4. 04List history later with GET /v1/messages.

System prompt

Paste this onto the agent. It is a full replace, not an append.

prompt
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.

Greeting

This number is an SMS inbox for verification codes.

Working code

Create the agent, buy a number, and run it.

python
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

text
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

FAQ

Can an AI agent receive 2FA SMS codes?

Can the agent send the OTP back out over SMS?

Is this the same as a burner phone?

More templates