All PlatformsFeaturesUpdated May 22, 2026

Custom Commands

Create your own slash commands with variables, conditions, and multi-step flows โ€” no code required.

Custom Commands

Custom commands let you add your own !shoutout, !menu, !rules (and so on) without writing code.

Creating a Command

  1. Dashboard โ†’ Commands โ†’ + New custom command
  2. Pick a trigger (e.g. !menu)
  3. Pick the platforms it should run on
  4. Write a response template
  5. Save and test

Variables

You can interpolate dynamic values into your responses:

VariableReplaced with
{{user}}The user who triggered the command
{{group}}The group name
{{time}}Current local time
{{date}}Today's date
{{arg}}First argument passed to the command
{{args}}All arguments joined with spaces
{{ai:prompt}}Inline call to the AI provider with the given prompt

Conditions

Show different responses based on rules:

text
{{if arg == "menu"}}
Our menu: pasta, salad, pizza.
{{else if arg == "hours"}}
We're open 9am to 9pm.
{{else}}
Try `!info menu` or `!info hours`.
{{end}}

Multi-Step Flows

For onboarding flows (e.g. !signup), define multiple steps in the dashboard's Flow Builder. Each step can:

  • Send a message
  • Wait for the user's reply
  • Validate the input (regex)
  • Save the value to a per-user variable
  • Branch based on the reply

Examples

!rules

text
Rules for {{group}}:
1. Be kind.
2. No spam.
3. English only on weekends.

!weather (custom version)

text
Weather for {{arg}}: {{ai:Give the current weather for the city "{{arg}}" in one short sentence.}}
Was this page helpful? Found a typo? Open an issue.Edit this page on GitHub

Related guides

Need more help?

Browse more guides, the FAQ, or start using BotWave now.