> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ycloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trigger

## What is Trigger?

When a user wants to create a new Rule-based Agent, the page will first prompt "Add a trigger," which indicates the need to add a trigger keyword for the Rule-based Agent.

<Frame caption="Select Add a trigger to start a new rule-based flow.">
  <img src="https://mintcdn.com/lchnan/gXEJIQXV2JH2VUQJ/product-assets/english-help-2026-09-22/rule-flow-editor-annotated.svg?fit=max&auto=format&n=gXEJIQXV2JH2VUQJ&q=85&s=5e0c5423b201d2f1c738cb7ebcb44b12" alt="Full flow editor with the Add a trigger button highlighted." width="3024" height="1656" data-path="product-assets/english-help-2026-09-22/rule-flow-editor-annotated.svg" />
</Frame>

## Trigger:

### Exact Matching

* A trigger occurs only when the user's reply exactly matches any of the set keywords.
* Suitable for scenarios involving specific coupon codes or invitation codes.

<Frame caption="Select Exact matching to match the complete keyword. This example uses hello.">
  <img src="https://mintcdn.com/lchnan/gXEJIQXV2JH2VUQJ/product-assets/english-help-2026-09-22/rule-trigger-exact-annotated.svg?fit=max&auto=format&n=gXEJIQXV2JH2VUQJ&q=85&s=234469cf20caedf6e3c9ea61a9d2be92" alt="Keyword trigger with Exact matching selected and hello entered." width="3024" height="1656" data-path="product-assets/english-help-2026-09-22/rule-trigger-exact-annotated.svg" />
</Frame>

### Containing

* A trigger occurs if the user's reply contains any of the set trigger keywords.

<Frame caption="Select Containing to match a keyword within the reply. This example uses hello.">
  <img src="https://mintcdn.com/lchnan/gXEJIQXV2JH2VUQJ/product-assets/english-help-2026-09-22/rule-trigger-containing-annotated.svg?fit=max&auto=format&n=gXEJIQXV2JH2VUQJ&q=85&s=3e586dcbd70370b1b5bda89f28b93fab" alt="Keyword trigger with Containing selected and hello entered." width="3024" height="1656" data-path="product-assets/english-help-2026-09-22/rule-trigger-containing-annotated.svg" />
</Frame>

## Natural language trigger

<Info>
  Choosing natural language trigger and specific keyword triggers are not mutually exclusive. After setting natural language triggers, you can still add specific trigger keywords to activate the corresponding rule-based agent.
</Info>

Use AI large language models to understand user-triggered rule-based agent keywords without needing to input specific trigger keywords.

You can select default trigger topics in the YCloud system under "Conversation topic," such as greeting, checking order status, transferring to an agent, etc.; or you can choose to customize specific topics. Additionally, you can add other keywords below that you think are necessary to better recognize the customer's intent and trigger the corresponding rule-based agent flow.

<img src="https://mintcdn.com/lchnan/Z2X3BzyqaivSGKDr/product-assets/5b81f4e429-image-203.webp?fit=max&auto=format&n=Z2X3BzyqaivSGKDr&q=85&s=59084fbd1bb01229a402227c7d5260f8" alt="YCloud product screenshot" width="2304" height="1353" data-path="product-assets/5b81f4e429-image-203.webp" />

## Click button trigger

To trigger the rule-based agent, it is essential to use template messages with quick reply buttons.

This is applicable when a business sends marketing/utility type messages with quick reply buttons to users. When the user clicks the corresponding button, it will redirect them to the corresponding rule-based agent flow, where interactions with the user will take place.

<img src="https://mintcdn.com/lchnan/7IqVC2giQEcOq6-5/product-assets/1e0bf7c38e-image-201.webp?fit=max&auto=format&n=7IqVC2giQEcOq6-5&q=85&s=93f609c8ff976689e0481d64d5e8d0ee" alt="YCloud product screenshot" width="2304" height="1351" data-path="product-assets/1e0bf7c38e-image-201.webp" />

<img src="https://mintcdn.com/lchnan/RN4tXfXENVvDu0Te/product-assets/cab6a7da68-image-202.webp?fit=max&auto=format&n=RN4tXfXENVvDu0Te&q=85&s=88122654cbc7b2e4bfb848182b69b190" alt="YCloud product screenshot" width="2304" height="1280" data-path="product-assets/cab6a7da68-image-202.webp" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.