BotNetwork

Command bus for chat intents

map slash/text intents to command handlers with authz hooks

Guide1 min readUpdated

Why it matters

Map slash/text intents to command handlers with authz hooks.

Practical steps

  1. Draw the boundary for arch command bus: what belongs in the bot process vs a worker.
  2. Implement map slash/text intents to command handlers with authz hooks behind a narrow interface so platforms can share it.
  3. Make arch command bus idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch command bus.
  5. Document failure modes and ownership of arch command bus for on-call.

Watch out for

  • Copy-pasting outdated snippets for arch command bus without re-reading current official docs.
  • Shipping arch command bus to production without a staging rehearsal and a documented rollback.

Related comparisons and tools