---
title: How an AI Agent works with an NLP bot
slug: intelligent-chat-agent/how-an-ai-agent-works-with-an-nlp-bot
createdAt: 2025-12-29T06:58:38.162Z
---

This section explains how **AI Agent capabilities** work alongside the existing **NLP-based bot**, how different settings influence query handling, and how to choose the right configuration based on your use case.

The platform provides two key GenAI settings:

- **AI Agent (Bot Mandate)**&#x20;
- **AI Intent Assist (Orchestrator)**&#x20;

These settings can be enabled independently or together to control how user queries are understood and answered. Navigate to these settings under **Settings > Solution Settings**; read more here:  [Solution Settings: Chatbot](https://app.archbee.com/docs/G4cETdEdPALg9rnE6iJRN/FWmnT-4DYBXa6Q1tpg92T#XQEpa)**.**

# Core Concepts

## NLP Bot (Default Behavior)

By default, bots use NLP intent detection based on:

- Keywords&#x20;
- Training phrases&#x20;

This works well for structured, predictable conversations, but may struggle with:

- Long or ambiguous queries&#x20;
- Paraphrased questions&#x20;
- Multiple intents in a single message&#x20;

## AI Agent

The **AI Agent** allows you to build GenAI-powered conversational flows using the **AI Agent Studio**.

Instead of relying on predefined intent matching, AI Agent flows:

- Use natural-language objectives and actions&#x20;
- Handle open-ended and dynamic conversations&#x20;
- Can retrieve knowledge (Exomind), call APIs, or perform logic-based actions&#x20;

When enabled, AI Agent flows can generate responses directly using AI.

## AI Intent Assist

**AI Intent Assist** improves how the bot understands user queries before deciding how to respond.

It introduces a **Query Analyzer** layer that:

- Understands the meaning of user queries&#x20;
- Attempts to map queries to the closest NLP intent using AI&#x20;
- The AI tries to read the user queries, all the existing NLP intents in the bot with their descriptions about what that intent does, and tries to match with the closest relevant intent.
- Reduces missed or incorrect intent detection&#x20;

AI Intent Assist does **not** generate responses on its own; it only improves intent identification.

# How Queries Are Processed

The behavior of the bot depends on which settings are enabled.

## Scenario 1: Only NLP (Default)

**Workflow:**

1. User sends a query&#x20;
2. NLP engine tries to match a predefined intent&#x20;
3. If matched → corresponding NLP flow is triggered&#x20;
4. If not matched → fallback or failure message is shown&#x20;

**Best for:**

- Simple, structured bots&#x20;
- Fixed menus and predictable queries&#x20;
- It can integrate complex APIs

## Scenario 2: Advanced NLP: NLP Workflow with AI Intent Assist On

**Workflow:**

1. User sends a query&#x20;
2. NLP engine attempts keyword-based intent matching&#x20;
3. If no intent is found:&#x20;
   - It passes to the AI Intent Assist, where AI analyzes the query&#x20;
   - Attempts to identify the closest matching NLP intent (based on intent name and description)&#x20;
4. If intent is identified → Matched NLP flow is triggered&#x20;
5. If still not identified → failure or fallback message&#x20;

**Important Notes:**

- AI is used only for **intent detection**, not response generation&#x20;
- AI Agent flows are **not used**&#x20;

**Best for:**

- Businesses that want better intent accuracy&#x20;
- Customers who do not want AI-generated responses&#x20;
- Improving NLP performance without changing bot behavior&#x20;

## Scenario 3: AI Agents

**Workflow:**

1. User sends a query&#x20;
2. Query is routed directly to **AI Agent flows**&#x20;
3. AI Agent determines how to respond using objectives and actions&#x20;
4. Response is generated by AI&#x20;
5. No NLP intents are used.

**Important Notes:**

- A default AI Agent flow will be created, and the user will have to update the Prompts for the Supervisor & Sub-Goal nodes.
- NLP intent detection is not used&#x20;
- The bot relies entirely on the AI Agent logic&#x20;
- NLP flows are preserved but inactive&#x20;

**Best for:**

- Fully GenAI-based bots&#x20;
- Bots designed for free-flow conversations&#x20;

## Scenario 4: Hybrid Bot - NLP Workflow & AI Agent

This is the most complete and flexible setup.

**Workflow:**

1. User sends a query&#x20;
2. NLP intent detection is attempted&#x20;
3. If no match:&#x20;
   - AI Intent Assist analyzes the query&#x20;
   - Attempts to map it to the closest NLP intent&#x20;
4. If an NLP intent is identified → NLP flow is triggered&#x20;
5. If no intent is identified:&#x20;
   - Query is routed to the AI Agent flows&#x20;
   - AI Agent generates the response and completes the flow.
6. If the AI Agent cannot handle and generate a response → fallback message is shown&#x20;

**Key Benefits:**

- Preserves structured NLP flows&#x20;
- Uses AI only when needed&#x20;
- Provides a safe fallback mechanism&#x20;
- Reduces hallucinations and incorrect answers&#x20;

**Best for:**

- Production bots&#x20;
- Gradual GenAI adoption&#x20;
- Combining structured flows with GenAI flexibility&#x20;
- New gen bots

# Current Limitations

- The platform currently supports **NLP-first with AI Agent fallback**&#x20;
- AI Agent–first with NLP fallback is **not supported**&#x20;
- Reason:&#x20;
  - NLP flows support richer UI components (CTAs, media, forms)&#x20;
  - AI Agent flows are still evolving toward feature parity&#x20;

**Once AI Agent flows support all NLP components, additional routing configurations will be introduced in a future release.**

# Choosing the Right Configuration

Use the table below to decide which settings to enable:

| **Use Case**                                                                       | **Recommended Settings**                                                 |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| **Only NLP Bot**: Use only NLP Workflows (No Gen AI Features) - Default Option     | AI Agents (Bot Mandate) = OFF<br />AI Intent Assist (Orchestrator) = OFF |
| **Advanced NLP:** Improve the intent accuracy of the NLP Bot, without AI responses | AI Agents (Bot Mandate) = OFF<br />AI Intent Assist (Orchestrator) = ON  |
| **Only AI Agents**: Build a Gen AI-based Bot without any NLP Workflows             | AI Agents (Bot Mandate) = ON<br />AI Intent Assist (Orchestrator) = OFF  |
| **Hybrid Bot:** NLP Workflows followed by AI Agents                                | AI Agents (Bot Mandate) = ON<br />AI Intent Assist (Orchestrator) = ON   |

# Best Practices

- Start with **AI Intent Assist** to improve NLP reliability&#x20;
- Add an **AI Agent** gradually for fallback and complex queries&#x20;
- Use AI Agent for:&#x20;
  - FAQs&#x20;
  - Knowledge-based queries&#x20;
  - Open-ended questions&#x20;
- Keep transactional and UI-heavy flows in NLP until the AI Agent supports full parity&#x20;

