> 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/visual-builder-101/how-to-create-a-block.md).

# How to Create a Block

One of the essential aspects of designing your AI Agent’s workflow is understanding how to use **Blocks**.\
Blocks are the core elements of your AI Agent’s conversation, and you can connect them together to create engaging interactions.\
In this tutorial, we’ll walk you through the process of creating a basic AI workflow using Blocks in Tiledesk.

<figure><img src="/files/ViysiTJ1tmZHrRJAljBM" alt=""><figcaption></figcaption></figure>

In Tiledesk, AI Agent conversations are built using blocks. Blocks are the fundamental elements of an AI workflow.

On the left side of the Tiledesk interface, you’ll find a toolbar. Click on the "AI" icon.\
A dropdown menu will appear.&#x20;

From this menu, select an action such as [ChatGPT Task](/ai-chatbots-and-automation/actions-explained/chatgpt-task.md) \
Actions are the key components of your blocks.

<figure><img src="/files/yQkpClhmvkLqggR7cBsz" alt=""><figcaption></figcaption></figure>

Drag the "ChatGPT task" action from the toolbar into the visual builder, also known as the Design Studio, and drop it wherever you’d like on the canvas.

Congratulations! You have now created a new Block.

To create another block, start by drawing a path from the exit port.\
This action will open the same dropdown menu you used earlier to select an "Action."

Choose an "Action" from the menu that will form your second block. This action could be a "[Reply](/ai-chatbots-and-automation/actions-explained/reply-action.md)," "Condition," or any other option that fits your AI Agent’s workflow.

Once you select the action, another block will automatically be created in the canvas.

<figure><img src="/files/KMUHzvHqtcDDyYzJfP2m" alt=""><figcaption></figcaption></figure>

Once you’re satisfied with your AI Agent’s workflow, you can launch it and make it available to users on your website or any other platform.

Check out our installation guides here: [Web Integrations](/web-integrations.md)

Congratulations! You've successfully created a basic conversation flow for your AI Agent using Blocks in Tiledesk. You can continue to build upon this foundation to create more complex and engaging interactions.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guide.tiledesk.com/ai-chatbots-and-automation/visual-builder-101/how-to-create-a-block.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
