topic hubCopilot & Agentsofficial - Microsoftunreviewed - model text not yet checked

Designing and coding agents (preview)

Designing and coding agents (preview) covers how to design, prototype, run, and manage custom AI agents in Business Central with the AI development toolkit, and how to move them to AL. It answers questions about instructions, permissions, profiles, tasks, attachments, visibility, export/import, and the Tasks AL API.

Path: Integration with AI > Designing and coding agents (preview) · tier official · system copilot · narrative unreviewed (model text not yet checked)

Overview

This section describes the AI development toolkit, a sandbox environment where developers, product owners, and consultants prototype agents by configuring instructions, tasks, permissions, and profiles. Once the design works, the agent can be built as a production solution with AL extensions. The pages cover the whole lifecycle: creating and activating an agent, writing instructions, running tasks, iterating with logs and version history, and moving configurations between sandboxes.

Start with the overview page and “Create and activate an agent”, then read the instruction pages (effective instructions, instruction keywords, best practices). Permissions and profiles, attachment limits, agent visibility, and the FAQ are reference pages for specific questions. The Sales Validation Agent page is a worked example of a preconfigured agent. The Transparency Note explains the toolkit’s intended use and limits.

When the prototype is ready, the “Integrate with the Tasks AL API” page and the “Coding agents in AL” subtopic (8 pages) cover defining and registering agents in AL, setup pages, creating and managing agent tasks, converting prototyped agents to AL, and AI model selection.

Key points

  • The AI development toolkit (version 27.2) is a sandbox for prototyping agents by configuring instructions, tasks, permissions, and profiles before building with AL extensions.
  • Agent permissions are the intersection of the user’s and the agent’s permissions, so an agent never exceeds the privileges of the user who schedules it.
  • Profiles use page customization properties such as ClearActions and ClearLayout to control what the agent sees and can do in the UI.
  • Attachments to agent tasks support PDF, PNG, and JPG, with file size limits and a 10-page PDF limit. Custom document handling can use Azure AI Document Intelligence and the Agent Task Builder and Agent Task Message Builder codeunits.
  • Tasks can be started manually from the Agent Tasks page or programmatically through the Tasks AL API from UI actions and business events.
  • The Agent Task Log, log entry details, the page accessibility view, and instruction version history with comparison and rollback support troubleshooting and refinement.
  • Agent configurations (identity, instructions, permissions, profile) can be exported and imported as XML between sandbox environments.
  • Agent avatar visibility in the role center depends on app installation, Copilot capability status, agent and user permissions, and archiving state (28.1).

Subtopics

More Learn pages

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 23 Learn pages

Show 15 more