django-meta-whatsapp integrates with Meta Commerce catalogs, letting you sync your product inventory locally and send interactive product messages — single product cards, product lists, full catalog messages, and scrollable carousels.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rahul-baberwal/django-meta-whatsapp/llms.txt
Use this file to discover all available pages before exploring further.
WhatsAppCatalogProduct Model Fields
Each synced product is stored as aWhatsAppCatalogProduct record:
| Field | Type | Description |
|---|---|---|
account | ForeignKey | The WhatsAppAccount this product belongs to |
catalog_id | CharField | The Meta Commerce Catalog ID |
retailer_id | CharField | Your internal product ID (Meta’s retailer_id) |
name | CharField | Product display name |
price | CharField | Price string including currency (e.g. "1500 INR") |
image_url | URLField | Product image URL pulled from Meta |
is_active | BooleanField | Whether the product is active in the local mirror |
synced_at | DateTimeField | Timestamp of the last successful sync (auto_now=True) |
(account, catalog_id, retailer_id).
Syncing the Catalog
Before you can send product messages, sync your catalog from Meta to populate the localWhatsAppCatalogProduct table.
Step 1: Set the default_catalog_id on your WhatsAppAccount record in the dashboard at /whatsapp/settings/accounts/.
Step 2: Trigger a sync from the UI at /whatsapp/catalog/sync/, or do it programmatically:
update_or_create to upsert each product locally. Re-running it is safe and idempotent.
Sending Product Messages
django-meta-whatsapp provides four dedicated functions for sending interactive product messages via the Meta Cloud API.Single Product
Send a single product card with a body text and optional footer. The recipient sees the product image, name, and price with an Add to Cart button.Product List (Multi-Section)
Send a scrollable product list organised into named sections. Each section can contain multiple products identified by theirproduct_retailer_id.
Full Catalog
Send a catalog message that lets the recipient browse your entire catalog. A single product is shown as the thumbnail that the recipient taps to open the full catalog.Product Carousel
Send a horizontally scrollable carousel of individual product cards. Pass a list ofretailer_id values and the recipient can swipe through each product.
Catalog Link Message
Send a plain text message containing a direct link to your WhatsApp catalog storefront. The link opens the catalog inside WhatsApp on the recipient’s device.Managing Products in the UI
The catalog product list is available at/whatsapp/catalog/. From there you can:
- Add a product manually with its
catalog_id,retailer_id, name, price, and image URL - Edit an existing product’s details
- Delete a product from the local mirror
- Sync all products from Meta at
/whatsapp/catalog/sync/— this pulls the latest product data and upserts it into the local database