> ## 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.

# Rule-based Agent

> Build a flow-based agent for predictable WhatsApp conversations.

## What is a Rule-based Agent?

Use a rule-based agent for a predictable workflow. It triggers preset responses from keywords or message buttons and supports settings such as a welcome message, auto-close timer, and fallback behavior.

## How to configure a rule-based agent?

In the YCloud Dashboard, open **AI Agent** > **AI Agent**. Select **Create Agent** > **Rule-based Agent**, enter a name, and select **Create**. Then open the agent to configure its profile and flows.

#### Profile

**Avatar and name**

You can set up the agent's name and avatar as you need.

<Frame caption="Configure the agent profile, welcome message, and fallback behavior.">
  <img src="https://mintcdn.com/lchnan/TsMGu8UTNQaUw-Rc/product-assets/english-help-demo-2026-09-23/rule-agent-profile.png?fit=max&auto=format&n=TsMGu8UTNQaUw-Rc&q=85&s=29ab23961a1b2eab67cdcc42da544233" alt="Demo rule-based agent profile with name, welcome-message, and fallback settings." width="3024" height="1656" data-path="product-assets/english-help-demo-2026-09-23/rule-agent-profile.png" />
</Frame>

**What should the Rule-based Agent do when it doesn’t understand the user’s intent?**

Choose how the Rule-based Agent responds when it cannot understand the customer's intent:

1. No response.
2. Automatic reply. Selecting this option will automatically reply to questions that cannot be understood based on the reply content you configured
3. Transfer the conversation to a human agent. You can send a message before the transfer to let the customer know they may need to wait.

**How long should the Rule-based Agent wait before closing the conversation**

After the rule-based agent sends a message, if the customer doesn't reply for longer than the configured time, the session will automatically close. The default time is 10 minutes.

**Welcome message sent at the start of a conversation**

The welcome message of the AI agent is an automated message sent to users at the beginning of each conversation it handles. You can configure here some messages that you would like users to see immediately after an incoming message, supporting plain text, media, or interactive types of messages.

#### [Flows](/en/documentation/agents/rule-based-agent/create-a-flow)

Build flows for a Rule-based Agent in the visual editor.

<Frame caption="Open Flows in your rule-based agent to create and manage its flows.">
  <img src="https://mintcdn.com/lchnan/TsMGu8UTNQaUw-Rc/product-assets/english-help-demo-2026-09-23/rule-demo-flow-list-annotated.svg?fit=max&auto=format&n=TsMGu8UTNQaUw-Rc&q=85&s=972fcc6559b08de5043e5d0f2f812fe5" alt="Rule-based agent Flows page with the Create a flow button and an inactive demo flow." width="3024" height="1656" data-path="product-assets/english-help-demo-2026-09-23/rule-demo-flow-list-annotated.svg" />
</Frame>


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