> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/beginning-of-work/how-to-add-messenger/connecting-a-channel-to-a-script.md).

# Connecting a channel to a script

In order for the bot to start working in the channel, go to the scenario settings by clicking on the "settings" button in the left menu. In the window that opens, select the channels in which the script should work. By default, all channels will be connected to the script:

![](/files/nIOtGepEJKviMX2qSrLI)

The "Connect all channels" checkbox means that the script will work, not only in all channels connected at the moment, but also in those that will be connected in the future.&#x20;

New channels will be added to this script automatically.

To test the bot in a channel, simply click on the channel link and write a start message that the script should respond to. In an onboarding script, this could be a "hello" or "introduction" message.

![](/files/0LV3r0xLgN3aCMrNFwNr)![](/files/5fXFXYmrGJJJ0z9tnEB8)

{% hint style="success" %}
Congratulations! You launched your first bot  :thumbsup:
{% endhint %}

Now we can move on to more advanced scripting.


---

# 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:

```
GET https://docs.smartbotpro.io/beginning-of-work/how-to-add-messenger/connecting-a-channel-to-a-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
