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=...). Agent-generated image events are uploaded
to WhatsApp Cloud API as binary media and sent by media ID. Base64/data URL room
files are decoded before upload.
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.
Metadata
Release files for meshagent-whatsapp 0.45.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meshagent_whatsapp-0.45.9.tar.gz | 34.4 kB | Without provenance | Details for meshagent_whatsapp-0.45.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meshagent_whatsapp-0.45.9-py3-none-any.whl | Python 3 | none | any | Details for meshagent_whatsapp-0.45.9-py3-none-any.whl |
Total release size: 58.6 kB
Release files / meshagent_whatsapp-0.45.9.tar.gz
| Download URL | meshagent_whatsapp-0.45.9.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c481658bad0eb9b59b84a34539fa58b288b5c17dc7998bb1d82aeff98e7a617
|
|
BLAKE2b-256 checksum How to use checksums |
edc5b12a62b827e308260b92c5d1220ceacd377b41204830c56d69dae8e4e325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / meshagent_whatsapp-0.45.9-py3-none-any.whl
| Download URL | meshagent_whatsapp-0.45.9-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19d3cd6fbaa8cf5c912b9e47f62ec416a705e2f723b8472e3f18a2ad21b43fd0
|
|
BLAKE2b-256 checksum How to use checksums |
e8c4314afbe3289206cf4712ef78e5dfd16bfb9a9007e0263cce65f71003eecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for meshagent-whatsapp 0.45.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.