Why it matters
A JSON Schema (or Zod/pydantic model) for bot config catches missing intents, bad URLs and typo'd env keys before production traffic.
Practical steps
- Define required vs optional keys with documented defaults.
- Validate on boot and fail fast with a clear error.
- Keep .env.example in sync with the schema.
- Version the schema when you add breaking keys.
- Reject unknown keys in production to catch typos.
Watch out for
- Silent defaults that enable privileged intents.
- Schemas that accept http:// webhook URLs in prod.