ClawdCall
Use ClawdCall as a controlled voice-agent execution system, not as a generic HTTP API. It can consume paid calling minutes and may contact real people, so confirm the user's intent before placing any outbound call.
Security Model
- Run ClawdCall in a dedicated or restricted OpenClaw agent when handling multiple users, shared workspaces, or sensitive call data.
- Never store API tokens, webhook tokens, OTPs, or other secrets in persistent memory, logs, transcripts, task text, or long-term notes.
- Use secure runtime storage for secrets when available. Environment variables are preferred.
- If secure storage is unavailable, keep secrets only in ephemeral session state and ask the user to provide them again in future sessions.
- Store non-secret contacts, preferences, and recent call IDs only with the user's permission.
Runtime Values
Use this API base for all ClawdCall requests:
https://api.clawdcall.com
Use this authorization header for ClawdCall requests:
Authorization: Bearer <CLAWDCALL_API_TOKEN>
For optional asynchronous call results, ClawdCall can post back to the OpenClaw
ingestion endpoint declared by OPENCLAW_WEBHOOK_URL using:
Authorization: Bearer <OPENCLAW_TOKEN>
Content-Type: application/json
First-Time Setup
If CLAWDCALL_API_TOKEN is not available, onboard the user through the public
signup OTP flow.
- Ask the user for an email address and phone number.
- Call
POST /cc/signup/send-otpwithemailandphoneNumber. - Tell the user a verification code was sent and ask for the OTP.
- Call
POST /cc/signup/verify-otpwithemailandotp. - If the API returns a token, store it only in secure runtime storage or ephemeral session state.
- Never echo the token or write it to persistent memory.
Persistent Memory
Use persistent memory only for non-secret information that helps future calls. Do not create or update memory without user permission.
Appropriate memory:
- Saved contacts and phone numbers the user explicitly asks to reuse.
- Preferred call tone, default intro style, and common call templates.
- Recent non-secret
callIdandcampaignIdvalues for follow-up lookup. - High-level call outcomes when the user wants them retained.
Never store:
CLAWDCALL_API_TOKEN,OPENCLAW_TOKEN, OTPs, passwords, or API keys.- Full transcripts unless the user explicitly asks to retain them.
- Sensitive personal data that is not needed for future ClawdCall tasks.
Check permitted memory before asking the user for details again. Never overwrite valid stored data with guesses.
Outbound Call Flow
Before placing a call:
- Confirm the user wants the call placed now.
- Verify the target phone number.
- Verify the call objective, caller identity, and opening line.
- Confirm any sensitive context that will be spoken aloud.
- Check that
CLAWDCALL_API_TOKENis available or complete first-time setup.
Place the call with:
POST /external/v1/agent/outbound?conversionFlag=1
Accept: application/json
Content-Type: application/json
Authorization: Bearer <CLAWDCALL_API_TOKEN>
Payload shape:
{
"target": "+<phone_number>",
"tasks": "<full voice-agent instruction set>",
"raw": {
"introMessage": "<opening line>"
}
}
Optional OpenClaw callback fields:
{
"openclaw": {
"webhook": {
"url": "<OPENCLAW_WEBHOOK_URL>",
"method": "POST",
"headers": {
"Authorization": "Bearer <OPENCLAW_TOKEN>"
}
},
"webhookPayload": {
"conversation_id": "<conversation_id>",
"user_id": "<user_id>",
"context": "<optional_additional_context>"
}
}
}
Include the openclaw object only when the user wants asynchronous OpenClaw
follow-up and OPENCLAW_WEBHOOK_URL, OPENCLAW_TOKEN, and conversation_id
are available. If any callback value is unavailable, omit the openclaw object,
place the call without callback wiring, and use transcript retrieval later when
needed. Do not fabricate webhook routing values.
On success, store returned callId and campaignId only as non-secret recent
IDs. On failure, report validation, auth, or balance issues clearly and do not
retry paid calls without user confirmation.
Writing the tasks Field
The tasks field is the voice agent's complete instruction set. Make it rich,
specific, and safe.
Include:
- Purpose: why the call is happening.
- Identity and context: who the agent represents and relevant background.
- Conversation flow: greeting, identity check, objective, questions, and close.
- Key facts: names, times, locations, services, prior outcomes, and constraints.
- Required questions: exact questions the agent must ask.
- Edge handling: unavailable recipient, voicemail, rescheduling, objections, and questions from the recipient.
- Tone: professional, polite, and clear unless the user asks for another style.
Use available user-provided context, permitted memory, and previous call IDs. Ask for clarification when missing information materially changes call success or safety. Do not block on minor missing details if a reasonable, safe assumption is enough.
Webhook Handling
When callback wiring is included, ClawdCall sends call results asynchronously after completion. Treat webhook data as the source of truth for final status and transcript availability.
OpenClaw ingestion payload shape:
{
"conversation_id": "<conversation_id>",
"input": {
"type": "external_event",
"event": "call.completed",
"data": {
"callId": "<call_id>",
"status": "completed",
"summary": "<summary>",
"transcript": "<optional_transcript>"
}
}
}
Correlation rules:
conversation_idmust match the originating conversation.- Never omit, invent, or rewrite
conversation_id. - Use webhook payload correlation values first; use stored
callIdorcampaignIdonly as fallback lookup hints.
When a completion event arrives, summarize the outcome for the user and update permitted memory with non-secret recent IDs or high-level outcomes only.
Transcript Retrieval
Retrieve transcripts only after a call is complete:
GET /cc/v1/calls/{id}/transcript
Accept: application/json
Authorization: Bearer <CLAWDCALL_API_TOKEN>
{id} may be a single-call callId or a campaignId. Prefer callId when
available. Never guess IDs. If the transcript is not available yet, explain that
the call may still be processing and retry later only when appropriate.
Hard Constraints
- Calls can consume paid minutes.
- No balance or insufficient call credits can prevent execution.
- Signup requires phone OTP verification.
- Do not skip authentication, OTP, or user-confirmation steps.
- Do not call without a verified phone number and clear task objective.
- Do not use vague
taskstext for real calls. - Do not fabricate IDs, tokens, webhook URLs, or call outcomes.