> For the complete documentation index, see [llms.txt](https://boxlang.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boxlang.ortusbooks.com/boxlang-ai.md).

# BoxLang AI

- [Overview](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai.md): BoxLang AI gives you chat, agents, tools, memory, RAG, MCP, and enterprise governance through one fluent API across the leading AI providers.
- [Chat & Structured Output](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/chat-and-structured-output.md): Chat with AI models using aiChat, stream responses, and get typed, validated structured output from classes and templates.
- [Agents](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/agents.md): Build AI agents with instructions, tools, memory, skills, and MCP servers, and control runs in flight.
- [Tools & Skills](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/tools-and-skills.md): Let AI models call your code with tools, share tools through a registry, and inject reusable knowledge with skills.
- [Memory & RAG](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/memory-and-rag.md): Give AI memory across conversations, isolate it per user, and ground answers in your own documents with embeddings, vector stores, and RAG.
- [MCP](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/mcp.md): Consume tools from any MCP server, expose your own tools as an MCP server, and give agents live access to a running BoxLang runtime.
- [Governance & Security](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/governance-and-security.md): Govern AI in production with middleware, guardrails, prompt-injection defense, human approval, and audit trails.
- [Multimodal](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/multimodal.md): Generate images, convert text to speech and back, translate audio, and search the web from BoxLang with provider-agnostic APIs.
- [Browser Agents](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/browser-agents.md): Give BoxLang AI agents a real browser with bx-playwright: they visit pages, read accessibility snapshots, click, fill forms, and report back.
- [Providers & Gateways](https://boxlang.ortusbooks.com/boxlang-ai/boxlang-ai/providers-and-gateways.md): Use the AI provider you want, from OpenAI and Claude to local models, and connect agents to the channels your people use with gateways.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://boxlang.ortusbooks.com/boxlang-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
