generalbots/botbook/src/04-basic-scripting/keyword-add-bot.md
Rodrigo Rodriguez (Pragmatismo) 037db5c381 feat: Major workspace reorganization and documentation update
- Add comprehensive documentation in botbook/ with 12 chapters
- Add botapp/ Tauri desktop application
- Add botdevice/ IoT device support
- Add botlib/ shared library crate
- Add botmodels/ Python ML models service
- Add botplugin/ browser extension
- Add botserver/ reorganized server code
- Add bottemplates/ bot templates
- Add bottest/ integration tests
- Add botui/ web UI server
- Add CI/CD workflows in .forgejo/workflows/
- Add AGENTS.md and PROD.md documentation
- Add dependency management scripts (DEPENDENCIES.sh/ps1)
- Remove legacy src/ structure and migrations
- Clean up temporary and backup files
2026-04-19 08:14:25 -03:00

1.2 KiB

ADD BOT Keywords

Dynamically add bots to a session with specific triggers, tools, or schedules.

Keywords

Keyword Purpose
ADD BOT ... WITH TRIGGER Add bot activated by keyword
ADD BOT ... WITH TOOLS Add bot with specific tools
ADD BOT ... WITH SCHEDULE Add bot on a schedule
REMOVE BOT Remove bot from session

ADD BOT WITH TRIGGER

ADD BOT "sales-bot" WITH TRIGGER "pricing"

When user mentions "pricing", sales-bot activates.

ADD BOT WITH TOOLS

ADD BOT "data-bot" WITH TOOLS "database,spreadsheet,charts"

ADD BOT WITH SCHEDULE

ADD BOT "report-bot" WITH SCHEDULE "0 9 * * MON"

Adds bot that runs every Monday at 9 AM (cron format).

REMOVE BOT

REMOVE BOT "sales-bot"

Example: Multi-Bot Setup

' Set up specialized bots for different topics
ADD BOT "orders-bot" WITH TRIGGER "order status, shipping, delivery"
ADD BOT "support-bot" WITH TRIGGER "help, problem, issue, broken"
ADD BOT "sales-bot" WITH TRIGGER "pricing, quote, purchase"

TALK "I've set up our specialist team. Just ask about orders, support, or sales!"

See Also