phone-calls
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAI Phone Calls with StablePhone
借助StablePhone实现AI电话呼叫
Make AI-powered phone calls, buy phone numbers, and get transcripts via x402 payments at .
https://stablephone.dev通过x402支付,在平台发起AI驱动的电话呼叫、购买电话号码并获取通话记录。
https://stablephone.devSetup
设置
See rules/getting-started.md for installation and wallet setup.
请查看rules/getting-started.md了解安装和钱包设置步骤。
Quick Reference
快速参考
| Task | Endpoint | Price |
|---|---|---|
| Make a call | | $0.54 |
| Check call status | | Free |
| Buy phone number | | $20.00 |
| Top up number (30d) | | $15.00 |
| List your numbers | | Free |
| 任务 | Endpoint | 价格 |
|---|---|---|
| 发起通话 | | $0.54 |
| 查看通话状态 | | 免费 |
| 购买电话号码 | | $20.00 |
| 号码续费(30天) | | $15.00 |
| 列出你的号码 | | 免费 |
Make a Call
发起通话
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Call this person and ask if they are available for a meeting tomorrow at 2pm. Be polite and professional."
}'Required:
- — E.164 format (e.g.
phone_number)+14155551234 - — instructions for the AI agent (what to say, how to behave)
task
Optional:
- — outbound caller ID (must be an active StablePhone number)
from - — specific opening line
first_sentence - — voice preset (see Voice Options below)
voice - — max call length in minutes (1-30, default 5)
max_duration - — wait for recipient to speak first (default false)
wait_for_greeting - — record call audio (default true)
record - —
model(default, best quality) or"base"(lowest latency)"turbo" - — number to transfer to if caller requests a human
transfer_phone_number - —
voicemail_action(default),"hangup", or"leave_message""ignore" - — message to leave (required when action is
voicemail_message)"leave_message" - — custom key-value data to attach
metadata
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Call this person and ask if they are available for a meeting tomorrow at 2pm. Be polite and professional."
}'必填参数:
- — E.164格式(例如
phone_number)+14155551234 - — AI Agent的指令(说什么、如何表现)
task
可选参数:
- — 外呼显示号码(必须是有效的StablePhone号码)
from - — 特定开场白
first_sentence - — 语音预设(见下方语音选项)
voice - — 最长通话时长(单位:分钟,范围1-30,默认5)
max_duration - — 是否等待接听方先说话(默认false)
wait_for_greeting - — 是否录制通话音频(默认true)
record - —
model(默认,音质最佳)或"base"(延迟最低)"turbo" - — 当呼叫方请求转接时的目标号码
transfer_phone_number - —
voicemail_action(默认)、"hangup"或"leave_message""ignore" - — 要留下的语音信息(当action为
voicemail_message时为必填项)"leave_message" - — 附加的自定义键值对数据
metadata
Check Call Status
查看通话状态
Poll until is true:
completedbash
npx agentcash fetch https://stablephone.dev/api/call/{call_id}Response fields:
- — call status
status - — boolean, true when call is done
completed - —
answered_by,"human", or"voicemail""no_answer" - — duration in seconds
call_length - — AI-generated call summary
summary - — full text transcript
transcript - — array of timestamped transcript segments
transcripts - — URL to call recording
recording_url - — actual cost
price
Poll every 5-10 seconds. Calls typically complete in 1-5 minutes depending on .
max_duration轮询直到为true:
completedbash
npx agentcash fetch https://stablephone.dev/api/call/{call_id}响应字段:
- — 通话状态
status - — 布尔值,通话结束时为true
completed - —
answered_by,"human", or"voicemail""no_answer" - — 通话时长(秒)
call_length - — AI生成的通话摘要
summary - — 完整文字记录
transcript - — 带时间戳的通话记录片段数组
transcripts - — 通话录音的URL
recording_url - — 实际费用
price
每5-10秒轮询一次。根据设置,通话通常在1-5分钟内完成。
max_durationVoice Options
语音选项
| Voice | Description |
|---|---|
| American female (default) |
| Articulate American male |
| Young American female, soft |
| American female |
| Calm, soft-tone female |
| Soft and engaging male |
| German male |
| Voice | 描述 |
|---|---|
| 美国女性(默认) |
| 表达清晰的美国男性 |
| 年轻美国女性,语气柔和 |
| 美国女性 |
| 冷静、语调柔和的女性 |
| 语气柔和有吸引力的男性 |
| 德国男性 |
Buy a Phone Number
购买电话号码
Buy a number to use as outbound caller ID:
bash
npx agentcash fetch https://stablephone.dev/api/number -m POST -b '{"area_code": "415", "country_code": "US"}'Optional:
- — 3-digit US/CA area code (random if omitted)
area_code - —
country_code(default) or"US""CA"
Numbers expire after 30 days. Top up to extend.
购买号码用作外呼显示ID:
bash
npx agentcash fetch https://stablephone.dev/api/number -m POST -b '{"area_code": "415", "country_code": "US"}'可选参数:
- — 美国/加拿大的3位区号(省略则随机分配)
area_code - —
country_code(默认)或"US""CA"
号码30天后过期,可续费延长使用期限。
Top Up a Number
号码续费
bash
npx agentcash fetch https://stablephone.dev/api/number/topup -m POST -b '{"phone_number": "+14155551234"}'Extends by 30 days from current expiry. Top-ups stack. Anyone can top up any number.
bash
npx agentcash fetch https://stablephone.dev/api/number/topup -m POST -b '{"phone_number": "+14155551234"}'从当前过期时间起延长30天。续费可叠加,任何人都可为任何号码续费。
List Your Numbers
列出你的号码
bash
npx agentcash fetch https://stablephone.dev/api/numbers?wallet=YOUR_WALLET_ADDRESSbash
npx agentcash fetch https://stablephone.dev/api/numbers?wallet=YOUR_WALLET_ADDRESSWorkflows
工作流
Quick Call
快速呼叫
- (Optional) Check balance:
npx agentcash wallet info - Make call with task instructions
- Poll status until completed
- Review transcript and summary
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Ask if the business is open on weekends and what their hours are."
}'- (可选)查看余额:
npx agentcash wallet info - 携带任务指令发起呼叫
- 轮询状态直到通话完成
- 查看通话记录和摘要
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Ask if the business is open on weekends and what their hours are."
}'Leave a Voicemail
留下语音信箱
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Leave a voicemail about the appointment.",
"voicemail_action": "leave_message",
"voicemail_message": "Hi, this is a reminder about your appointment tomorrow at 3pm. Please call back to confirm."
}'For natural voicemail delivery, use which bypasses detection and lets the AI speak naturally into the voicemail system.
"voicemail_action": "ignore"bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Leave a voicemail about the appointment.",
"voicemail_action": "leave_message",
"voicemail_message": "Hi, this is a reminder about your appointment tomorrow at 3pm. Please call back to confirm."
}'如需自然的语音信箱投递效果,请使用,该设置会跳过检测,让AI自然地在语音信箱系统中留言。
"voicemail_action": "ignore"Call with Transfer
可转接的通话
bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Qualify this lead. Ask about their budget and timeline. If they are interested, offer to transfer to a sales rep.",
"transfer_phone_number": "+14155559999",
"voice": "josh",
"max_duration": 10
}'bash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"task": "Qualify this lead. Ask about their budget and timeline. If they are interested, offer to transfer to a sales rep.",
"transfer_phone_number": "+14155559999",
"voice": "josh",
"max_duration": 10
}'Set Up Dedicated Number
设置专用号码
- Buy a phone number ($20)
- Use it as caller ID for outbound calls
- Top up before expiry ($15/30 days)
bash
npx agentcash fetch https://stablephone.dev/api/number -m POST -b '{"area_code": "212", "country_code": "US"}'Then use it as :
frombash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"from": "+12125551234",
"task": "Confirm the reservation for Friday at 7pm."
}'- 购买电话号码(20美元)
- 将其用作外呼显示ID
- 过期前续费(15美元/30天)
bash
npx agentcash fetch https://stablephone.dev/api/number -m POST -b '{"area_code": "212", "country_code": "US"}'然后将其作为参数使用:
frombash
npx agentcash fetch https://stablephone.dev/api/call -m POST -b '{
"phone_number": "+14155551234",
"from": "+12125551234",
"task": "Confirm the reservation for Friday at 7pm."
}'Cost Estimation
费用估算
| Task | Cost |
|---|---|
| Single call | $0.54 |
| Call + dedicated number | $20.54 |
| Monthly number maintenance | $15.00 |
| 10 calls/month + number | $20.00 + $5.40 = $25.40 first month |
| 任务 | 费用 |
|---|---|
| 单次通话 | $0.54 |
| 通话+专用号码 | $20.54 |
| 号码月度维护费 | $15.00 |
| 每月10次通话+号码 | 首月20.00美元 + 5.40美元 = 25.40美元 |