← 返回 Skills 市场
sameersribot

Agentline.cloud

作者 Sameer Srivastava · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ pending
19
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agentline-telephone
功能描述
Make phone calls, send SMS, provision numbers, manage agents, and track billing through the AgentLine telephony API. Use when the user asks to call someone,...
使用说明 (SKILL.md)

AgentLine — AI Telephony Skill

Give your AI agent a real phone number, voice calls, and SMS — no servers, no webhooks, no infrastructure.

First-Time Setup

You need a valid API key to use AgentLine:

  1. AGENTLINE_API_KEY: Your API key (starts with sk_live_) is required.
    • If you do NOT have this key, stop and ask the human to sign up or log in at https://agentline.cloud to get their API key. Do NOT proceed without it.
  2. AGENTLINE_AGENT_ID: Your agent ID (starts with agt_) is optional.
    • If you have an AGENTLINE_AGENT_ID, use it.
    • If you do NOT have an AGENTLINE_AGENT_ID but you have the API key, you can automatically create a new agent by calling POST /v1/agents and then provision a phone number by calling POST /v1/numbers!

Authentication

Every request needs this header:

Authorization: Bearer $AGENTLINE_API_KEY
Content-Type: application/json

Base URL: https://agentphone-production.up.railway.app


How Calls Work (Hosted Mode)

AgentLine runs in Hosted Mode — the server runs the AI voice conversation for you. You create a call, the AI handles the conversation autonomously, and you retrieve the transcript afterwards.

System Prompts — Two Types

  1. Dynamic prompt — set per outbound call using the system_prompt field in POST /v1/calls. This overrides the default for that specific call only.

  2. Default prompt — stored on the agent via PATCH /v1/agents/{agent_id}. This is the permanent prompt used for all inbound calls and any outbound call where no dynamic prompt is provided.


Make an Outbound Call

curl -X POST $AGENTLINE_URL/v1/calls \
  -H "Authorization: Bearer $AGENTLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "$AGENTLINE_AGENT_ID",
    "to_number": "+1XXXXXXXXXX",
    "system_prompt": "You are calling to schedule a meeting. Be polite and concise.",
    "initial_greeting": "Hi! I wanted to check about scheduling a meeting."
  }'
Field Required Description
agent_id Yes Your agent ID
to_number Yes E.164 phone number to call
system_prompt No Dynamic prompt for this call only (overrides default)
initial_greeting No What the agent says first when the person picks up

The AI handles the full conversation. Poll GET /v1/calls/\x3Ccall_id> until status is completed to get the transcript.

If you get 400 "Agent has no active phone number", provision one first (see below).


End a Call

curl -X POST $AGENTLINE_URL/v1/calls/\x3Ccall_id>/hangup \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Get Call Transcript

curl $AGENTLINE_URL/v1/calls/\x3Ccall_id>/transcript \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Returns the full conversation transcript as an array of {role, text, timestamp} entries.


List Calls (Call Logs)

# All calls
curl "$AGENTLINE_URL/v1/calls?limit=20" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

# Filter by status
curl "$AGENTLINE_URL/v1/calls?status=completed&limit=10" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Returns call history with direction, status, duration, phone numbers, and timestamps.


Get Single Call Details

curl $AGENTLINE_URL/v1/calls/\x3Ccall_id> \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Send an SMS

curl -X POST $AGENTLINE_URL/v1/messages \
  -H "Authorization: Bearer $AGENTLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "$AGENTLINE_AGENT_ID",
    "to_number": "+1XXXXXXXXXX",
    "body": "Hey! Your appointment is confirmed for Tuesday 3pm."
  }'

Pass "media_url": "https://..." to send an MMS with an image.


List Messages

curl "$AGENTLINE_URL/v1/messages?limit=20" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Set the Default System Prompt

The default system prompt is used for all inbound calls and any outbound call where no dynamic prompt is given.

curl -X PATCH $AGENTLINE_URL/v1/agents/$AGENTLINE_AGENT_ID \
  -H "Authorization: Bearer $AGENTLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_prompt": "You are a friendly customer support agent for Acme Corp. Help callers with orders, returns, and general questions. Keep responses brief and professional.",
    "initial_greeting": "Hello! Thanks for calling Acme Corp. How can I help you today?"
  }'
Field Description
system_prompt The permanent AI instructions for this agent
initial_greeting What the agent says when answering inbound calls
name Display name for the agent
model_tier "turbo", "balanced", or "max"

Get Agent Details

curl $AGENTLINE_URL/v1/agents/$AGENTLINE_AGENT_ID \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

List All Agents

curl $AGENTLINE_URL/v1/agents \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Provision a Phone Number

Each agent needs a phone number to make/receive calls and send SMS. Only US numbers are supported.

curl -X POST $AGENTLINE_URL/v1/numbers \
  -H "Authorization: Bearer $AGENTLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "$AGENTLINE_AGENT_ID",
    "country": "US",
    "number_type": "local",
    "pattern": "415"
  }'
Field Required Description
agent_id Yes Agent to attach the number to
country Yes Must be "US"
number_type No "local" or "tollfree" (default: local)
pattern No Area code filter (e.g. "212" for NYC, "415" for SF)

Cost: $2.00 per number. Each agent can only have one active number.


List Phone Numbers

curl $AGENTLINE_URL/v1/numbers \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Release a Phone Number

curl -X DELETE $AGENTLINE_URL/v1/numbers/\x3Cnumber_id> \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Check Balance

curl $AGENTLINE_URL/v1/billing/balance \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Returns current balance, how many call minutes and phone numbers you can afford, and the rate card.


View Expenditure

# Full breakdown (current month)
curl "$AGENTLINE_URL/v1/billing/expenditure?period=current_month" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

# Call charges only (with per-call detail)
curl "$AGENTLINE_URL/v1/billing/expenditure/calls?limit=10" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

# Number provisioning charges
curl "$AGENTLINE_URL/v1/billing/expenditure/numbers" \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Period options: current_month, last_month, all_time, or YYYY-MM (e.g. 2026-05).


Verify Balance Deduction After a Call

curl $AGENTLINE_URL/v1/billing/verify/\x3Ccall_id> \
  -H "Authorization: Bearer $AGENTLINE_API_KEY"

Returns whether the call was charged, the expected vs actual cost, and the balance snapshot. Use this to confirm billing accuracy after each call.


Rates

Item Cost
Outbound call $0.10 per minute (billed per second)
Inbound call $0.10 per minute (billed per second)
Phone number $2.00 per number (one-time)

Rules

  1. Always use E.164 phone numbers — format: +1XXXXXXXXXX for US numbers.
  2. Always confirm with the user before placing calls — never auto-dial without explicit consent.
  3. If you have AGENTLINE_API_KEY but no AGENTLINE_AGENT_ID: Create a new agent using POST /v1/agents first, then provision a number via POST /v1/numbers to get fully set up automatically.
  4. Use the active $AGENTLINE_AGENT_ID or the one you created by default — only look up other agents if the user asks.
  5. If a call fails with "Agent has no active phone number", provision a number first with POST /v1/numbers.
  6. Keep voice responses short — under 30 words per response. The caller is listening, not reading.
  7. Only US numbers are supported — country must be "US".
  8. If you do not have AGENTLINE_API_KEY, stop and tell the human: "Please sign up or log in at https://agentline.cloud to get your API key, then provide it to me."
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentline-telephone
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentline-telephone 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Initial release of AgentLine — a full-featured AI telephony skill for phone calls, SMS, and phone number management. - Make and manage AI-driven phone calls, including call initiation, hangup, and transcript retrieval. - Send and list SMS/MMS messages through a simple API. - Provision, list, and release US phone numbers for agents. - Manage agent settings, system prompts, and agent details. - Track account billing, expenditure, and available balance. - Requires an API key for use; onboarding instructions included.
元数据
Slug agentline-telephone
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agentline.cloud 是什么?

Make phone calls, send SMS, provision numbers, manage agents, and track billing through the AgentLine telephony API. Use when the user asks to call someone,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 19 次。

如何安装 Agentline.cloud?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentline-telephone」即可一键安装,无需额外配置。

Agentline.cloud 是免费的吗?

是的,Agentline.cloud 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agentline.cloud 支持哪些平台?

Agentline.cloud 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agentline.cloud?

由 Sameer Srivastava(@sameersribot)开发并维护,当前版本 v1.0.2。

💬 留言讨论