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

# Smart ai mode

## Smart AI Mode

The **Smart AI Mode** controls how your bot behaves when users go outside the defined flow.

You can enable **one** of the following modes:

* Master Agent
* Out of Bound Configuration

> ⚠️ Only one mode can be ON at a time. Enabling one automatically disables the other.

By default:

* New flows use **Out of Bound Configuration**.

***

<Accordion title="Master Agent">
  When **Master Agent** is enabled, the AI can handle conversations beyond fixed flows using intelligence and knowledge sources.

  Ideal for:

  * AI-driven conversations
  * Dynamic responses
  * Knowledge-base powered support

  ***

  ### Select Knowledge Base Chatbot

  Choose the knowledge base your Master Agent should use to answer queries.

  ***

  ### When to Query Knowledge Base

  Define when AI should consult the knowledge base.

  **Example:**

  > The knowledge base contains prices, services, products, and features. Direct users here whenever they ask about such topics.

  ***

  ### Additional Instructions

  Guide how AI should use the knowledge base.

  **Example:**

  > If a user asks about services or products, always query the knowledge base and frame answers to encourage purchases.

  ***

  ### About the Company (Optional)

  Provide company context for better AI responses.

  **Example:**

  > Prime Windshield is India's largest automotive glass repair and replacement company offering headlight repair, battery replacement, wipers, Fastag, and roadside assistance.

  ***

  ### Company Details

  | Field         | Description             |
  | ------------- | ----------------------- |
  | Company Name  | Business name           |
  | Support Email | Customer support email  |
  | Support Phone | Customer support number |

  ***

  ### Conversation Reset Flag

  Allows the system to reset context when required.\
  Useful for restarting flows cleanly.
</Accordion>

<Accordion title="Out of Bound Configuration">
  Controls how the bot responds when users go outside the defined flow.

  Best for:

  * Structured flows
  * Predictable behavior
  * Controlled fallback handling

  ***

  ### Out of Bound Message

  Shown when a user asks something unrelated.

  **Default:**
  `Sorry, I did not understand your response. Let me repeat my question for you.`

  You can customize this message.

  ***

  ### Close Conversation After Out of Bound Message

  When enabled:

  * The chat closes after the fallback message.

  ***

  ### Trigger Journey

  Triggers a journey when a user goes out of flow.

  Behavior:

  * Close Conversation ON → triggers once
  * Close Conversation OFF → triggers every time

  Useful for:

  * Ticket creation
  * Escalations
  * CRM updates

  > NOTE: Only journeys with **Inbound Webhook triggers** appear.
</Accordion>

***

## Choosing the Right Mode

| Use Case                | Recommended Mode       |
| ----------------------- | ---------------------- |
| AI-driven conversations | Master Agent           |
| Strict scripted flows   | Out of Bound           |
| Sales inquiries         | Master Agent + KB      |
| Support fallback        | Out of Bound + Journey |

***
