WhatsApp Cloud API text/media channel support for MeshAgent
Project description
MeshAgent WhatsApp
WhatsApp Cloud API channel support for MeshAgent process agents.
This package exports WhatsAppChannel and create_channel(...) for use with a
MeshAgent process channel shim.
The channel turns validated WhatsApp webhook queue messages into trusted MeshAgent user turns and sends completed agent responses through the WhatsApp Cloud API. Incoming webhooks extract text messages, inbound media messages, and interactive button/list replies, while status updates are exposed to an overridable channel hook.
Inbound WhatsApp media is downloaded by media ID, written to room storage under
.threads/whatsapp-media by default, and passed to the agent turn as
room:///... file content next to the text/caption. Downloads are capped by
MESHAGENT_WHATSAPP_INBOUND_MEDIA_MAX_BYTES, which defaults to 25000000;
oversized media is skipped and represented as text in the agent turn.
Set MESHAGENT_WHATSAPP_ALLOWED_FROM_NUMBERS to a comma-separated phone number
allowlist to process inbound messages and send outbound messages only for those
WhatsApp numbers. Numbers are matched by digits, so formatted and unformatted
versions of the same number are equivalent.
Text responses are sent as WhatsApp text messages. File attachments emitted by
the agent with attach_file are sent as WhatsApp media messages when they are
HTTP(S) URLs, or when room:///... storage URLs can be resolved through
room.storage.download_url(path=...).
The package also exports Cloud API helpers for read receipts with typing indicators, interactive reply buttons, interactive list messages, generic templates, image-header templates, limited-time-offer templates, media-card carousel templates, media ID messages, and media upload/download/delete.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshagent_whatsapp-0.44.13.tar.gz.
File metadata
- Download URL: meshagent_whatsapp-0.44.13.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00e019d6b94d33b0d0a57e8fcde4aa6e026e64b8a9b496fe347ab4341b89bf7
|
|
| MD5 |
b8f0e6385e52c46fa5efb9188e520dc6
|
|
| BLAKE2b-256 |
8d92312d3f895978e275ce13b3599845feb808f888331f3486ed061ca0c4101a
|
File details
Details for the file meshagent_whatsapp-0.44.13-py3-none-any.whl.
File metadata
- Download URL: meshagent_whatsapp-0.44.13-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85a294b781e2da54e879259ca8aca15a838c7f4e936d416bf6e0bfd323bf0492
|
|
| MD5 |
c6dc573331fdb4f328459b3d9b5c77ba
|
|
| BLAKE2b-256 |
29f53a3dec388232ad6f13e3728e7daaaa4d696fb8dcb2e190ec80599f964eed
|