Introduction to BxAgents

A 29-lesson hands-on course that builds one support agent, from a model that needs no key to a packaged, tested agent with a web app, routines, people and secrets.

Introduction to BxAgents

Twenty-nine lessons, one agent. You install the CLI, start a scripted model that needs no account and no key, and build Acme support a lesson at a time: its instructions, a tool, a skill, subagents and profiles, then the web app, approvals, memory, routines, access control, a vault for secrets, per-person settings, logs and backups, tests, and a packaged .bxa. Every command in the course is replayed against the scripted model by a checker, and each lesson ends with a checkpoint you can restore if you get lost. Every lesson links back to the full Conventions reference for the deep dive; this course is the guided path through it.

Info

Each lesson tracks your progress in this browser (no account needed): visit a lesson and it's marked read, and Continue where you left off below picks up right where you stopped.

  1. Welcome to BxAgentsWhat you will build, how to follow along with no account and no key, and how each lesson is organized.
  2. What Is BxAgents?Why conventions over configuration, and why assembly happens once at build time.
  3. Installing BxAgentsInstall BoxLang and BxAgents, and verify the bxAgents command works.
  4. A Model That Needs No KeyStart a scripted stand-in for an AI model and build your first agent against it, with no account and no key.
  5. Scaffolding Your First AgentRun bxAgents new and see exactly what it creates for you.
  6. The Agent Definition - Agent.ymlThe one required file - a plain YAML file that says what your agent is.
  7. instructions.md and the System PromptThe optional file that becomes your agent's system prompt.
  8. Building Your AgentbxAgents build and the five-phase pipeline that turns your project into an app.
  9. Talking to Your Agentchat, invoke and serve - three ways in to the exact same built agent.
  10. Giving Your Agent ToolsAny @AITool-annotated function under tools/ becomes a callable tool.
  11. Packaging SkillsClaude Agent Skills - one subfolder per SKILL.md, loaded on demand.
  12. Models and ProfilesChoose the default model, set up other providers and name combinations such as fast and planner, all in Agent.yml.
  13. The Web AppServe the agent and meet the web app that comes with it - a chat, your conversations, the registry, settings and more.
  14. The Agent Asks FirstWhy a run stops for a person, who is allowed to approve it, and what Approve, Approve for the conversation and Reject do.
  15. What It Remembers, and for WhomTell conversation memory, a person's notes and the agent's own notes apart, and manage each from a terminal and from the web app.
  16. Composing SubagentsNested agents, each an ordinary BxAgents project of its own, wired as callable tools.
  17. Routines and ReportsMake a routine by asking, watch it run on the heartbeat, and read the report it saved.
  18. Scheduling Background Workschedules/*.bx - BoxLang schedulers, one file each, saying when with the task's own methods.
  19. Exposing Your Agent over HTTP and MCPgateways/ entries with an exposes key turn your agent into a real HTTP route.
  20. Connecting Chat PlatformsChannel-adapter gateways - nine chat platforms plus http/cli/mock, all one GatewaySession.
  21. Hosting and Consuming MCP ServersMCP in both directions - consume remote servers from Agent.yml, host your own under mcp/.
  22. Who Is AllowedMove from an open local server to named people with roles, and to access tokens for programs, and see what each can reach.
  23. Secrets the Agent May UseStore a credential once, let the agent use it only for named hosts, and see every use in an audit list.
  24. Each Person's Own SettingsLet a person change the agent for themselves without touching the project, and know who wins when two files disagree.
  25. Logs, Usage and BackupsAnswer three questions about a running agent - what is it doing, what does it cost, and can I get it back.
  26. Interceptors and Module DependenciesColdBox lifecycle hooks scoped by @scope, and BoxLang module dependencies under modules/.
  27. Testing Your AgentA ready-to-run TestBox suite, mockResponses(), and matchers built for agent behavior.
  28. Packaging, Deploying, and Wrapping UpPackage to a .bxa, ship it to a real target, and where to go from here.
  29. Ship Acme SupportProve the whole agent works as one, swap in a real model with two lines, and see where to go next.

The eight parts

PartLessons
StartWhat BxAgents is, installing it, a model that needs no key, your first project
The agentAgent.yml, the persona, building, and the terminal chat, invoke and serve
Teach itA tool, a skill, and fast and planner models
The web appServing it, approvals, memory and notes, subagents
On its ownRoutines and reports, and developer schedulers
Reach peopleHTTP and MCP, chat platforms, MCP servers and connectors
Run it for a teamAccounts and tokens, the vault, each person's settings, logs, usage and backups
Extend and shipInterceptors and extensions, tests, packaging and deploying, a capstone

Who this is for

Anyone who wants to build an AI agent without hand-wiring a framework's API surface: you describe an agent with files and folders, and bxAgents build assembles a real, runnable ColdBox application out of it. No prior BoxLang or ColdBox experience is assumed, though it helps, and you need no API key.

What you'll have built by the last lesson

Acme support: an agent with its own tool, a skill and two subagents, reachable from a terminal chat, a web app and an HTTP API, with a routine that saves reports, approvals where a person must say yes, notes, accounts and tokens, a vault, tests that run with no key, a backup, and a packaged .bxa ready to deploy.

Ready? Start with Welcome to BxAgents.

Edit this page Download Markdown Last updated Nov 26, 2026, 8:45:51 AM Report an issue