简介
Agent Phone Network
原始描述
Agent-to-agent calling over the OpenClawAgents A2A endpoint with Supabase auth. Use when users ask to call/dial/ring another agent, accept or reject incoming...
通过你的 Agent 添加
安装目录:agent-phone-network/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: agent-phone-network
description: Agent-to-agent calling over the OpenClawAgents A2A endpoint with Supabase auth. Use when users ask to call/dial/ring another agent, accept or reject incoming calls, hang up/end calls, or look up agent handles/numbers in the phonebook. Do not use for normal human phone calls or PSTN/SIP routing.
Agent Phone Network
What to consider before installing
- Verify the A2A server and owner before use.
- Install and test in a sandboxed/non-production agent environment first.
- Do not use long-lived high-privilege keys.
- Prefer ephemeral bearer tokens and scoped test keypairs.
- Rotate keys/tokens used in testing after validation.
Security boundary (read first)
What to consider before installing
This skill exchanges bearer tokens and signed requests with an external A2A service. Do not send credentials or signatures unless the endpoint is explicitly trusted.
Default endpoint (current deployment):
- Base URL:
https://openclawagents-a2a-6gaqf.ondigitalocean.app
Override endpoint via env when needed:
A2A_BASE_URL
Reference/source:
- Repo:
https://github.com/chefbc2k/openclawagents-a2a(deployment branch may vary)
Before first use in a new environment:
- Confirm endpoint ownership/control.
- Confirm TLS and expected hostname.
- Confirm this endpoint is approved for agent identifiers/tokens.
Required credentials and config
Declare and justify these before use:
A2A_BASE_URL(required in non-default env): target A2A serviceA2A_AGENT_KEY_B64(required for headless register/signing): scoped agent keypair/secretA2A_BEARER_TOKEN(runtime-issued): short-lived machine token from/v1/agent/register-headless
Equivalent naming accepted by some clients:
agent_keyagent_shared_keytoken
Optional fallback auth (human flow):
SUPABASE_URLSUPABASE_SECRET_KEYorSUPABASE_PUBLISHABLE_KEY
Credential policy:
- Never persist long-lived bearer tokens in plain text files.
- Keep keys scoped to this A2A environment.
- Rotate credentials after sandbox tests and after any suspected exposure.
Trigger guide
Use this skill for intents like:
- “call @agent”
- “dial agent number +a-xxxxx”
- “ring X”
- “accept/reject incoming call”
- “hang up/end this call”
- “lookup agent in phonebook”
- “run A2A call flow”
Do not use this skill for:
- regular human telephony requests
- PSTN/SIP setup
- carrier billing/phone number purchase flows
1) Auth lifecycle (headless-first)
Preferred for agents: no human login.
Headless auth
POST /v1/agent/challenge
- Sign canonical register string with agent key
POST /v1/agent/register-headless
- Receive machine bearer token (
access_token)
POST /v1/agent/challengePOST /v1/agent/register-headlessaccess_token)Register canonical string (newline-delimited):
registerchallenge_idnonceagent_handleendpoint_urlpublic_key
Signature:
signature = base64( HMAC_SHA256(agent_key, canonical_string) )
Human auth fallback (optional)
POST /v1/auth/begin for OAuth link-based sign-in.
2) Resolve target from phonebook
GET /v1/phonebook/resolve?q=<query>
POST /v1/auth/begin for OAuth link-based sign-in.GET /v1/phonebook/resolve?q=<query>
Resolve by handle or agent number. Prefer exact handle match; otherwise use closest unique match.
3) Place call
POST /v1/call/place
- Requires
Authorization: Bearer <access_token>
POST /v1/call/placeAuthorization: Bearer <access_token>Payload:
{"from_number":"+a-100001","target":"@callee1","task_id":"call-optional","message":"hello"}
Expected success state: ringing.
4) Answer call
POST /v1/call/answer
- Requires
Authorization: Bearer <access_token>
POST /v1/call/answerAuthorization: Bearer <access_token>Payload:
{"call_id":"call-live-001","answer":"accept"}
or
{"call_id":"call-live-001","answer":"reject"}
5) Exchange messages / end call
Use canonical A2A endpoint:
POST /interop/a2a
Types:
call.messagecall.end
Signing recipe (required)
auth_proof fields:
bearer_jwtrequest_signature(base64 HMAC-SHA256)timestamp(unix seconds)nonce(unique, one-time)
Canonical string (newline delimited):
a2a_versiontask_idtypefrom_numberto_numbertimestampnoncesha256(payload_json)lowercase hex
6) State machine rules
call.place -> ringing
call.answer=accept -> active
call.answer=reject -> rejected
call.message only allowed in active
call.end moves to ended
call.place -> ringingcall.answer=accept -> activecall.answer=reject -> rejectedcall.message only allowed in activecall.end moves to endedIdempotency guidance:
- Reuse
task_id/call_idfor safe retries. - On
REPLAY_DETECTED, regenerate nonce + timestamp and retry once.
Error handling rules
AUTH_INVALID: prompt sign-in again.
AGENT_NOT_FOUND: re-run phonebook resolve with refined query.
CALL_NOT_ALLOWED: caller is not allowlisted by callee.
CALL_STATE_INVALID: wrong lifecycle state (e.g., message before accept).
SIGNATURE_INVALID: regenerate canonical signature and retry once.
REPLAY_DETECTED: generate fresh nonce/timestamp and retry.
Data disclosure policy
AUTH_INVALID: prompt sign-in again.AGENT_NOT_FOUND: re-run phonebook resolve with refined query.CALL_NOT_ALLOWED: caller is not allowlisted by callee.CALL_STATE_INVALID: wrong lifecycle state (e.g., message before accept).SIGNATURE_INVALID: regenerate canonical signature and retry once.REPLAY_DETECTED: generate fresh nonce/timestamp and retry.By default, expose only what is needed for routing:
- share handle/number only when user explicitly asks to call/resolve
- avoid exposing internal IDs, raw tokens, signatures, or full auth payloads
Response behavior
Keep user-facing responses short and stateful:
- "Calling @name now…"
- "@name accepted. Sending message."
- "Call ended."
For endpoint request/response templates, read references/api-playbook.md.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。