> ## Documentation Index
> Fetch the complete documentation index at: https://docs.botflow.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started

> Sign up, create a workspace, connect your first bot and build your first flow in a few minutes.

In a few minutes you will walk through the basic setup and launch your first bot. You will need a bot token
from [@BotFather](https://t.me/BotFather).

> [!NOTE]
>
> An account has three levels: **company** (the top level) → **workspace** (a space for a group of bots and
> a team) → **bots**. The company is created automatically when you sign up and you become its owner. The
> workspace and the bots you add yourself, so a bot is connected inside a workspace rather than straight
> into the account.

## Step by step

**1. Sign up**

Create an account at [botflow.cc](https://botflow.cc) and confirm your email through the link in the
message. Your company is created together with the account and you become its owner.

**2. Create a workspace**

Open the "Workspaces" section and create a new workspace. It is a space for a group of bots and a team
(for example, "Marketing"). Bots, broadcasts, campaigns and access grants live inside a workspace, so
different projects of the same company never overlap.

**3. Get a token from @BotFather**

Message [@BotFather](https://t.me/BotFather), send the `/newbot` command and set a name and a username.
You will get a token that looks like `123456:ABC...`. Copy it in full.

**4. Connect the bot to the workspace**

Open the workspace, go to "Bots", press "Connect" and choose "Bot". Paste the token and press "Connect"
again. The bot appears in the workspace list and is created switched off.

**5. Build your first flow**

Open the bot's flow builder and add a "Start condition" block with the `/start` command and a welcome
message. Drag an arrow to the next "Dialog state" block to continue the conversation. More in
[Flow builder](https://docs.botflow.cc/en/constructor.md).

**6. Switch the bot on**

A new bot is created switched off while you are setting up the flow. Open the bot settings and move the
activity toggle to "On": the bot will start replying to subscribers.

> [!NOTE]
>
> While the bot is switched off it does not react to messages. This is deliberate, so subscribers don't land
> in an unfinished flow. Switch the bot on when the flow is ready.

> [!TIP]
>
> The same "Connect" menu has a "Telegram account" item: it connects a regular Telegram account using a QR code
> or phone number, and your team chats with people on its behalf. Telegram accounts can be connected when the
> company has money on its balance. More in [Telegram accounts](https://docs.botflow.cc/en/telegram-accounts.md).

## How the account is organised

The company is the top level: team, domains, tracker and billing. A workspace groups the bots of one project
together with its broadcasts, campaigns and access grants. Bots live inside a workspace, and a member's
access is granted at the workspace level and applies to all of its bots. The levels are shown in
[Overview](https://docs.botflow.cc/en/index.md); for roles and members see [Settings](https://docs.botflow.cc/en/settings.md).

## What your first flow is made of

A flow is built in the [Flow builder](https://docs.botflow.cc/en/constructor.md) from blocks joined by arrows. The main types:

* **Start condition** is the entry point. It fires on a command or a match (for example, `/start`).
* **Dialog state** is a step of the conversation. Moving on happens only through an arrow you have dragged
  to the next block.
* **Fallback** fires when no start condition matched, and it does not knock the subscriber off the current
  step. You can also send someone into it deliberately: with an arrow or a branch of a "Condition" block.
  Then it becomes an ordinary step for them.
* **Condition** branches the funnel by the subscriber's data: tags, deposits, country, variables. Branches
  are checked top to bottom and the first matching one wins.
* **AI operator** runs a live conversation: it leads the subscriber to the block's goal and picks the
  transition itself. Set it up on the [AI operator](https://docs.botflow.cc/en/ai-operator.md) page.
* **Draft** is a placeholder block. It does not fire until you switch it to an active type.

> [!TIP]
>
> You can substitute variables into block texts and captions: `{{first_name}}`, `{{username}}` and others.
> Tokens are written in Latin exactly as they are. The full list is in [Variables](https://docs.botflow.cc/en/variables.md).

## How to reply to subscribers by hand

Besides automatic replies from the flow builder, you can chat with subscribers yourself. The conversation
section is the **Messenger**, opened from the bot menu as "Messages". It shows every dialog, its history and
media. You reply by hand or hand the dialog over to the AI operator. The "Move to block" button moves a
subscriber to another block of the funnel manually: an ordinary block sends its content, an AI dialog block
hands the conversation to the AI, and a "Condition" block picks where to send the subscriber next. More in
[Messenger](https://docs.botflow.cc/en/messenger.md).

## What's next

> [card] [Flow builder](https://docs.botflow.cc/en/constructor.md)
>
> Blocks, conditions, arrows, variables and media.

> [card] [AI operator](https://docs.botflow.cc/en/ai-operator.md)
>
> A live conversation that leads the subscriber to the goal.

> [card] [Messenger](https://docs.botflow.cc/en/messenger.md)
>
> Reply to subscribers by hand or through the AI.

> [card] [Tracker and campaigns](https://docs.botflow.cc/en/tracker.md)
>
> Bring traffic into the bot and count conversions.

> [!NOTE]
>
> You can invite your team and set up access in [Settings](https://docs.botflow.cc/en/settings.md), and top up the balance in
> USDT-TRC20 in [Billing](https://docs.botflow.cc/en/billing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.