Code

cookbook/agent_concepts/tools/twilio_tools.py
from agno.agent import Agent
from agno.tools.twilio import TwilioTools

agent = Agent(
    tools=[TwilioTools()],
    show_tool_calls=True,
    markdown=True,
)
agent.print_response("Send an SMS to +1234567890 saying 'Hello from Agno!'")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Set your Twilio credentials

export TWILIO_ACCOUNT_SID=xxx
export TWILIO_AUTH_TOKEN=xxx
export TWILIO_FROM_NUMBER=xxx
3

Install libraries

pip install -U twilio agno
4

Run Agent