> For the complete documentation index, see [llms.txt](https://help.bots.business/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.bots.business/start-here/ai-assistants.md).

# Use this help with an AI assistant

Give an AI assistant the Bots.Business documentation and ask for BJS examples with the correct runtime, command context, and callbacks.

Give your assistant the relevant Bots.Business pages before asking it to write BJS. Include the command's trigger, the expected result, and the libraries installed in your bot.

{% hint style="info" %}
**Want your AI assistant to work with your bots?**

[Connect Bots.Business MCP](/import-and-integrations/mcp.md) to let a compatible AI client inspect your bots and work on commands through an authorized account connection. The setup guide explains OAuth sign-in, read and write access, and how to check that the correct account is connected.

Use the documentation below to give the assistant the BJS reference and examples it needs for the task.
{% endhint %}

## Read the documentation

The published help offers a [documentation index](https://help.bots.business/llms.txt), a [full-text version](https://help.bots.business/llms-full.txt), and Markdown pages. Use the page actions when your reader exposes a Markdown or AI-copy option.

For clients that support a remote documentation MCP server, the help endpoint is:

{% code title="Read the documentation · Example 1" overflow="wrap" %}

```
https://help.bots.business/~gitbook/mcp
```

{% endcode %}

Its role is to search and read published documentation. It is different from [Bots.Business MCP](/import-and-integrations/mcp.md), which connects to an account and can expose product operations. Reading help does not require giving an assistant your bot token or account API key.

## Start with a specific request

{% code title="Start with a specific request · Example 2" overflow="wrap" %}

```
Use the current Bots.Business help to create a /name command.
It should ask for a name, wait for a text reply, and save that name
as a user property. Include the command fields, complete BJS,
a separate /cancel command, expected results, and source links.
Use Bots.Business BJS, including its actual runtime limitations.
```

{% endcode %}

For other tasks, state whether the command runs from a user message, Auto Retry, HTTP callback, webhook, or delayed job. That determines which values and methods are available.

## Check the answer before using it

* Follow its source links and check the exact method names and parameter types.
* Require all callback commands, not just the code that starts an operation.
* Check user, chat, and ID scope. Scheduled work may have no incoming user or chat.
* Check library installation and the documented provider version for integrations.
* Run a small example in a test bot, including the failure and cancellation paths.

Do not treat a syntax check as an execution test. A plausible-looking method from Node.js, a different Telegram library, or an old help page may not work in BJS.

## Useful starting pages

[Execution context](/bjs-reference/context.md), [Bot](/bjs-reference/bot.md), [HTTP](/bjs-reference/http.md), [properties](/bjs-reference/user-properties.md), [AdminPanel](/bjs-reference/admin-panel.md), and [errors](/bjs-reference/errors.md) explain common sources of incorrect generated examples.

If the assistant cannot read an endpoint, give it the relevant Markdown or page text. State the missing source instead of letting it infer an undocumented method.
