Skip to main content

Airbyte Twilio Connector for AI platforms

Project description

Twilio

The Twilio agent connector is a Python package that equips AI agents to interact with Twilio through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Connector for the Twilio REST API. Provides read access to core Twilio resources including accounts, calls, messages, recordings, conferences, incoming phone numbers, usage records, addresses, queues, transcriptions, and outgoing caller IDs. Uses HTTP Basic authentication with Account SID and Auth Token.

Example questions

The Twilio connector is optimized to handle prompts like these.

  • 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?

Unsupported questions

The Twilio connector isn't currently able to handle prompts like these.

  • Send a new SMS message
  • Make a phone call
  • Purchase a new phone number
  • Delete a recording
  • Create a new queue

Installation

uv pip install airbyte-agent-twilio

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_twilio import TwilioConnector
from airbyte_agent_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.tool_plain # assumes you're using Pydantic AI
@TwilioConnector.tool_utils
async def twilio_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_twilio import TwilioConnector, AirbyteAuthConfig

connector = TwilioConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@TwilioConnector.tool_utils
async def twilio_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Accounts List, Get, Context Store Search
Calls List, Get, Context Store Search
Messages List, Get, Context Store Search
Incoming Phone Numbers List, Get, Context Store Search
Recordings List, Get, Context Store Search
Conferences List, Get, Context Store Search
Usage Records List, Context Store Search
Addresses List, Get, Context Store Search
Queues List, Get, Context Store Search
Transcriptions List, Get, Context Store Search
Outgoing Caller Ids List, Get, Context Store Search

Authentication

For all authentication options, see the connector's authentication documentation.

Twilio API docs

See the official Twilio API reference.

Version information

  • Package version: 0.1.17
  • Connector version: 1.0.4
  • Generated with Connector SDK commit SHA: 6bf360a546d577c9f76e8a6b8abf9ffc4dbfcf3a
  • Changelog: View changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_twilio-0.1.17.tar.gz (173.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_twilio-0.1.17-py3-none-any.whl (198.9 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_twilio-0.1.17.tar.gz.

File metadata

  • Download URL: airbyte_agent_twilio-0.1.17.tar.gz
  • Upload date:
  • Size: 173.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_twilio-0.1.17.tar.gz
Algorithm Hash digest
SHA256 374bc0751a8d869b3dde1e29c5e7126c53426b52b1f7157e7abd55971d655435
MD5 f0bc5cd34086ae780d263384d853ad66
BLAKE2b-256 884c92980aefc6ea2b667a7542cec76be89c452a5c679f68ddf2258faa364835

See more details on using hashes here.

File details

Details for the file airbyte_agent_twilio-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_twilio-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 29fee9dd22d8e800dfdd08148b2da996f2bdd99b383438d6bb02e88bffe6e1b7
MD5 347596b637935bf0fc21e3f05d5f51d8
BLAKE2b-256 9910bdae152a0b0153241300f33924e15508237302cca81b22726191cbb4c6bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page