When someone taps a Meta ad that opens a chat, Raqi keeps which ad it was. There is nothing to set up: a new ad appears with its first customer, on WhatsApp, Instagram and Messenger, whatever the first message is (text, photo, voice note or file). The ad frames the chat for 72 hours after the person last came from it. A person who taps a second ad gets the newest ad.
What Each Channel Sends
Tip. A field the channel does not send stays empty. Offers printed on the picture are read for your agent, see below.
| Channel | What Raqi receives |
|---|---|
| Headline, body text, link, picture or video, and the ad or post ID | |
| Title, picture or video, ad ID and post ID. No body text and no link | |
| Messenger | Title, picture or video, ad ID and post ID. No body text and no link |
Your AI Agents
Your agent sees the ad while it answers, so "how much?" means the product in the ad. The ad's own words are treated as information, never as instructions.
Important. On paid plans, Raqi also reads the offer printed on the ad's picture, once per ad, and the agent can use it from then on. It runs after the reply, so the very first answer may not have it yet. Raqi never reads a video, and never does this on the Free plan. Meta's picture links expire: when a read fails, Raqi tries once more with a later customer.
- Open Analytics and choose the Ads tab. This needs the Starter plan or higher to save.
- Find the ad's card.
- In What should your AI agents know about this ad?, write what you want, then choose Save.
Your Workflows
The Ad response trigger starts when someone messages you from an ad on any of the three channels. Leave Ad ID empty for every ad, or paste one ID. As with other message triggers, a run that answers takes the message, so the person gets one reply. The trigger is on every plan.
Tip. Other runs that a message starts, such as Incoming message, also get these variables when the conversation came from an ad in the last 72 hours. {refCode}, {adId} and {referralSource} still work.
| Variable | What it holds |
|---|---|
| {ad.headline} | The headline or title |
| {ad.body} | The body text (WhatsApp only) |
| {ad.id} | The ad ID |
| {ad.source_url} | The link (WhatsApp only) |
| {ad.image_url} | The picture |
| {ad.post_id} | The post behind the ad |
| {ad.source_type} | ad or post |
| {ad.channel} | WHATSAPP, INSTAGRAM or FACEBOOK_MESSENGER |
Example: A Dental Clinic
A clinic runs one ad for implants and one for whitening, and wants a different first answer for each.
- Create a workflow and add the Ad response trigger.
- Add an If / else step and choose Ad field. Pick Headline, then contains, then type implant.
- On the true path, add a message that asks for their last X-ray. On the false path, add a message that asks which day suits them.
- An AI step in a private reply already knows the ad as information. In its Custom instructions you can refer to it, for example: Open by mentioning {ad.headline}.
- Activate the workflow. Test it first with the simulator, which fills in example ad values.
See What Your Ads Bring
Open Analytics and choose the Ads tab, on every plan. Each ad has a card with its conversations, orders, revenue and bookings in the period you pick. An order or booking counts when it is linked to a conversation, and it goes to the newest ad the person had come from. Spend is not included, because Raqi does not read your ad accounts here. In the Inbox, the contact panel shows From ad when the conversation has one.