본문으로 건너뛰기

Should a keyword trigger use contains or exactly matches?

4 답글3 조회

Our price keyword automation is firing on messages that have nothing to do with price. One of them was somebody saying they appreciate the fast replies. I assume I picked the wrong mode but which one is right?

4 답변

베스트 답변

DK

Use exactly matches for short words that appear inside other words, and contains for phrases people type in the middle of a sentence. Getting this wrong is the single most common reason a keyword automation answers the wrong messages.

There are five modes:

  • contains, the default: the keyword appears anywhere in the message.
  • equals: the whole message is exactly the keyword.
  • starts with: the message begins with the keyword.
  • any message: no keyword matching at all, every inbound message triggers.
  • regular expression: a pattern, for structured input like an order number.

Casing is ignored by default and you can turn that off.

Worked example. Keyword PRICE in contains mode matches "what is the price" and also matches "I appreciate it", because appreciate contains price. In equals mode it matches only a message that is exactly "price", which is how a lot of people actually reply to a comment prompt.

So the rule of thumb: one short word, use equals. A phrase like "how much does it cost", use contains. A command-style prefix, use starts with.

If you want both behaviours, build two automations. When several automations match the same message, the more specific one answers, so an equals automation wins over a contains automation on the same word.

AM

The appreciate example is exactly what was happening to us.

MJ

We standardised on equals for single words after the same bug. ---

CT

Accurate. We would only add that the trigger settings screen shows this before you publish.

답변하고 초안을 저장하려면 로그인해 주세요.

Should a keyword trigger use contains or exactly matches?: 커뮤니티 | ChatinFlow