Agent Connector

Connect your agents to Twilio

Production-ready access to your Twilio data with managed auth, parametric control, and the reliability your agents need to actually work.

Installation & Usage

Get started with the Twilio connector in minutes.

[01]

Install Package

Using uv or pip

BASH

Copy
uv pip install airbyte-agent-twilio

[02]

Import

Initialize and use

PYTHON

Copy

from pydantic_ai import Agent

from airbyte_agent_sdk.connectors.twilio import TwilioConnector
from airbyte_agent_sdk.connectors.twilio.models import TwilioAuthConfig


connector = TwilioConnector(
   auth_config=TwilioAuthConfig(
       account_sid="<Your Twilio Account SID (starts with AC)>",
       auth_token="<Your Twilio Auth Token>",
   )
)

agent = Agent("openai:gpt-4o")

[03]

Tool

Add tools to your agent

python

Copy

@agent.tool_plain
@TwilioConnector.tool_utils
async def twilio_execute(
   entity: str,
   action: str,
   params: dict | None = None,
):
   return await connector.execute(entity, action, params or {})

Supported Entities & Actions

Access all your Twilio data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Accounts | [List](./REFERENCE.md#accounts-list), [Get](./REFERENCE.md#accounts-get), [Search](./REFERENCE.md#accounts-search) |\n| Calls | [List](./REFERENCE.md#calls-list), [Get](./REFERENCE.md#calls-get), [Search](./REFERENCE.md#calls-search) |\n| Messages | [List](./REFERENCE.md#messages-list), [Get](./REFERENCE.md#messages-get), [Search](./REFERENCE.md#messages-search) |\n| Incoming Phone Numbers | [List](./REFERENCE.md#incoming-phone-numbers-list), [Get](./REFERENCE.md#incoming-phone-numbers-get), [Search](./REFERENCE.md#incoming-phone-numbers-search) |\n| Recordings | [List](./REFERENCE.md#recordings-list), [Get](./REFERENCE.md#recordings-get), [Search](./REFERENCE.md#recordings-search) |\n| Conferences | [List](./REFERENCE.md#conferences-list), [Get](./REFERENCE.md#conferences-get), [Search](./REFERENCE.md#conferences-search) |\n| Usage Records | [List](./REFERENCE.md#usage-records-list), [Search](./REFERENCE.md#usage-records-search) |\n| Addresses | [List](./REFERENCE.md#addresses-list), [Get](./REFERENCE.md#addresses-get), [Search](./REFERENCE.md#addresses-search) |\n| Queues | [List](./REFERENCE.md#queues-list), [Get](./REFERENCE.md#queues-get), [Search](./REFERENCE.md#queues-search) |\n| Transcriptions | [List](./REFERENCE.md#transcriptions-list), [Get](./REFERENCE.md#transcriptions-get), [Search](./REFERENCE.md#transcriptions-search) |\n| Outgoing Caller Ids | [List](./REFERENCE.md#outgoing-caller-ids-list), [Get](./REFERENCE.md#outgoing-caller-ids-get), [Search](./REFERENCE.md#outgoing-caller-ids-search) |

Example Prompts

The Twilio connector is optimized to handle prompts like these

Lorem ipsum

List all calls from the last 7 days - Show me recent inbound SMS messages - List all active phone numbers on my account - Show me details for a specific call - List all recordings - Show me conference calls - List usage records for my account - Show me all queues - List outgoing caller IDs - Show me addresses on my account - List transcriptions - What are my top 10 most expensive calls this month? - How many SMS messages did I send vs receive in the last 30 days? - Summarize my usage costs by category - Which phone numbers have the most incoming calls? - Show me all failed messages and their error codes - What is the average call duration for outbound calls?

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Agent-Native Design
Heading

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use our connectors with your favorite AI agent frameworks.

LangChain

CrewAI

LlamaIndex

AutoGen

OpenAI Agents SDK

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Twilio?

The Twilio connector supports HTTP Basic authentication using your Twilio Account SID and Auth Token. In open source mode, you provide these credentials directly via TwilioAuthConfig. In hosted mode, credentials are stored securely in Airbyte Cloud and you authenticate using your Airbyte client ID and secret instead.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

The Twilio connector currently supports read operations only. Write operations such as sending SMS messages, making phone calls, purchasing phone numbers, deleting recordings, or creating queues are not currently supported.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Ready to get the most out of your Twilio data?

Whether you're building Agents or Data Pipelines.