> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/ai-chatbots-and-automation/quick-start/how-to-create-a-chatbot-from-scratch.md). Agents can also search and read this documentation through its [MCP server](https://guide.tiledesk.com/~gitbook/mcp).

# How to create a chatbot from scratch

#### Intro <a href="#intro" id="intro"></a>

This tutorial will show you how to start creating a no-code bot from scratch and have fun at the same time! Don't believe it? Continue to read or watch the video.

{% embed url="<https://www.youtube.com/watch?v=mezSQWQpVe0>" %}

#### Step 1: Log in to Your Tiledesk Account <a href="#step-1-log-in-to-your-tiledesk-account" id="step-1-log-in-to-your-tiledesk-account"></a>

1\. Open your web browser and navigate to the Tiledesk platform (<https://www.tiledesk.com/).\\>
2\. Log in to your Tiledesk account using your credentials.\
3\. Once logged in, go to the "Bots" section in the Tiledesk dashboard.

#### Step 2: Create a New Bot from Scratch <a href="#step-2-create-a-new-bot-from-scratch" id="step-2-create-a-new-bot-from-scratch"></a>

1\. In the "Bots" section, click on the "Add from Scratch" button to start creating your chatbot.

#### Step 3: Setting Up the Start Message <a href="#step-3-setting-up-the-start-message" id="step-3-setting-up-the-start-message"></a>

1\. Upon creating a new bot from scratch, you'll see two default blocks: "Welcome" and "DefaultFallback."\
2\. Start by setting up your chatbot's initial message. Click on the "Welcome" block to edit its content. This is the message that users will see when they initiate a conversation with your chatbot. Customize it to provide a warm welcome or any relevant information.

#### Step 4: Creating New Blocks and Paths <a href="#step-4-creating-new-blocks-and-paths" id="step-4-creating-new-blocks-and-paths"></a>

1\. Now, let's create a conversation flow for your chatbot. Begin by drawing paths from the exit ports of existing blocks to create new blocks with specific actions.\
2\. Click on the exit port of a block (e.g., the "Welcome" block) and drag it to an empty space on the canvas to create a new block.\
3\. A menu will appear, allowing you to choose a specific action for this block. You can choose actions such as "Send message" or "If Online Agent."\
4\. After selecting an action, you can name your block to keep your conversation flow organized and easily understandable.

#### Step 5: Handling Online Agent Availability <a href="#step-5-handling-online-agent-availability" id="step-5-handling-online-agent-availability"></a>

1\. To handle scenarios when an online agent is available, draw a path from the "Online" exit port of a block.\
2\. Create a corresponding block by choosing the "Agent Handoff" action. This block will handle interactions when a live agent is online.

#### Step 6: Handling Offline Agent Availability <a href="#step-6-handling-offline-agent-availability" id="step-6-handling-offline-agent-availability"></a>

1\. To handle situations when an online agent is not available, draw a path from the "Else" exit port of a block.\
2\. Create a second block by choosing the "Send message" action in this case. This block will be used to provide an offline message to the user.\
3\. Customize the content of the "Send message" block to convey a message or offer assistance even when no live agent is available.

#### Step 7: Continue Creating Blocks <a href="#step-7-continue-creating-blocks" id="step-7-continue-creating-blocks"></a>

1\. You can continue to create as many blocks as needed to build a complex chatbot conversation flow.\
2\. On the left side of the Tiledesk Design Studio, you'll find a list of all your blocks, making it easy to navigate and edit them as necessary.

#### Step 8: Test Your Chatbot <a href="#step-8-test-your-chatbot" id="step-8-test-your-chatbot"></a>

1\. Once you have created your chatbot's conversation flow, it's important to test it thoroughly to ensure it behaves as expected.\
2\. You can test your chatbot by simulating user interactions in the Tiledesk platform (top green button) or [by integrating it into your website](https://guide.tiledesk.com/web-integrations.md) or messaging channels.

That's it! You've successfully created a chatbot from scratch using Tiledesk Design Studio. You can further refine your chatbot's behavior, add more complex logic, and [integrate it with various channels](https://guide.tiledesk.com/apps-and-integrations/whatsapp-business.md) to provide efficient customer support and engagement.


---

# 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://guide.tiledesk.com/ai-chatbots-and-automation/quick-start/how-to-create-a-chatbot-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.
