> For the complete documentation index, see [llms.txt](https://docs-en.dmflow.chat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-en.dmflow.chat/getting-started/create-publish-your-chatbot.md).

# Creating and Publishing a Bot

Creating a chatbot with DMflow\.chat is a simple and intuitive process, accessible to both technical and non-technical users. With a few easy steps, you can quickly set up a chatbot and start enjoying its benefits.

You can also create chatbots for various tasks, achieving any bot functionality you desire, based on your capabilities.

### Prerequisites: <a href="#xian-jue-tiao-jian" id="xian-jue-tiao-jian"></a>

You must first create a tenant or be invited by a tenant owner. To create a tenant owner, please refer to the [DMflow.chat registration page](https://app.dmflow.chat/auth/register)

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252FSvum96oFSqU9U1UvoLMK%252Fcreate-bot.png%3Falt%3Dmedia%26token%3Dcfca17af-f3bd-4044-86ac-91df402d3c0c&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=dfef055e&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Creating a Bot

Once created, you can design your bot by navigating to 'Conversation Flow'.

Testing the Bot

In 'Conversation Flow', click 'Test' at the top to open a window displaying the respective channel windows.

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252FNhqMXqUmTBYfrXFGlyP4%252Fbot-test-button.png%3Falt%3Dmedia%26token%3D141b0cfe-3ef1-481e-9ae1-3ce89ede11c1&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=b3a4808f&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Conversation Flow Testing

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252FF8r9KwkCfwCRpzKH9GP5%252Fbot-test-demo.png%3Falt%3Dmedia%26token%3D3792b76d-81f0-4ffb-aa88-fb97580d0516&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c43dafac&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Testing Options

You can configure test variables based on scenarios (different application areas), perspectives (different channels), and whether to use called functions during testing.

### Publishing the Bot <a href="#fa-bu-ji-qi-ren" id="fa-bu-ji-qi-ren"></a>

Click 'Save' (second from the left in the same row as the 'Test' button) to add a development version of the bot. Then, in the 'Conversation Flow' section, find 'Publish' to synchronize it to the production version.

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252FwYzhSD9jBOTiGukJNhoA%252Fpublish-bot.png%3Falt%3Dmedia%26token%3D29429f92-f62e-496c-acc7-f6b406a971e0&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1600ff64&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Publish

### Select Channel <a href="#xuan-qu-qu-dao" id="xuan-qu-qu-dao"></a>

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252F6bJaFJc3zE7ihRPch1Ob%252Fbot-channel-choose.png%3Falt%3Dmedia%26token%3Da0b73a98-cd61-42f1-b6b4-31c51debfed0&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=97202a1c&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Select Channel

Currently, we support LINE, Messenger (Facebook), Telegram, Instagram, WebChat, and WhatsApp.


---

# 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://docs-en.dmflow.chat/getting-started/create-publish-your-chatbot.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.
