Call2Me Python SDK — Build AI voice agents
Project description
Call2Me Python SDK
The official Python SDK for Call2Me — the AI voice agent platform.
Build, deploy, and manage AI voice agents that handle real phone calls, extract data, and take automated actions.
Features
- Voice Agents — Create and manage AI agents with custom voices and personalities
- Phone & Web Calls — Handle inbound/outbound calls via SIP or browser
- 30+ AI Models — GPT, Claude, Gemini, DeepSeek, Llama, and more
- Knowledge Base — RAG-powered answers from your documents
- Campaigns — Bulk outbound calling at scale
- Scheduled Calls — Book follow-up calls automatically
- Post-Call Intelligence — Extract structured data from every conversation
- Multi-Language — Turkish, English, German, French, Spanish, Arabic
Installation
pip install call2me
Requires Python 3.8+
Getting Your API Key
- Sign up at dashboard.call2me.app — you get $10 free credits
- Go to API Keys in the dashboard
- Click Create API Key and copy it
Quick Start
from call2me import Call2Me
client = Call2Me(api_key="sk_call2me_...")
# Create a voice agent
agent = client.agents.create(
agent_name="Customer Support",
voice_id="elevenlabs-selin",
language="tr-TR",
system_prompt="You are a friendly customer support agent for our company."
)
print(f"Agent created: {agent['agent_id']}")
Usage Examples
List Agents
agents = client.agents.list()
for agent in agents:
print(f"{agent['agent_id']} — {agent['agent_name']} ({agent['status']})")
Get Call History
calls = client.calls.list(limit=10)
for call in calls:
print(f"{call['call_id']} | {call['direction']} | {call['call_status']} | {call.get('duration_ms', 0)}ms")
Knowledge Base
# Create a knowledge base
kb = client.knowledge_bases.create(
name="Product FAQ",
description="Frequently asked questions about our products"
)
# Query it
results = client.knowledge_bases.query(kb['id'], "What is the return policy?")
Campaigns
# Create a campaign
campaign = client.campaigns.create(
name="Spring Sale Outreach",
agent_id="agent_abc123",
from_number="+908501234567"
)
# Start calling
client.campaigns.start(campaign['id'])
Scheduled Calls
# Schedule a follow-up call
schedule = client.schedules.create(
agent_id="agent_abc123",
phone_number="+905551234567",
scheduled_at="2026-04-15T10:00:00+03:00",
timezone="Europe/Istanbul"
)
Check Balance
balance = client.wallet.balance()
print(f"Balance: ${balance['balance_usd']}")
# Transaction history
txns = client.wallet.transactions(limit=5)
API Reference
| Resource | Methods |
|---|---|
client.agents |
list(), get(id), create(...), update(id, ...), delete(id), duplicate(id) |
client.calls |
list(), get(id) |
client.knowledge_bases |
list(), create(...), query(id, query) |
client.wallet |
balance(), transactions() |
client.campaigns |
list(), create(...), start(id), pause(id) |
client.schedules |
list(), create(...) |
Configuration
# Custom base URL (for self-hosted or testing)
client = Call2Me(
api_key="sk_call2me_...",
base_url="https://your-api.example.com"
)
# Context manager (auto-close)
with Call2Me(api_key="sk_call2me_...") as client:
agents = client.agents.list()
Documentation
- Full API Docs: call2me.app/docs
- Guides: call2me.app/guides
- Pricing: call2me.app/pricing
Support
- Email: support@call2me.app
- Website: call2me.app
License
MIT — see LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
call2me-1.0.0.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file call2me-1.0.0.tar.gz.
File metadata
- Download URL: call2me-1.0.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
322815df66dd02f12a9d1c74ef1db6f85cc36416c1c3736dfd9e86341b820a18
|
|
| MD5 |
f12ce0334c4a9a6d9f91345470f70209
|
|
| BLAKE2b-256 |
59833fb038ddeb2ee410eb5c2449d5440a421ec61529f7de6d9519109cefd052
|
File details
Details for the file call2me-1.0.0-py3-none-any.whl.
File metadata
- Download URL: call2me-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d2f9adf7eab0b8044913009a6161abf98b4953cb3c6dcdac67929f95a7da91
|
|
| MD5 |
29441d134a10972774844ae5b1697677
|
|
| BLAKE2b-256 |
6b474a0c1918c2d2f5bc0d0e5b21f929ad7585d5d430a2279f97f9ce9975e804
|