Prerequisites
Quick start
Start with the runnable examples repository, then adapt the pattern to your own agent..env:
PLIVO_ANSWER_URL should point to an endpoint that returns valid Plivo XML.
If you want the smallest possible inline example, create an agent and give it the Plivo tools:
send_sms and returns the Plivo message ID.
For outbound calls, keep the caller ID and answer URL in config and let the per-call prompt express only intent:
make_call from the configured instructions, while PLIVO_ANSWER_URL stays in env instead of being pasted into every call prompt.
The sender must be an SMS-enabled Plivo number on your account. For calls, the caller ID must be a voice-enabled Plivo number in E.164.
Available tools
PlivoTools registers these tools. The agent picks the right one from your instruction.
For
make_call, pass an answer_url that returns Plivo XML, and set answer_method to match how that URL is served.
Register a subset of tools
Turn individual tools on or off with theenable_* flags.
Troubleshooting
Related
Runnable examples
Clone-and-run Agno agents built on the Plivo tools.
Agno cookbook example
The Plivo tools example in the Agno cookbook.
Agno PlivoTools reference
Agno’s reference for the Plivo toolkit.
Plivo Messages API
Send an SMS with the Plivo API.
Plivo Voice API
Make a call with the Plivo API.
Plivo Number Lookup API
Look up carrier and line-type details for a number.