curl, give it instructions, publish it and have
it call your phone. For what the platform does for Hebrew, see Hebrew support.
Before you start
- An API key from the dashboard: Settings → API Keys. It needs
agents:read,agents:create,agents:update,calls:createandcalls:read. curlandjq.- For the test call: an Israeli phone to ring and at least $1.00 of credit.
1. Create the agent
"language": "he" makes it speak and listen in Hebrew. greeting_message is the line it opens the
call with.
201, unpublished. Sending the same request again with the same
Idempotency-Key returns the same agent instead of making a second one. See
Create Agent.
2. Add instructions
An agent’s instructions live in its workflow. Write them to a file:global_instructions and save it back. expected_version must be the
draft version you read, so a save never overwrites somebody else’s change.
3. Check and publish
Check the draft, then publish it. Calls run the published version.valid is true and the publish returns the new revision. The new agent has strict mode off, so
the check lists the advisory strict_off_guidance; it does not block publishing.
4. Test it on your phone
A test call needs only the number to ring. It comes from your workspace’s number, or from a Yappr test line when you have none. First see which:to. This is a real phone call, billed per minute from your
credit, and it follows your outbound calling hours.
5. Read the transcript
The call is accepted first and dialled a few seconds later. Read the request until it has acall_id:
analysis.status is still pending, read it again.
Clean up
Remove the agent when you are done:Idempotency-Key in step 1 if you run the guide again: a key whose agent was removed
answers 410 AGENT_CREATION_GONE.
Next steps
- Buy a number and let the agent answer it.
- Give the agent tools so it can book, look up or send.
- Place calls to your leads with
POST /callsor a campaign.