How to set up keyword triggers

Answer a DM that contains a keyword with the right reply and link, straight from the builder, with the matching rules and the priority order explained.

Someone DMs a word like PRICE and the right answer goes straight back. A keyword trigger is the simplest automation there is: a word to watch for, and the DM to send.

Preview a customer example during setup

The Send a link from a DM setup goal opens Create before you need to connect Instagram.

  1. Fill in Keyword, Link to send and Message.
  2. Type an Example customer DM and click Preview to test the current edits locally.
  3. For an exclusion test, open the initially collapsed Test trigger rules and choose Simulate a DM from the account owner, then click Preview. This is a hypothetical scenario; an owner exclusion means the rule worked. Try as a customer keeps your custom input, resets the scenario and runs the customer example again.
  4. Click Save draft & continue to connect and turn on the saved reply on Review. A passed simulation sends nothing; use the different-account Instagram test below to check a live reply.

The rest of this guide describes the full builder. For the setup page, see Getting started.

Before you start

  • Instagram is connected — Connect Instagram.
  • You are an owner, admin or agent on the workspace.

Open the builder

  1. Go to Automations.
  2. Click the Keyword → DM starter card, or New automation and choose Someone DMs a keyword under What starts it.

Growth tools → Keyword triggers → Configure opens the same builder with this trigger already selected.

Fill in the form

The builder set to Someone DMs a keyword, filled in
The builder set to Someone DMs a keyword, filled in

1 — Trigger

  1. Under What starts it, choose Someone DMs a keyword.
  2. Leave Detect keywords selected. (Recognize intention is a different matcher — see Set up intent recognition.)
  3. Enter up to 5 keywords, comma-separated, e.g. PRICE, PRICES. Matching ignores case, and with contains the keyword a keyword anywhere in the message matches.
  4. Choose contains the keyword or is exactly the keyword.
  5. Optionally click + Exclude words and add but doesn't contain words, e.g. wholesale. A message containing one of these is skipped even when the keyword matched.

2 — Conversation

  1. Write the DM. Insert variable adds First name, Last name, Username or a custom field.
  2. Add up to 3 links, one per line. Each link is tracked — unless your workspace sends links exactly as typed (Settings → Workspace → Links, where it's offered). A link with a variable in it goes out as written and isn't counted.

The DM tab of the preview shows the reply as it will arrive, for a sample contact with a name and one without — it sends nothing.

3 — Follow-up (optional)

  • Capture their email — asks for an email once they reply and saves it onto the contact as a lead.

Save and publish

Name the automation and click Publish, or Save draft to keep it without running. If something is unfinished, Publish takes you to it.

Test it on Instagram

From a different Instagram account, DM the keyword to your connected account. The Test on Instagram button names the account to send it to. The reply lands in that account's inbox and in your Inbox in HyperDM.

Which automation wins

When two live automations could match the same DM, the first match in priority order wins — top to bottom in the Automations list. Move up / Move down in each row's ⋯ menu appear only in the Priority sort, and the order matters only when two automations share a keyword.

Two rules sit above everything you build and cannot be outranked:

  1. Opt-out — STOP always wins, and revokes consent for automated replies.
  2. Opt-in — START re-grants it.

You can add your own opt-out and opt-in words under Settings → Channels → Keywords. Below all your automations sits the AI agent, as the open-ended fallback for DMs nothing caught — if you have switched it on.

Common problems

It did not fire. Is it Live; does the DM actually contain the keyword; is a but doesn't contain word in it; is a higher-priority automation catching it first. Full checklist in Troubleshooting.

I need it to fire on questions worded lots of different ways. Add more keywords (up to five per automation), or build a second automation. For a question that must always get a reply, keywords are the reliable choice.

The same person keeps getting the same DM. That is expected: a keyword automation replies every time the keyword arrives. Put the follow-up in a flow if you want branching or a wait.

Full reference for every field: Automations.

Try HyperDM for free

50 free conversations a month, no card. Connect Instagram and follow the guide you just read.

Get startedNO CARD · 50 FREE CONVERSATIONS A MONTH · CANCEL ANYTIME