LangChain
Give your LangChain agent a real phone number. Make calls, send messages, buy numbers, and manage voice agents — all through the langchain-agentphone package.
Get your API key from agentphone.to/settings. No Twilio account, no ngrok, no server needed.
Installation
Set your API key as an environment variable:
Setup
Using the toolkit
The AgentPhoneToolkit gives your agent access to all 12 LangChain tools at once. Use selected_tools to expose only the capabilities you need.
Selecting specific tools
Importing individual tools
Use cases
- Autonomous phone calls — have your agent call a number and hold a full AI conversation, returning the transcript when done
- SMS messaging — send and receive texts, manage conversation threads across multiple numbers
- Phone number management — provision numbers with specific area codes, assign them to agents
- AI voice agents — create agents with configurable voices, system prompts, and model tiers that handle calls autonomously
- Appointment reminders — pull schedules from a calendar API and text or call customers with reminders
- Lead qualification — call new leads within seconds, qualify interest, and book meetings automatically
Available tools
The package provides 12 LangChain tools:
Every tool has a full Pydantic schema so your LLM knows exactly what arguments to pass.
