Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

CrewAI + AgentSIM: Phone Verification Agent

A CrewAI crew with a verification specialist agent that provisions real carrier-grade phone numbers, waits for OTP codes, and releases numbers — all using the agentsim-sdk Python package.

How it works

  1. The CrewAI agent provisions a real T-Mobile number via AgentSIM
  2. The number passes carrier lookup (line_type: mobile) — no VoIP blocking
  3. The agent waits for an SMS OTP to arrive
  4. After verification, the number is released back to the pool
  5. The SDK context manager handles cleanup automatically

Install

pip install crewai agentsim-sdk

Environment

export AGENTSIM_API_KEY="asm_live_..."
export OPENAI_API_KEY="sk-..."  # Required for CrewAI LLM calls

Run

# Standalone SDK demo (no LLM needed)
python crewai_verify.py

# Full CrewAI crew (requires OPENAI_API_KEY)
# Uncomment the main() call in crewai_verify.py

Key patterns

  • Uses agentsim.provision() async context manager (not raw HTTP)
  • @tool decorator from crewai.tools for LLM-callable tools
  • Auto-release on context manager exit — no leaked numbers
  • OtpTimeoutError sessions are not billed

Links