Python SDK
PyPIagentlineis already taken, so the Python distribution isagentline-ai(importagentline_ai). npmagentlineis used by the Node SDK.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use AgentLine from Python.
pip install agentline-ai
from agentline_ai import AgentLine
client = AgentLine(api_key="al_live_...")
PyPIagentlineis already taken, so the Python distribution isagentline-ai(importagentline_ai). npmagentlineis used by the Node SDK.
client.agents # create, list, get, update, delete
client.numbers # buy, list, get, reassign
client.calls # create, list, get, get_transcript, hangup, push_context
client.messages # send, list, list_conversations
client.events # poll, peek
client.webhooks # list, set, delete, test
client.billing # get_balance, get_expenditure, get_summary, ...
client.voice # list, get, set, reset
from agentline_ai import AgentLine
client = AgentLine(api_key="al_live_...")
agent = client.agents.create(
name="Support Bot",
system_prompt="You are a helpful assistant.",
initial_greeting="Hello! How can I help you today?",
)
client.numbers.buy(agent_id=agent.id, country="US", area_code="415")
call = client.calls.create(agent_id=agent.id, to_number="+12125557890")
client.calls.hangup(call.id)
print(client.calls.get_transcript(call.id))