Skip to main content

WhatsApp Ads and Carts

Two things people do in WhatsApp that lead to a sale: they tap a Click-to-WhatsApp ad and start a chat, and they send a cart from your catalog. Joryio records both, lets journeys and segments use them, and connects them to the orders your store reports.

Find the settings and the ads report in Settings → WhatsApp → Ads & carts.

Chats from Click-to-WhatsApp ads​

When a person taps a Click-to-WhatsApp ad on Facebook or Instagram, the first message they send carries the ad: its id, headline, body, media type and Meta's ad click id (ctwa_clid). Meta leaves the click id out for ads shown in WhatsApp Status.

Joryio then:

  • emits the event whatsapp.ad_referral for that person, once per chat an ad started - start a journey on it ("Started a chat from an ad"), or use it in a segment (for example "performed whatsapp.ad_referral where adSourceId is ..."). firstAdChat is true for the person's first ad chat;
  • writes the last ad on the contact: whatsappAdSourceId, whatsappAdHeadline and whatsappAdReferredAt;
  • keeps the chat on the WhatsApp conversation (as before).

The same message is also a normal whatsapp.message.received, so WhatsApp reply triggers still see it, with fromAd and the ad fields.

Revenue from ads​

When a person who started a chat from an ad places an order within the workspace attribution window (7 days by default), the order is stamped with the ad as its paid touch. This sits beside Joryio's own message credit and never replaces it: the ad brought the person, a campaign or journey may still have earned the order.

The Chats from your ads table shows, per ad and period: the chats it started, the people, the orders stamped with it and their net revenue. The same data is available from the API (GET /whatsapp/ads/performance).

Send conversions to Meta​

Meta can optimize your Click-to-WhatsApp ads on real results when you report them back through Meta's Conversions API for Business Messaging. Joryio can do this for you. It is off by default.

When it is on, Joryio sends:

  • Purchase - an order (a paid one) from a person whose chat started from an ad with a click id in the 7 days before the order;
  • LeadSubmitted - a form submitted by such a person (website form, landing page form or in-app form).

Each event goes to your own Meta dataset of the WhatsApp Business Account the chat reached, and contains the ad click id, your WhatsApp Business Account ID, the event type and time, the order value and currency for a purchase, and nothing else: no names, emails or phone numbers are sent, hashed or not. Events older than 7 days are not sent (Meta would not attribute them), each conversion is sent once (Meta does not remove duplicates, so Joryio does), and a failed send is retried for about two hours.

Turn it on​

  1. Open Settings → WhatsApp → Ads & carts and turn on the switch next to Send conversions to Meta.
  2. Read the consent text. It explains what is shared with Meta. Tick the box and click Turn on conversions. Joryio records who accepted the text, which version and when. Only a signed-in person can do this - an API key cannot turn it on.
  3. Click Check connection at the bottom of the card. Joryio finds (or creates) the Meta dataset of each connected WhatsApp Business Account and shows its id, or the error to fix.

You can turn each event off separately, and turn the whole feature off at any time. Events already sent stay with Meta.

What you need in Meta​

  • A WhatsApp Business Account connected through Meta Cloud API (Twilio and Infobip numbers do not get conversions).
  • The whatsapp_business_manage_events permission on the WhatsApp account's connection. Joryio always sends with the account's own connected token - there is no separate token to add. If the permission is missing, Check connection says so: reconnect the account (below).
  • Accounts connected before Joryio asked Meta for this permission do not have it. Once Joryio asks for it, Settings > WhatsApp > Ads & carts shows "Reconnect this account to allow sending conversions to Meta" while conversions are on, and the accounts table tags the account Needs new permissions. Click Reconnect and approve the new permission in the Meta dialog. Joryio reads which permissions the token has after every connect and at most once a day after that.
  • Your ads must be Click-to-WhatsApp ads. Ads shown in WhatsApp Status carry no click id, so their chats are counted but no conversion can be sent for them.

You are responsible for having a legal basis for this sharing and for telling your customers about it, for example in your privacy notice.

Carts sent in WhatsApp​

A person can put products in a cart from a catalog, product or multi-product message and send it to you. A business cannot send or change a cart, so a cart is an order request. Joryio:

  1. matches each line to your products by its retailer id - your Joryio product id once your catalog is synced to Meta, or before that the store's product id, a variant id, a SKU, or a Shopify / WooCommerce sales channel id (shopify_<country>_<product>_<variant>, wc_post_id_<id>);
  2. builds a link to your store's checkout with those items, once, when the cart arrives;
  3. emits whatsapp.cart.received - the journey trigger WhatsApp inbound → Cart (from the catalog). A plain WhatsApp inbound message trigger fires when the message arrives, before the link exists; the Cart option waits for this event, so the link is always there.

Nothing replies to the cart on its own. The reply is a journey, so you choose the wording, the waits, the reminders and the conditions.

The order the person then places is reported by your store like any other order and attributed as usual.

The event's properties​

PropertyWhat it holds
checkout_urlThe link to your store's checkout with the cart's items. Empty when the store cannot build one.
checkout_unavailable_reasonOnly when checkout_url is empty: store_cannot_prefill_cart (Magento, PrestaShop), store_not_connected (the store is disconnected), store_url_invalid, no_store_products (no line matched a store product), platform_not_supported.
checkout_platformThe store the link is for, for example shopify or woocommerce.
itemsOne entry per line: retailer_id, product_id and variant_id (the matched product, or empty), name, quantity, price, currency.
item_count, total_quantityLines in the cart, and the sum of their quantities.
matched_count, unmatched_count, product_idsHow many lines matched one of your products, and their product ids.
total, currencyThe cart's value at WhatsApp's prices (empty when the lines mix currencies or carry no price).
catalog_idThe Meta catalog the cart came from.
order_idThe cart as Joryio recorded it.
cart_noteThe note the person wrote with the cart, if any.
channel, account_id, message_idwhatsapp, the WhatsApp account the cart reached, and the message id.

In any later step, write the link as {{ trigger.properties.checkout_url }} - for example as the button URL of a WhatsApp session message in the Link button format, or in its text. To answer carts with no link differently, add a Branch on checkout_url is empty, or on checkout_unavailable_reason.

StoreCheckout link
ShopifyYes - a cart link (/cart/<variant>:<qty>). A product with several variants needs the variant's id in the catalog.
WooCommerceYes - a shareable checkout link (/checkout-link/?products=<id>:<qty>), WooCommerce 10.0 or newer.
MagentoNo - Magento has no link that fills a cart from outside. The event still fires, with checkout_url empty and checkout_unavailable_reason: store_cannot_prefill_cart.
PrestaShopNo - same reason as Magento.

Reply from a journey​

Settings → WhatsApp → Ads & carts says "Reply to carts from a journey - use the WhatsApp inbound trigger with Cart (from the catalog)." with a button:

  • Create the cart journey creates a draft journey, WhatsApp cart → checkout link, and opens it in the journey editor. Nothing is activated.
  • Open your cart journey appears instead when the workspace already has a journey on that trigger, and opens it.

The draft's texts are written in the language of the person who creates it. Its steps:

  1. Trigger: WhatsApp inbound → Cart (from the catalog), on the same WhatsApp account the steps send from.
  2. Checkout link - a WhatsApp session message, Link button format: "Thanks for your order! Complete your purchase here:" with a Complete purchase button whose URL is {{ trigger.properties.checkout_url }}.
  3. Ordered within 1 hour? - a Behavior split that waits 1 hour for Order Completed. The Ordered path leaves the journey; No order yet goes on to the reminder.
  4. Reminder - a WhatsApp session message: "Your cart is still waiting for you. Complete your purchase here:" with the same Complete purchase button.

Both messages fall inside the 24-hour session window the customer's cart opened, so no template is needed. Re-entry is set to restart: a newer cart replaces the older run, so a reminder never carries a stale link. Both steps send from the workspace's default WhatsApp account (else the first active one); the trigger answers only carts sent to that account. To use another account, pick it in the trigger (Delivery step) and in both steps. Review the copy, then activate the journey yourself.

The assistant can suggest the same journey too (the WhatsApp cart → checkout link playbook).