Custom Commands
Custom commands let you add your own !shoutout, !menu, !rules (and so on) without writing code.
Creating a Command
- Dashboard โ Commands โ + New custom command
- Pick a trigger (e.g.
!menu) - Pick the platforms it should run on
- Write a response template
- Save and test
Variables
You can interpolate dynamic values into your responses:
| Variable | Replaced 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:
{{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
Rules for {{group}}:
1. Be kind.
2. No spam.
3. English only on weekends.!weather (custom version)
Weather for {{arg}}: {{ai:Give the current weather for the city "{{arg}}" in one short sentence.}}