> For the complete documentation index, see [llms.txt](https://gallabox.gitbook.io/gallabox-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gallabox.gitbook.io/gallabox-docs/bots/bot-in-gallabox/create-a-bot-from-scratch.md).

# Create a Bot from Scratch

### Overview

Building a bot from scratch in Gallabox gives you complete control to design conversations tailored to your business needs. You can create unique bot flows, define custom messages, capture user inputs with variables, and set up actions like pushing data to your CRM. Start with a blank canvas, map out your ideal customer journey, and fully personalize the bot to deliver seamless interactions.

### Prefer watching than reading? Watch the below YouTube Video:

{% embed url="<https://youtu.be/MhRs_iAfVEI>" %}

### Prefer reading? Read the steps below:

To create a Bot from scratch, choose the option. In the side window, fill in the Bot Name, Configure the nudge for the bot, and custom configurations.

**What if the contact didn't respond to the bot's questions?**

1. Add the session out Time for the Bot in ***How long the bot can wait for reply?***

<figure><img src="broken://files/JQ0CoXvmd4EHatKaf8DE" alt=""><figcaption></figcaption></figure>

2. Add the session Message for the Bot in ***What should the bot say to contact after the designated wait time?***

<figure><img src="broken://files/8WhcE0maAi7M6CFzNzSx" alt=""><figcaption></figcaption></figure>

3. Add the action once the Bot session expires in ***What should the bot do after the designated wait time?***

<mark style="background-color:yellow;">You can choose from 8 actions:</mark> *<mark style="background-color:yellow;">**Assign Conversation to Users**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Assign Conversation to Team**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Assign Conversation to Contact Owner**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Unassign Conversation**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Resolve Conversation**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Update Conversation Tag**</mark><mark style="background-color:yellow;">,</mark>* *<mark style="background-color:yellow;">**Remove Conversation Tag**</mark><mark style="background-color:yellow;">, and</mark>* *<mark style="background-color:yellow;">**Push to Sequence**</mark><mark style="background-color:yellow;">.</mark>*

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FuGKaHLU58uZZvbDLoz8E%2FAction%20post%20Bot%20session%20expiration.gif?alt=media&amp;token=4b46a91d-713a-4ed6-a722-e7745fdb3b1a" alt=""><figcaption></figcaption></figure>

**Custom Configurations**

To accept the messages and send the messages in [voice ](#voice-enabled-bot)- **Toggle On** the Accept voice messages also as input option.

![](broken://files/wFXb6X8ZF3I7yNOaC4gk)

Once the bot is created, you can add **multiple** flows in any bot to create a well-flourished conversational chatbot.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FybqzVSuFUglY33q8EJPQ%2FAdd%20numerous%20flows%20in%20a%20Bot.gif?alt=media&amp;token=e7b7f3d5-58af-4be5-804d-08b4bd6914df" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gallabox.gitbook.io/gallabox-docs/bots/bot-in-gallabox/create-a-bot-from-scratch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
