# Tasks

Tasks are the building blocks of Workflows. [floatz AI](https://app.floatz.ai) answers each task, in a smart [order](https://docs.app.floatz.ai/hashtag-advanced/tasks/task-linking), [showing](https://docs.app.floatz.ai/hashtag-advanced/tasks/task-output) the answers when necessary or required.

Each task has the following structure:

```
#task: name
#optionalheader
#optionalheader
...
AI prompt
```

* `name` The name of a task can be alphanumeric, both lower and uppercase, as well as contain underscore \_ . Purely numerical names are supported such as: `#task: 1`
* `optionalheader` Each task supports several settings. Each header can be used to change the AI behaviour, create task dependencies and so on. If no header is specified, the Workflow executes the AI prompt using the [global navigation settings](https://docs.app.floatz.ai/hashtag-advanced/globals).
* `AI prompt` The prompt that will be answered by[ floatz AI](https://app.floatz.ai) for the given task.

Each Workflow can contain multiple tasks. For example, we can create a Workflow with two tasks:

```
#task: 1
how are you?

#task: 2
who built you?
```

These tasks will be executed in order, and each answer will be streamed in the chat session by [floatz AI](https://app.floatz.ai).&#x20;

In case of multiple tasks, all answers will be shown unless task linking is present and defined in an optional header.

We will explore in the [next section](https://docs.app.floatz.ai/hashtag-advanced/tasks/task-linking) how tasks can be linked between each other in order to create a more complex behaviour.&#x20;
