> 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). Agents can also search and read this documentation through its [MCP server](https://guide.tiledesk.com/~gitbook/mcp).

# 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="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FIpqZmCXyNpN5VgsZNB7q%2FGuide%20Articles%20(1).gif?alt=media&amp;token=b422d54b-db3d-4052-83c7-1e34e791b972" 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.

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

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FFxozXYKfRsbggxzbWeHJ%2FGuide%20Articles%20(2).gif?alt=media&amp;token=242302b4-8b78-4602-aa3d-4658f28c9235" 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 "[Send message](https://guide.tiledesk.com/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="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FkqEoIrdQ9Z6CBGkQRVtk%2FGuide%20Articles%20(3).gif?alt=media&amp;token=6b76d906-335a-4eeb-8132-e5644de65814" 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](https://guide.tiledesk.com/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 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/visual-builder-101/how-to-create-a-block.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.
