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

# Conversation AI Agent

> Set up a Conversation AI agent that automatically replies to customers, answers questions from your knowledge base, and books appointments over WhatsApp, SMS, and other channels connected through GoGHL.ai.

Imagine your WhatsApp replying to customers, answering their questions, and booking appointments on its own. With **Conversation AI Agents** and your **GoGHL.ai** channels, that's exactly what you get:

* A customer messages your business on **WhatsApp**
* The AI agent reads the message, understands the intent, and replies instantly
* If they want to book an appointment, it offers available slots from your calendar
* If they have a question, it answers from your **knowledge base**
* If it doesn't know the answer, it **hands off to a human**

All automatic, all on WhatsApp, from your own number connected via GoGHL.ai.

***

## Full Setup Video

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/3f35I9e5sWI?modestbranding=1&rel=0" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />

***

## Prerequisites

Before getting started, ensure you have:

* An active **GoGHL.ai** account with the marketplace app installed on your sub-account
* **WhatsApp connected** to the sub-account (see [WhatsApp Setup](/whatsapp/full-setup))
* **Conversation AI** enabled on your CRM plan
* A **calendar** configured in your CRM (required for appointment booking)

***

## Step 1: Open Conversation AI

<Steps>
  <Step title="Select Your Sub-Account">
    Log in to your CRM and switch to the **sub-account** you connected to WhatsApp via GoGHL.ai.
  </Step>

  <Step title="Go to AI Agents">
    In the left sidebar, click **AI Agents**, then open the **Conversation AI** tab.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/conversation-ai-dashboard.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=214fd01cd8123e28725d665cddf88736" alt="Conversation AI Agents dashboard" width="2880" height="1522" data-path="images/conversation-ai/conversation-ai-dashboard.png" />
</Frame>

The dashboard shows how your agents are performing: unique contacts handled, actions triggered, appointments booked, and time saved.

***

## Step 2: Create a Bot

<Steps>
  <Step title="Click Create Bot">
    Click the **+ Create Bot** button in the top-right corner.
  </Step>

  <Step title="Choose the Bot Type">
    Pick how you want to build your bot:

    * **Prompt Based Bot**: provide custom instructions (a prompt) for lead capturing, appointment booking, or general Q\&A. Recommended if you are comfortable writing prompts.
    * **Flow Based Builder**: a visual flow builder for advanced lead capturing and nurturing with complex logic and branching. Recommended for advanced users.

    <Frame>
      <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/create-bot-prompt-vs-flow.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=c88dae66669e5f1e301af3e3bc16a26e" alt="Choose between Prompt Based Bot and Flow Based Builder" width="2880" height="1502" data-path="images/conversation-ai/create-bot-prompt-vs-flow.png" />
    </Frame>

    This guide uses the **Prompt Based Bot**.
  </Step>

  <Step title="Pick a Template">
    Select a starting template and click **Continue**:

    * **General Q\&A**: answers common questions instantly; perfect for FAQs and quick resolutions
    * **Appointment booking**: helps customers select available slots and confirm appointments
    * **Marketplace Templates**: pre-built ConversationAI templates (agency admins only)
    * **Start from Scratch**: build a fully custom bot

    <Frame>
      <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/create-bot-templates.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=95fc568131aafc403353b4ef1e2aa404" alt="Pick a bot template" width="2880" height="1552" data-path="images/conversation-ai/create-bot-templates.png" />
    </Frame>
  </Step>
</Steps>

<Info>
  This guide follows the **Appointment booking** template, the most common use case for WhatsApp automation.
</Info>

***

## Step 3: Configure Bot Settings

<Frame>
  <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/bot-settings-channels.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=a7b2b0e027512f6b7e0621c55e1fcac1" alt="Bot Settings with channels selected" width="2880" height="1542" data-path="images/conversation-ai/bot-settings-channels.png" />
</Frame>

<Steps>
  <Step title="Name Your Bot">
    Give the bot a recognizable name, for example `WhatsApp Booking Assistant`.
  </Step>

  <Step title="Set the Bot Status">
    Choose the operating mode:

    * **Off**: Conversations AI is turned off
    * **Suggestive**: the bot suggests replies inside the chat window, and you decide what to send
    * **Auto Pilot**: the bot replies automatically based on its trained data

    <Frame>
      <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/bot-status-suggestive.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=5dad3fc2aaa6b4c4e0ccc78c7f6184fd" alt="Bot status options" width="2880" height="1546" data-path="images/conversation-ai/bot-status-suggestive.png" />
    </Frame>

    <Note>
      Start with **Suggestive** while testing, then switch to **Auto Pilot** when you're confident in the bot's replies.
    </Note>
  </Step>

  <Step title="Select Communication Channels">
    Under **Supported Communication Channels/Providers**, select the channels where the bot should be active. GoGHL.ai connects to your CRM as a conversation provider of type **SMS**, so select **SMS** for the bot to reply on your GoGHL.ai provider (WhatsApp QR, iMessage, and SMS Android). You can also enable **Live Chat**, **Chat Widget (SMS chat)**, **Instagram**, and **Facebook**.

    <Frame>
      <img src="https://mintcdn.com/goghl/D8C6k1Zwm9QSXMmn/images/conversation-ai/channels-sms-selected.png?fit=max&auto=format&n=D8C6k1Zwm9QSXMmn&q=85&s=0a378a50455d8feeb307bae9aaba3bc0" alt="SMS selected under Supported Communication Channels" width="1828" height="456" data-path="images/conversation-ai/channels-sms-selected.png" />
    </Frame>
  </Step>

  <Step title="Enter Your Business Name">
    Optionally set a **Business Name** (defaults to the location name). The bot uses it when referring to your business in replies.
  </Step>
</Steps>

***

## Step 4: Configure Auto-Pilot Mode

Fine-tune how the bot behaves when replying automatically.

<Frame>
  <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/bot-settings-autopilot.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=5a27557230db816c4f3d8727dcb10d6d" alt="Auto-pilot mode settings" width="2876" height="1552" data-path="images/conversation-ai/bot-settings-autopilot.png" />
</Frame>

* **Wait time before responding**: how long the bot waits before replying (seconds, minutes, or hours). A short delay lets customers finish typing multi-part messages.
* **Maximum messages a bot can send in a conversation**: caps bot replies per conversation to control AI usage and costs.
* **Also allow this bot to respond to**: enable **Images** and/or **Voice Notes** so the bot can understand them. These responses may take slightly longer and are supported only in Auto-Pilot mode.
* **Send bot to sleep when I send a**: pause the bot when a **Manual Message** or **Workflow Message** goes out. Enable both to pause on any outbound message, so the bot never talks over you or your existing workflows.
* **Response Settings**: enable **Response Style Settings** to choose how the bot writes: concise, balanced, or detailed.

Click **Save** when done.

***

## Step 5: Train the Bot

The bot answers from your **knowledge base**. Open the **Bot Training** tab to connect one.

<Steps>
  <Step title="Create a Knowledge Base">
    Click **Manage Knowledge Base** (or launch a new one from Bot Training), give it a name and an optional description, and click **Create**.
  </Step>

  <Step title="Add Content">
    Add sources the bot can learn from:

    * **Website**: import an **exact URL** or **all URLs in a domain**; pages are fetched and indexed automatically
    * **FAQs**: add question and answer pairs
    * **Tables**: structured data such as price lists
    * **Rich text**: free-form content
    * **Upload file**: documents like PDFs
  </Step>

  <Step title="Add a Knowledge Base Trigger">
    Back in **Bot Training**, click **Add Trigger**, choose your knowledge base (you can connect up to 7), and optionally add instructions such as:

    ```text theme={null}
    Use this knowledge base when the user asks about pricing and discounts
    ```

    <Frame>
      <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/bot-training-kb-trigger.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=028b5f2162785faf310d93a468e370e5" alt="Add a knowledge base trigger" width="2866" height="1542" data-path="images/conversation-ai/bot-training-kb-trigger.png" />
    </Frame>

    <Info>
      Instructions are optional; the agent autonomously decides when to use each knowledge base. Adding instructions makes routing more predictable.
    </Info>
  </Step>
</Steps>

***

## Step 6: Set the Bot's Personality and Goals

Open the **Bot Goals** tab to define how the bot talks and what it should achieve.

<Frame>
  <img src="https://mintcdn.com/goghl/iJktDt2CyPNRNJzI/images/conversation-ai/bot-goals-prompt.png?fit=max&auto=format&n=iJktDt2CyPNRNJzI&q=85&s=724b9c6605c0ae5a0dc14bf00e271e65" alt="Bot Goals with personality and prompt" width="2876" height="1518" data-path="images/conversation-ai/bot-goals-prompt.png" />
</Frame>

* **AI Model**: pick the model that powers the bot (for example, OpenAI GPT 4.1).

* **Personality**: describe the tone and role, for example:

  ```text theme={null}
  You are a friendly and professional customer assistant for {{ai.business_name}}.
  You help businesses connect their WhatsApp for automating messages,
  AI-powered replies, and multi-channel communication.
  ```

* **Goal**: what the bot should drive toward. With the Appointment booking template, the goal is to get customers to book an appointment; you can extend it, e.g. answer questions about features, pricing, setup, and integrations.

* **Additional Information**: conversation guidelines, for example:

  ```text theme={null}
  Conversation Guidelines:
  * Maintain a casual, purposeful, and concise tone.
  * Mirror the customer's language and manner of speaking.
  * Always identify the query type first: feature question,
    technical issue, billing question, or booking request.
  ```

***

## Step 7: Set Up Actions

Actions let the bot do more than chat. Configure them from the **Bot Goals** tab.

<AccordionGroup>
  <Accordion title="Appointment Booking">
    Connect a **single calendar** or **multiple calendars** and click **Proceed**. Then configure:

    * **Book via link**: send customers a booking link instead of booking in-chat (leave off to let the AI book directly)
    * **Pause bot response after booking**: stop the bot once an appointment is booked
    * **Trigger workflows after booking**: fire a workflow for confirmations or reminders
    * **Transfer to employee post appointment booking**: assign the conversation to a specific team member
    * **Allow the bot to cancel appointments** and **reschedule appointments**: enable both so customers can manage bookings entirely in chat
  </Accordion>

  <Accordion title="Update Contact Fields">
    Let the bot collect information during the conversation (for example, **city**) and automatically save it to the contact record. You can add new fields directly from this screen.
  </Accordion>

  <Accordion title="Stop Bot (Goodbye Detection)">
    When a customer says "bye", "goodbye", or "thank you, have a nice day", the bot stops responding. This also prevents wasted AI usage. Optionally set:

    * A **final message** (e.g. "Thank you for your time, have a nice day!")
    * **Reactivate bot** after a set number of minutes, hours, or days, or keep it off
    * A **custom tag** so you can track conversations where the bot stopped
  </Accordion>

  <Accordion title="Human Handover">
    Hand the conversation to a real person in three scenarios:

    1. **Human requested**: triggers on phrases like "I want to talk to a manager" or "I want to talk to a human". Assign the conversation to a specific user, and enable **Skip assigning if contact has an assigned user** to avoid reassigning.
    2. **Can't find relevant information**: the bot lacks an answer. Set a final message such as "I'm sorry, I don't have the answer to your question at the moment. I'm forwarding your request to our team and someone will get back to you within 24 hours."
    3. **Failed to resolve issue**: multiple attempts to resolve the issue have failed; the conversation is escalated to your team.

    <Tip>
      Pair human handover with GoGHL.ai [internal notifications](/automation/setup) to get pinged on WhatsApp or email the moment the AI can't answer, and jump in to reply yourself.
    </Tip>
  </Accordion>

  <Accordion title="Transfer Bot">
    Route the conversation to another bot: either a **default transfer** to your primary bot when this bot doesn't know the answer, or scenario-based transfers to specialized bots you've created.
  </Accordion>

  <Accordion title="Auto Follow-Ups">
    If a contact stops replying, the bot follows up automatically after the delay you set (minutes, hours, or days), with multiple follow-up steps if needed. If the contact says they're busy ("contact me after 15 minutes"), the bot honors the requested time.
  </Accordion>

  <Accordion title="Conversation Summary (Preferences)">
    Generate an automatic conversation summary when a conversation goes quiet for a set inactivity time, and send it to a **specific user** or a **custom email**.
  </Accordion>
</AccordionGroup>

***

## Step 8: Test Your Bot

Use the **Test Your Bot** panel (available on the Bot Settings, Bot Training, and Bot Goals tabs) before going live.

* Ask questions your customers would ask: pricing, features, booking a demo
* Try booking: the bot offers real slots from the calendar you connected
* Rate answers with the **like/dislike** buttons to flag wrong responses
* Open a reply's details to see the **prompt and intent used, chat history, and actions executed**

<Check>
  When answers look right, set the **Bot Status** to **Auto Pilot** in Bot Settings, click **Save**, and your WhatsApp AI agent is live.
</Check>

***

## Best Practices

* Start in **Suggestive** mode and review the bot's suggestions before enabling Auto Pilot
* Keep your knowledge base focused: connect separate knowledge bases for pricing, support, and product info with clear trigger instructions
* Set a sensible **maximum messages** cap to control AI usage
* Enable **goodbye detection** to avoid unnecessary replies
* Always configure **human handover** so customers are never stuck with a bot that can't help
* Enable **send bot to sleep on manual message** so the bot never interrupts your team's conversations

***

## Troubleshooting

**Bot doesn't reply on WhatsApp**

* Make sure you have money in your wallet (check **View credits** in the top bar). Without balance, Conversation AI will not work.
* Confirm **SMS** is selected under Supported Communication Channels (GoGHL.ai is a conversation provider of type SMS)
* Check the bot status is **Auto Pilot** (in Suggestive mode it only suggests, never sends)
* Verify your WhatsApp number is connected in GoGHL.ai (see [WhatsApp Setup](/whatsapp/full-setup))

**Bot gives wrong or empty answers**

* Check the knowledge base finished indexing your website pages
* Add trigger instructions so the right knowledge base is used
* Tighten the Personality and Additional Information prompts

**Appointments not booking**

* Ensure a calendar is connected in the Appointment Booking action
* Confirm the calendar has available slots

***

## Support

If you need help setting up your Conversation AI agent:

* Reach out via **WhatsApp Chat**
* Contact [**support@goghl.ai**](mailto:support@goghl.ai)

***

## FAQ

<AccordionGroup>
  <Accordion title="Does the bot reply from my own WhatsApp number?">
    Yes. The bot replies through the WhatsApp number you connected to your sub-account via GoGHL.ai, on any channel you enable.
  </Accordion>

  <Accordion title="Which channel do I select for the bot to reply on WhatsApp?">
    Select **SMS**. GoGHL.ai connects to your CRM as a conversation provider of type **SMS**, so the bot must be active on the SMS channel to reply on your GoGHL.ai provider (WhatsApp QR, iMessage, and SMS Android).
  </Accordion>

  <Accordion title="Can I run different bots for different purposes?">
    Yes. Create multiple bots (e.g. one for Q\&A, one for booking) and use the **Transfer Bot** action to route conversations between them. You can also set one bot as the **Primary Bot**.
  </Accordion>

  <Accordion title="Will the bot interrupt me when I reply manually?">
    Not if you enable **Send bot to sleep when I send a Manual Message** in Auto-pilot settings. The bot pauses whenever you step into the conversation.
  </Accordion>

  <Accordion title="Can the bot handle images and voice notes?">
    Yes. Enable **Images** and **Voice Notes** under Auto-pilot mode. These replies may take slightly longer and are supported only in Auto-Pilot mode.
  </Accordion>
</AccordionGroup>

***

You're now ready to run a fully automated WhatsApp AI agent using **GoGHL.ai + Conversation AI**.
