Skip to main content

Twilio SMS/MMS channel support for MeshAgent

Project description

MeshAgent Twilio

Twilio SMS/MMS channel support for MeshAgent process agents.

This package exports TwilioChannel and create_channel(...) for use with a MeshAgent process channel shim.

The channel turns validated Twilio webhook queue messages into trusted MeshAgent user turns and sends completed agent responses through Twilio's Messages API. Inbound MMS media from Twilio MediaUrl{N} webhook fields is downloaded with the channel's Twilio credentials, uploaded to room storage, and passed to the room agent as AgentFileContent. Text responses are sent as SMS. File attachments emitted by the agent with attach_file are sent as MMS media URLs when they are HTTP(S) URLs, or when room:///... storage URLs can be resolved through room.storage.download_url(path=...).

Set MESHAGENT_TWILIO_ALLOWED_FROM_NUMBERS to a comma-separated phone number allowlist to process and send messages only for specific SMS/MMS numbers. Numbers are matched by digits, so +1 (555) 010-1000 and 15550101000 are equivalent. Leave it empty to allow all senders.

Inbound MMS files are stored under MESHAGENT_TWILIO_MEDIA_STORAGE_PREFIX (.threads/twilio-media by default). Set MESHAGENT_TWILIO_INBOUND_MEDIA_MAX_BYTES to cap each inbound media download; the default is 25000000.

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

meshagent_twilio-0.44.13.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

meshagent_twilio-0.44.13-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file meshagent_twilio-0.44.13.tar.gz.

File metadata

  • Download URL: meshagent_twilio-0.44.13.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for meshagent_twilio-0.44.13.tar.gz
Algorithm Hash digest
SHA256 6c02f3c0fef3b255fe7c0654155c08c2bd04e0f87d5c1cc61615e507cc47e1eb
MD5 8238185c60d2917408b66e263e09c065
BLAKE2b-256 a17b6508abc2f3195648acbe36a5e17b7dc49f15dbf3867495b2627e2a055b10

See more details on using hashes here.

File details

Details for the file meshagent_twilio-0.44.13-py3-none-any.whl.

File metadata

File hashes

Hashes for meshagent_twilio-0.44.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2e75cbcffe3fe44865fdbbedc45ea69f1222b8093a9af7211a6131d4e9d3f5aa
MD5 a15830d555d252856f54b129fccf15b7
BLAKE2b-256 ce2fd7cd2c37d12bb820b0eef32ab63022b3a6527c53f32c6b0f9547bdc19dcd

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