AL SDK
Developer documentation for extending Smart Agents in AL (Application Language) for Business Central
This section provides developer documentation for extending the Smart Agents Business Central extension using AL (Application Language). You can add custom data sources, define new agent behaviors, and integrate Smart Agents with your own BC customizations.
Overview
The Smart Agents BC extension exposes several extensible components:
- Codeunits — Core business logic and integration points with subscribable events
- Pages — UI components within Business Central that can be extended
- Tables — Data structures for agent configuration and state
- Events — Business events that fire during agent processing, allowing custom logic injection
- Interfaces — Extensibility interfaces for plugging in custom data providers
Prerequisites
To extend the Smart Agents extension, you need:
- Visual Studio Code with the AL Language extension (v12.0 or later)
- A Business Central development environment (sandbox or Docker)
- The Smart Agents extension installed as a dependency in your
app.json - Familiarity with AL development for Business Central
Adding the Dependency
Add the Smart Agents extension as a dependency in your app.json:
{
"dependencies": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Smart Agents",
"publisher": "Qualia AI",
"version": "1.0.0.0"
}
]
}SDK Sections
- Architecture — Understand the extension's internal architecture and extensibility model
- Extending Agents — Add custom data sources, event subscribers, and agent behaviors
- Code Examples — Complete, working AL code examples for common extension scenarios
Auto-Generated Reference
Detailed API reference documentation for all public objects (codeunits, pages, tables, and enums) will be generated from AL source code using ALDoc and published here alongside the general availability release. In the meantime, the Code Examples section provides working AL code for all common integration scenarios.