# Triggers and “Message us” links: start conversations from comments, links, ads and stories

> Answer comments on Facebook and Instagram posts with a private message, greet people who arrive from a link, an ad or an Instagram story, put "Message us" links on your pages, and see the conversations and orders each one brings.

Source: https://www.wpbot.pro/help/chatbot-channels-triggers/  
Section: Messaging Channels › Grow and sell  
Updated: 2026-11-30

A **trigger** starts a private conversation at the moment someone shows interest: they comment on your post, open the chat from a link or an ad, or reply to your Instagram story. The chatbot answers them in private, and the Triggers list shows how many conversations each trigger started and the orders that followed.

Open **WPBot Pro → ChatBot → Channels → Triggers**.

![Channels, Triggers tab: each trigger with what starts it, its reply, how often it started and the orders it brought](https://www.wpbot.pro/wp-content/uploads/2026/11/wpbot-docs-ch2-triggers-1.jpg)

_Triggers with what starts them, their reply, how often they started a conversation and the orders they brought._

## How triggers work

1. **Something happens on a connected account:**  a comment on a Facebook Page or Instagram post, a chat opened from a link or an ad, or a reply to your Instagram story.
2. **WPBot checks your triggers from the top of the list down.**  It skips triggers that are off or set to another channel, and uses the **first one that matches** . Matching ignores upper and lower case.
3. **The trigger answers:**
   - **A comment**  gets a **private message**  from your Page or account and, if you wrote one, a **public reply**  under the comment.
   - **A link, an ad or a story reply**  gets the trigger's reply as the first message of the chat. Without your own text, the reply is your greeting and start menu.
4. **The chatbot takes over.**  When the person answers, the conversation goes on with the chatbot like any other chat on that channel: start menu, forms, AI answers and "Talk to a person".
5. **WPBot remembers what brought the person in,**  and credits their orders within 30 days to that trigger.

What is **not** answered:

- **Comments no trigger matches.**  The chatbot never replies to comments by itself; Activity shows them as "Not for the bot".
- **Replies to other comments.**  Only top-level comments start a trigger.
- **A second comment by the same person on the same post**  while **One private message per person per post**  is on. Activity shows it as "Not for the bot: Already answered this person on this post".
- **Link, ad and story triggers while a person from your team has the conversation.**  Your team answers instead.

## What you need

| Trigger | Needs |
| --- | --- |
| **Comment on a post** | A connected Facebook Page (Messenger) or Instagram account with permission to read and answer comments. The account is subscribed to comments when you connect it; see [Connect the chatbot to Facebook Messenger and Instagram](/help/chatbot-messenger-and-instagram/). Meta allows one private reply per comment, within 7 days of the comment. |
| **Link with a code** | Any connected account. Use "Message us" links (below) or your own link with the code. |
| **Click on an ad** | A click-to-Messenger, click-to-Instagram or click-to-WhatsApp ad that opens a chat with a connected account. |
| **Instagram story reply or mention** | A connected Instagram account. |

## Kinds of triggers

| Starts when | What happens | Channels |
| --- | --- | --- |
| **Comment on a post** | Someone comments on a Facebook or Instagram post (one post, or every post). A matching comment gets one private message, a public reply, or both. | Messenger (Facebook Pages), Instagram |
| **Link with a code** | Someone opens the chat from a link that carries your code: `m.me/…?ref=CODE`, `ig.me/m/…?ref=CODE`, `t.me/…?start=CODE`, or a WhatsApp message with "(ref CODE)". "Message us" links make these for you. | Every channel |
| **Click on an ad** | Someone opens the chat from a click-to-message ad: one ad id, or any ad. | Messenger, Instagram, WhatsApp |
| **Instagram story reply or mention** | Someone replies to your story, or mentions your account in their story. | Instagram |

## Add a trigger

Scroll to **Add a trigger**. The form shows only the fields that fit the kind you choose.

![Add a trigger: name, what starts it, the channel, the comment condition, the private message and the public reply](https://www.wpbot.pro/wp-content/uploads/2026/11/wpbot-docs-ch2-trigger-form-1.jpg)

_Add a trigger: name, what starts it, the channel, the comment condition, the private message and the public reply._

| Field | What to enter |
| --- | --- |
| **Name (for you)** | A name you recognise in the list, for example "PRICE comments on Instagram". |
| **Starts when** | The kind of trigger. |
| **On** | **Every channel** (every channel the kind works on), or one channel. Only channels that fit the kind are offered. |
| **Post id (empty for every post)** | Comment triggers: one Facebook or Instagram post. Both the full id (`pageid_postid`) and the bare post id work. Leave it empty for every post. |
| **When the comment** | **Any comment**, **Is exactly**, **Contains**, **Contains any of these words (comma-separated)**, **Contains all of these words (comma-separated)**, **Tags at least this many people** or **Has a photo or video**. Story triggers use the same conditions on the reply's text. |
| **Words or number** | The words for the text conditions, or the number of people for **Tags at least this many people**. |
| **Link code, or ad id (empty for any ad)** | Link triggers: a code of 2 to 32 letters, digits, "\_" or "-". Ad triggers: the ad id, or empty for every ad. |
| **Send a private message** | Comment triggers: send the private message (on by default). Turn it off for a public reply only. |
| **Private message (empty: the greeting and start menu)** | The first message. Leave it empty to send your greeting and start menu. For a comment, Meta takes one private message, so only its first part (text with buttons) is sent. |
| **In the private message, also offer** | Comment triggers: **A "Continue on WhatsApp" button** or **A "Continue on Telegram" button**. The button opens a chat with your first connected account of that app, so a Facebook or Instagram commenter can move to WhatsApp or Telegram. On Messenger the text and the button go out as one message, as Meta allows. |
| **Public reply under the comment (one per line: one is picked at random; empty: none)** | Several lines give varied replies, so they don't all look the same. |
| **One private message per person per post** | On by default: a person who comments five times on a post gets one private message (remembered for 90 days). The public reply is still posted. |
| **On** | The trigger works only while this is ticked. |

`[sender_name]` and `[sender_comment]` are replaced with the person's name and words in the private message and the public reply. Click **Save**.

If something is missing, the form says so: "Give the words or number the comment must have.", "Give the link a code of 2 to 32 letters, digits, "\_" or "-".", or "A comment trigger needs a private message, a public reply, or both."

Tip

Put specific triggers above general ones. New triggers are added at the end of the list, and the first match wins. If an "Any comment" trigger is above your "Contains: price" trigger, the price trigger never runs. To change the order, delete the general trigger and add it again, so it moves to the end.

Tip

A classic: post a product photo with "Comment PRICE and we'll send you the details". Add a comment trigger with **Contains** "price", a private message with the price and a link, and the public reply "Sent you a message, \[sender\_name\]!". The public reply shows others that you answer, and the private message starts a sale.

## The Triggers list

| Column | What it shows |
| --- | --- |
| **Trigger** | The name, the kind and the channel. |
| **When** | The post or code and the condition, for example "Any post · Contains: price" or "Code "summer"". |
| **Reply** | The start of the private message (or **Greeting and start menu**), and **Public reply** when there is one. |
| **Started** | How many times the trigger answered someone. |
| **Orders** | Orders of linked customers within 30 days of the trigger, with their revenue in brackets. |

**Off** marks a trigger that is switched off. **Edit** opens the trigger in the form (**Edit the trigger**), where you can change it, switch it off or **Delete** it.

Orders are counted once the customer is linked to their account: through a "Message us" or "Continue on" link while signed in, or with the customer check (see [Talk to a person, the customer check and "Continue on WhatsApp"](/help/chatbot-channels-people-and-handover/)). The WooCommerce order also keeps what brought the customer in.

## "Message us" links

Put a link to WhatsApp, Telegram, Messenger or Instagram on any page or post with the shortcode:

`[wpbot_message_us channel="whatsapp" code="summer" label="Message us on WhatsApp"]`

![The Message us link shortcode](https://www.wpbot.pro/wp-content/uploads/2026/11/wpbot-docs-ch2-message-us.jpg)

_The Message us shortcode on the Triggers tab._

- `channel`: `whatsapp`, `telegram`, `messenger` or `instagram`. The link shows only when an account of that channel is connected and on.
- `code`: letters, digits, "\_" and "-". It starts the **Link with a code**  trigger that has the same code, so you see which page brings conversations.
- `label`: the link text. Without it, the link reads "Message us on WhatsApp" (or the app's name).

The link goes through your site and then on to the app, so cached pages stay the same for everyone. A signed-in customer who follows it is linked to their account, so the bot knows their orders in the app. Style the link with the CSS classes `wpbot-message-us` and `wpbot-message-us-whatsapp` (and so on).

## Old Messenger post replies

Per-post comment replies from the old Messenger add-on were carried over as comment triggers. Their Dialogflow replies and scheduled comment campaigns were not. See [Upgrading from the old Messenger, WhatsApp and Telegram add-ons](/help/chatbot-channels-upgrade-from-add-ons/).

## Check that a trigger works

- **Activity**  lists every comment and message that came in, and what was sent back or why it was skipped. See [Manage channel accounts, Activity and background work](/help/chatbot-channel-accounts-and-activity/).
- **Test**  lets you talk to the bot as a customer; to test a comment trigger itself, comment on your own post from another account.

## Triggers in the Growth Loop

Triggers connect **Share** and **Convert** in the [Growth Loop](/help/the-growth-loop/): a post you share with WPBot Social, a page AI Writer wrote, or an ad brings a comment or a click; the trigger turns it into a private conversation; the chatbot answers and sells; and the Triggers list shows which post or page paid off, so you know what to create next.

## Availability

In **Master** only.
