---
title: Create a Gen AI Bot
slug: intelligent-chat-agent/create-a-gen-ai-bot
docTags: 
createdAt: 2025-09-29T06:36:57.761Z
---

This comprehensive user manual guides you through the process of developing a Gen AI Chatbot using the Bot Designer. It covers the architectural overview, step-by-step construction, common use cases, and essential best practices to ensure optimal performance.



### 1. Introduction to the Gen AI ChatBot

The Gen AI ChatBot is engineered with a sophisticated two-tiered architecture:

- **Delegator (Bot Settings)/ Supervisor:** This is the bot's central intelligence. It analyzes user input to identify the correct objective (user intent) and directs the query to the appropriate "Goal." The Delegator can also respond directly if it possesses sufficient context.
- **Individual Goals (Outcomes):** These are specialized agents that handle specific user queries. They effectively replace traditional Natural Language Processing (NLP) intents by allowing the Delegator to dynamically determine the user's intention based on conversational context. Currently, the architecture supports a single level of goals, meaning sub-goals are not permitted.

When you select either the Delegator or a specific Goal in the Bot Designer, a side-panel appears, providing access to three crucial configuration tabs: **Objectives**, **Settings**, and **Tools**.

![](https://api.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/pnIKtv2Y8__aj3oPGWCBA_.blob)

### 2. Constructing Your Gen AI ChatBot



Building your Gen AI ChatBot involves a systematic configuration process of the Delegator and its associated Goals.

2.1 Defining Core Bot Instructions

Begin by outlining the fundamental instructions for your bot within the Delegator's **Objectives** and **Rules** fields. It's important to understand that while these are presented as separate fields, their content is combined and fed to the Gen AI bot as a **single, unified input**. This input must be comprehensive, including all necessary bot instructions and any references to tools, to ensure accurate and relevant execution.

::Image[]{src="https://app.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/eDPX1rfgNLs0tIpCRLdSw_.blob" size="50" width="872" height="1332" position="center" showCaption="false"}

2.2 Adding and Naming Goals



Next, you will add Individual Goals to your bot. This is done by selecting the "Add Subgoal" option within the Delegator's interface.

For each new goal you create, navigate to its Settings tab and provide a short, crisp Name. This naming convention is crucial as it helps the Delegator quickly and accurately identify the correct objective during a live conversation.

::Image[]{src="https://app.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/cOV7ulxHQpshIjkd_US6d_.blob" size="50" width="880" height="1342" position="center" showCaption="false"}

2.3 Configuring Goal Instructions



Within each Goal, access the **Objectives** tab to outline specific instructions pertinent to that particular outcome. These instructions guide the goal on how to process user queries and interact with tools.



2.4 Enabling and Configuring AI Agent Tools



To empower your goals to interact with external functions, toggle the AI Agent switch to ON within the Goal's Settings tab.



::Image[]{src="https://app.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/W-MJY0jvRKQetiloV3EqL_.blob" size="50" width="876" height="1338" position="center" showCaption="false"}

Once enabled, you can configure external tools in the Tools tab. The Bot Designer supports two primary types of tools: ExoMind and APIs. A single goal can be configured to utilize multiple tools.

**Key Tool Configuration Details:**

- **Name:** Provide a clear and concise **Name** for your tool. Crucially, **tool names cannot contain spaces**. The AI agent uses this name to decide when to invoke the tool.
- **Description:** Write an accurate and detailed **Description** of what the tool does. This description is vital for the AI agent to understand the tool's functionality and determine its relevance to a user query.

For an **API** tool, you will need to specify additional details:

- **URL:** The endpoint for your API call.
- **Request Type:** Currently, only JSON-based REST API calls are supported.
- **Arguments:** The parameters required by your API.
- **Headers:** Any necessary HTTP headers for the API request.
- **Response Variable:** The variable that will store the API's response.

::Image[]{src="https://app.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/K-EWuCY3EUYW5_cBdTUka_.blob" size="50" width="872" height="1328" position="center" showCaption="false"}

2.5 Advanced Tool Use: Force Action and Make Mandatory

- **Force Action:** Located in the Goal's **Settings**, the **Force Action** toggle is used for scenarios where an external data call is absolutely essential. When enabled, it compels the goal to call its configured tool at least once before generating a response for the user.
- **Make Mandatory:** Also found in the Goal's **Settings**, the **Make Mandatory** toggle is used if the bot must fulfill this specific goal during every user session.



### 3. Common Use Cases



The Gen AI ChatBot architecture is ideally suited for complex conversational flows that demand context-aware delegation and integration with external functionalities.

- **Customer Support & Information Retrieval:** Configure goals to delegate queries to an API to fetch real-time information, such as order status, account balances, or product availability. Alternatively, use an ExoMind tool to retrieve information from a knowledge base.
- **Forced Action Scenarios:** For situations where an external data call is non-negotiable (e.g., checking inventory before confirming an item's stock), enable **Force Action** for the relevant goal to ensure the necessary API call is executed.



### 4. Best Practices for Optimal Performance



Adhering to these best practices will significantly enhance your Gen AI ChatBot's performance, accuracy, and maintainability.

- **Instruction Clarity:** Feed all necessary instructions, including explicit references to tools, into the Delegator's **Objectives** and **Rules** fields. The more comprehensive and clear your instructions, the better the bot will understand its role and execute tasks.
- **Concise Goal Naming:** Use **short and crisp names** for your goals. This makes it easier for the Delegator to quickly and accurately identify the correct objective for any given user query.
- **Precise Tool Configuration:** The tool's **Name** and a detailed **Description** are critical for the AI agent's decision-making process. Ensure these are accurate and unambiguous. Remember that tool names **cannot contain spaces**.
- **Leverage ExoMind for Accuracy:** When retrieving information from a knowledge base, prioritize using **ExoMind**. A key advantage of ExoMind is that prior results are *not* included in the chat history shared with the Large Language Model (LLM). This leads to a **smaller prompt size** for the LLM, which generally translates to **increased accuracy** and more efficient response generation.
- **Advanced API Handling with Functions:** For complex API interactions, such as those involving nested JSON request bodies or the need to parse nested key-value pairs from a response, it is a best practice to use **in-house functions** to manage the API logic. Avoid attempting to configure these complexities directly within the Bot Designer's API fields, as this can lead to errors and reduced maintainability.

