Create commands with an AI assistant
Point an external AI assistant to the official DomDimaBot docs so it can draft chat commands with accurate syntax, permissions, and test steps.
Most AI assistants that can open public web pages—including GPT, Grok, Gemini, and Kimi—can read these docs directly. Point it to the documentation index first. Every page also includes a Read Markdown link at the bottom that serves the exact same text, tables, and examples as plain text.
Want an AI app to read or edit your channel directly instead of just drafting commands? See Connect AI apps to Dima.
Files the assistant can read
Section titled “Files the assistant can read”| File | What it gives the assistant |
|---|---|
/llms.txt | The English documentation index with plain-text links to every page—start here. |
/es/llms.txt | The Spanish documentation index. |
/llms-full.txt | Every English page bundled into a single large file. |
/es/llms-full.txt | Every Spanish page bundled into a single large file. |
/<page>/index.txt | Any individual guide in plain text (for example, /dashboard/index.txt), also linked via Read Markdown at the bottom of each page. |
Every plain-text page includes its live web URL so the assistant can cite its sources accurately. Single pages work best for focused questions, while the full-site files are handy if your assistant handles large documents comfortably.
A prompt you can use
Section titled “A prompt you can use”Help me create a custom command for DomDimaBot.Read https://docs.domdimabot.com/llms.txt and follow the relevant links first.I want: [describe the command and an example chat message].My plan: [Free, Premium, or Pro].Who can use it: [everyone, subscribers, moderators, or broadcaster].Create it through: [Twitch chat or the dashboard].Explain the response body, setup, expected output, and how to test it.Cite the pages you used. Ask about missing requirements, and do not inventfunctions or use another bot's syntax. If you cannot read a page, tell me.If your assistant can’t browse the web, open the relevant Read Markdown links yourself and paste their contents straight into the chat.
References to read before writing a command
Section titled “References to read before writing a command”| What you need to check | Where to read |
|---|---|
| Creating, editing, or restricting a command | Commands overview |
| Arguments, variables, strings, and conditionals | AST syntax and data |
| Available functions and exact parameter lists | AST functions reference |
| Execution rules, error handling, and limits | AST execution |
| Proven examples and ready-to-adapt patterns | AST recipes |
If your command touches TTS, triggers, or rewards, have the assistant read that feature’s guide as well—never assume a function takes the same parameters as a similarly named chat command.
Getting a ready-to-use answer
Section titled “Getting a ready-to-use answer”- Spell out the command’s goal, expected arguments, allowed user roles, and your plan tier. If the command saves data, specify whether values are per channel or per viewer and how long they should persist.
- Keep it as plain text when dynamic logic isn’t needed. When you do need dynamic behavior, stick strictly to DomDimaBot syntax:
$(...)calls a function,%(...)reads a saved variable, and&p1reads the first chat argument. Placeholders from other bots (like{user}) won’t work. - Ask for the command name, response body, cooldown, and user level broken out separately. If you’re creating it in chat, ask for the full
!cccommand too—remember that the name passed to!ccomits!, while viewers include!when running the command. - Double-check every function’s parameters, storage lifetime, plan requirement, and limits in the references above. Initialize any stored variable before reading it, and lock down commands that moderate chat or change channel settings.
- Ask for a sample input alongside its expected output—plus what happens on the first run or when arguments are missing. Treat these as expected results only; never assume an assistant actually ran the command unless you tested it yourself.
Keep in mind that any function or command checks an assistant runs are simulations only. They can’t verify that a Twitch username exists, that your Twitch API access and authorization are active, that a native shoutout will be accepted, or that a clip will play on a connected overlay—nor do they track real Twitch rate limits, delivered chat messages, or live cooldowns. Use simulations strictly as a syntax sanity check, then verify the command live in your channel. Note that the default !so command includes a guard that prints usage text and skips the announcement, native shoutout, and clip when a target is missing or unrecognized. Also, a quoted announcement message containing interpolation can work fine live even if a simulation can’t resolve Twitch data—don’t reject valid runtime behavior based on simulated output alone.
Worked example: a welcome command
Section titled “Worked example: a welcome command”Goal: let viewers type !hello and receive a greeting with their username.
| Setting | Value |
|---|---|
| Name | hello |
| Response body | Hello $(user)! Welcome to the stream. |
| Cooldown | 10 seconds |
| User level | everyone |
As the broadcaster—or a moderator allowed to create commands—send this in your Twitch chat:
!cc -cd=10 -ul=everyone hello Hello $(user)! Welcome to the stream.Alternatively, enter those fields in the dashboard’s Commands editor, putting only the response body (not the entire !cc line) into the response field.
When a viewer named Alex types !hello, the expected reply is:
Hello Alex! Welcome to the stream.This example relies on the documented $(user) function and needs no extra arguments or stored variables. Test it right in your chat after saving—verify the command is enabled and wait out the cooldown between test runs. To edit an existing command from chat later, use !ec as shown in the commands overview.
How these files work
Section titled “How these files work”Every site build generates the index and plain-text guides directly from the same English and Spanish documentation sources. Each plain-text file carries its canonical URL for citations and direct links that assistants can follow without JavaScript or logging in.
Making docs readable doesn’t guarantee an AI provider has indexed them or that every generated command is bug-free. Hand your assistant the index URL directly, ask it to cite the exact pages it opened, and always test the result in your channel before relying on it live.