# Bot in Gallabox

Ready to explore the world of chatbot creation in Gallabox? Whether you're starting from scratch or leveraging our diverse templates, follow these simple steps to effortlessly craft, edit, and enhance your bots for impactful and engaging customer interactions. Let's dive in and master the art of chatbot creation!&#x20;

### Create a Bot in Gallabox

You can create a Bot in Gallabox using three options - Build with AI, Use a Template, or Start from Scratch.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FJiLTHIj7gpuKxUPxDLXN%2FCreate%20a%20Bot.gif?alt=media&#x26;token=8983e946-40d9-4d6f-ad68-075c1bb0c0f6" alt=""><figcaption></figcaption></figure>

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Create a Bot using AI</td><td><a href="bot-in-gallabox/create-a-bot-using-ai">create-a-bot-using-ai</a></td></tr><tr><td>Create a Bot using Template</td><td><a href="bot-in-gallabox/create-a-bot-using-bot-templates">create-a-bot-using-bot-templates</a></td></tr><tr><td>Create a Bot from scratch</td><td><a href="bot-in-gallabox/create-a-bot-from-scratch">create-a-bot-from-scratch</a></td></tr></tbody></table>

### Edit or Update a Bot

After creation of the bot, you can edit the details like the **Bot Name, or** the **time** you want the bot to wait for the response from the user after the last question you asked, or the **message** you want to share with the customer after the wait time, or the **action** you want the bot to do at the end of the conversation. Follow the below GIF to get an understanding.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FzyjxVyi7gQxzuqhYug9u%2Fbot%20settings.gif?alt=media&#x26;token=41df9d48-a8e6-47f8-bc2d-396498b59401" alt=""><figcaption></figcaption></figure>

### Clone a Bot

To clone a bot, follow these steps:

1. Find the bot you wish to clone within your list of bots. Click on the 'Clone Bot' option for the bot you selected. The entire bot, including all its flows and settings, will be duplicated. The new bot will have 'copy of' prefixed to its name.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FFsCfMKm1nH99WqeEUJyS%2FDuplicate%20Bot.gif?alt=media&#x26;token=d40778ac-2af0-4b93-8413-aaa0900a8183" alt=""><figcaption></figcaption></figure>

3. All connectors, templates, and actions are retained within the same account. All the flows in the duplicated bot will be in the draft state. You will have to publish them individually.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F33yLMjw2EUN2YOaFaspq%2FAll%20copied%20flows.gif?alt=media&#x26;token=f45f098b-26b3-4d10-8bba-385d476d2dc7" alt=""><figcaption></figcaption></figure>

4. Log data and session data will be cleared in the cloned bot.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FDz5kjly8LOhE77A8IBVa%2FBot%20Logs%20-%20Copied%20Bot.gif?alt=media&#x26;token=4c7a5a0d-5b3f-4bdf-8c08-772b959599b5" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
If the bot being cloned is a default bot, the cloned bot will **not** be marked as a default bot.
{% endhint %}

Copying a bot in Gallabox keeps its settings and data unchanged.

### Bot Logs

**Logs** provides an overview of different flows details like the flow name, associated intents, last published date, session completion statistics, and overall status. This summary allows users to track the performance and status of various flows within Gallabox.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2Fm0LbyTlE9zFTv8xKk3aS%2Fbot%20Logs.png?alt=media&#x26;token=31b2abee-64b0-40fa-93ce-c96402a0c26c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When the Bot limit for the plan you are subscribed to has been reached and you would want more number of Bots in your account, reach out to the support team  on **<support@gallabox.com>**.&#x20;

<img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FGNgFvK1RsZIwy0B7BBAE%2FFlow-%20limit.gif?alt=media&#x26;token=8107186d-3293-4712-879f-6be8a86d1fd4" alt="" data-size="original">
{% endhint %}

### Voice-enabled bot

Gallabox now supports **voice input and output** for bot interactions. Here’s how you can configure and use it effectively.

{% hint style="info" %}
"Voice" refers to a note recorded directly in WhatsApp, not an audio file like a song or an externally.&#x20;
{% endhint %}

To enable the voice for your bot, check for the toggle under the Custom Configurations while creating a Bot.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F1vUifislOhrqqD1rQ2vt%2FVoice%20Bot%20Configuration.gif?alt=media&#x26;token=50f24e31-6f48-4e61-ab6e-a86c006a898f" alt=""><figcaption></figcaption></figure>

<details>

<summary>Nodes That Accept Voice Input But Don’t Use It for Response Validation</summary>

[Ask Location](https://docs.gallabox.com/bots/ask-questions/ask-location) and [Ask File](https://docs.gallabox.com/bots/ask-questions/ask-file) cards can accept voice input. However, voice input will not be considered a valid response to the questions for these two nodes.&#x20;

</details>

<details>

<summary>Nodes That Support Voice Input and Matching</summary>

For the following nodes, Gallabox will transcribe the voice input, match it to the correct option, select it, and store the result in a variable (if applicable):

1. [Ask Button Option](https://docs.gallabox.com/bots/ask-questions/ask-button-option)
2. [Ask List Option](https://docs.gallabox.com/bots/ask-questions/ask-list-option)
3. [Ask Keyword Option](https://docs.gallabox.com/bots/ask-questions/ask-keyword-option)
4. [Ask Collection List](https://docs.gallabox.com/bots/ask-questions/ask-collection-list)

</details>

<details>

<summary>Asking Questions as Voice Messages</summary>

The following **Ask nodes** now support delivering the question as a **voice message** instead of text:

1. [Ask text](https://docs.gallabox.com/bots/ask-questions/ask-text)
2. [Ask number](https://docs.gallabox.com/bots/ask-questions/ask-number)
3. [Ask phone](https://docs.gallabox.com/bots/ask-questions/ask-phone)
4. [Ask email](https://docs.gallabox.com/bots/ask-questions/ask-email)
5. [Ask date](https://docs.gallabox.com/bots/ask-questions/ask-date)
6. [Ask location](https://docs.gallabox.com/bots/ask-questions/ask-location)
7. [Ask URL](https://docs.gallabox.com/bots/ask-questions/ask-url)
8. [Ask File](https://docs.gallabox.com/bots/ask-questions/ask-file)

These nodes support **three modes** of question delivery:

<table><thead><tr><th width="155.25">Mode</th><th>Description</th></tr></thead><tbody><tr><td><strong>Text</strong></td><td>The question is sent as regular text</td></tr><tr><td><strong>Static Voice</strong></td><td>Record and send a pre-recorded voice message</td></tr><tr><td><strong>Dynamic Voice</strong></td><td>Type your message (with optional variables), select a voice style, and Gallabox will generate and send it as a voice message</td></tr></tbody></table>

</details>

<details>

<summary>Sending Voice Notes with a Bot</summary>

To send a voice note to the user:

1. Use the **Send Voice** card in your bot flow.
2. Choose between:
   * **Static Voice**: Upload or record a voice note manually.
   * **Dynamic Voice**: Enter your message as text (can include variables), select a voice type, and Gallabox will convert it to audio and send it to the customer.

</details>

<details>

<summary>Intent Matching with Voice</summary>

If a bot is configured to accept voice input:

1. Gallabox will transcribe the voice message.
2. The transcription will be used for **intent matching** within the flow logic.

</details>

### Delete Bot

Deleting a bot can impact active conversations, automation flows, and channel assignments. To prevent disruption, Gallabox introduces **warnings, validations, and restrictions** based on the bot’s role in your workspace.

Depending on whether the bot is set as a **default** for any channel or not, the deletion flow varies:

<details>

<summary>Deleting a Non-Default Bot</summary>

A confirmation popup will appear showing active conversations tied to the bot. You must choose what to do with these:

* [x] Move to **Unassigned**
* [x] Mark as **Resolved**

The **Delete** button will remain disabled until one of these options is selected. If there are **0 active conversations**, the options won’t appear and deletion is allowed directly.

**On successful deletion:**

Conversations are moved as per your choice. Logs are updated in both **Conversation Report** and **Activity Log**.

</details>

<details>

<summary>Deleting a Default Bot (Blocked)</summary>

1. If a bot is set as default for any WhatsApp channel, deletion will be blocked.

You’ll see a message like this:

> Delete "bot name"> \
> 🛑 Heads-up
>
> This bot is currently set as the default for the following channels.> \
> Channel Name 1,Channel Name 2> \
> You must change your assignment before proceeding.
>
> Go to assignments

A **Go to Assignments** button is provided for quick redirection.

</details>
