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.
- 23Learn pages
- 1subtopics
- 10videos
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
- Coding agents in AL (8 pages)
More Learn pages
- Attachment capabilities and limitations (preview): Learn about the capabilities and limitations when working with attachments in agent tasks within the AI development toolkit in Business Central. Understand supported file types, size limits, and best practices for document processing.
- Best practices for designing an agent (preview): Explore how to design, test, and refine agents using the AI development toolkit. Follow these best practices to optimize your prototypes.
- Create a Sales Validation Agent: Learn how to create and use a Sales Validation Agent in the agent design experience to automate sales order validation tasks in Business Central.
- Create and activate an agent (preview): Learn how to create and activate an agent in Business Central to automate tasks, integrate AI, and enhance your workflows.
- Designing and coding agents (preview): Discover the AI Development Toolkit for testing AI capabilities in Business Central by building agents. Prototype, validate, and refine AI-powered solutions.
- Export and Import an agent configuration: Learn how to export and import agent configurations in the agent design experience to streamline your development process.
- Frequently asked questions (preview): Get answers to common questions about designing agents in Business Central, including integration, AI development toolkit access, scheduling, instructions, and capabilities.
- In the observatory: Codeunit 4315 “Agent Task Builder”
- Instruction keywords for an agent (preview): Learn about the instruction keywords you can use to guide the behavior of your agent in Business Central.
- Integrate with the Tasks AL API (preview): Learn how to integrate custom agents with common scenarios using the Tasks AL API in Dynamics 365 Business Central.
- Iterate and manage an agent (preview): Learn how to iterate and manage an agent designed in Business Central. Discover tools, logs, and customization options to optimize agent behavior.
- Run an agent (preview): Learn how to trigger an agent in Business Central. Optimize agent behavior with structured guidelines and clear steps.
- Set up agent permissions and profiles (preview): Discover how to configure agent permissions and profiles to control access and customize the user interface for sandbox environments.
- Transparency Note Business Central AI development toolkit (preview): Learn how the Business Central AI development toolkit empowers partners to prototype AI-powered agents, automate workflows, and enhance productivity responsibly.
- Understand agent visibility (preview): Learn what controls agent visibility in Business Central, including permissions, access controls, activation state, and archived agent behavior.
- Write effective instructions for an agent (preview): Learn how to author instructions for an agent in Business Central. Optimize agent behavior with structured guidelines and clear steps.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #10431 [Agent Archiving] Fix broken reference links to archived agents and their tasks (code change): “Links to an archived agent now open the Agent Card”
- #13761 SOA search selection adjustments (code change): “Sales Order Agent’s broader item search was adjusted”
- #13811 Enable custom agent task creation from the timeline (code change): “Custom agents now support creating tasks directly from the timeline”
- #13831 [Agent Design Experience] Use native Markdown for custom-agent instructions (code change): “Custom agent instructions now use the native Markdown field instead of a WebPageViewer”
- #14346 [Main] Expense Management: add partner extension events and make Create Expense Report public (code change): “Expense management adds integration events for partners to customize expense report”
- #14498 Return the saved description for accessible Agent Builder agents (code change): “Agent Builder agents returns the saved description for accessible agents”
- #14598 [Expense Agent] Corporate card transactions as expense report lines (code change): “new APIs.. The Card Expense Matches API finds a card expense”
- #14623 Allow agent eval suites to run on a selected model from UI (code change): “Agent eval suites now support selecting a model from the UI”
- #14651 Polish Business Skill Card guidance and activation visibility (code change): “Copilot and agents use name and description to find matching skills”
- #14695 Support Markdown files in Business Skills import (code change): “Support Markdown files in Business Skills import with YAML frontmatter parsing”
- #14848 Payables Agent V2: make Item References read-only for the agent (code change): “Agent evaluation tests showed 42 of 42 task stalls eliminated”
- #8967 Ability to archive agents (code change): “Agents can now be archived by admins from the Agent List”
- #9359 Sales Order Agent: ignore attachments larger than 25 MB during email retrieval (code change): “Sales Order Agent now ignores email attachments larger than 25 MB”
- #9910 [SOA] Move attachment processing to direct model reading (code change): “Sales Order Agent now processes PDF and image attachments directly with GPT-4”
- #137 Add community guidance and review support for Business Central agents (code change): “Business Central agent developers gain 20 community-authored guidance rules covering agent registration”
- #155 Add read-only AL development plan guidance (code change): “BCQuality introduces a provisional read-only contract for enriching AL development plans”
- #182 Add machine-readable review orchestration contract (code change): “BCQuality now generates a deterministic, machine-readable skill index from review frontmatter”
- #222 Add cited knowledge consultation skill for Business Central (code change): “A new knowledge consultation skill allows AL development agents to request guidance”
- #231 al-agents-review: derive the target BC version from app.json (code change): “al-agents-review skill now derives the target Business Central version from app.json”
- Step-by-Step Guide: Create Agents in AL Code (community post): “Building agents in Business Central AL involves creating setup tables”
- Step-by-Step Guide to Secure Business Central Agent Implementations in AL (community post): “secure AI agents in Business Central by implementing restrictive profiles”
- Agents in Business Central – part 1 – the architecture (community post): “create custom agents that process tasks asynchronously using an orchestrator architecture”
- Agents in Business Central – part 2 – the prompt (community post): “Building effective agents in Business Central requires well-structured prompts”
- Agents in Business Central – part 5 – Creating agent from code (community post): “create, configure, and register agents programmatically in Business Central using AL”
- Agents in Business Central – part 6 – The conclusion (community post): “compares agents built directly in Business Central with those created in Copilot Studio”
- Dynamics 365 Business Central: debugging agent sessions. (community post): “debug agent sessions directly from Visual Studio Code”
- Designing Agents for Business Central (community post): “Production agents require manual conversion to AL code”
- Business Central 2025 wave 2 (BC27.4): Envision and design AI agents in Business Central (Custom Agent) (community post): “users build custom AI agents that turn natural language goals into actions”
- Business Central 2026 release wave 1 (BC28.2): Change AI models for agents in the UI (community post): “agents use different AI models directly in the UI”
- What’s New: Working with Instructions for Agents in Business Central (video): “Agent Instructions Framework; task execution; task chaining in agent workflows”
- What’s New: AI Development Toolkit (2026 release wave 1) (video): “AI Development Toolkit; agent development and design”
- Introducing: Envision, Design and Code Business Central Agents (video): “agents; agentic ai; agent framework; permissions; profiles; instructions; agent design”
- Microsoft presents: Building and shipping agents in Business Central (video): “agents; agent configuration; permissions; profiles; instructions”
- What’s New: How To Create Agents in Business Central (video): “How To Create Agents in Business Central; agent creation; no-code configuration”
- 20260713 - From Zero to Agent Building agents in Business Central (video): “agents; custom agents; agent building; sandbox environment”
- Business Central Under the Hood episode 13: Inside the Agent Runtime (video): “agent runtime; task execution engine; agent memory; grounding; hallucination prevention”
- Getting Started With Agent Testing: Test Setup and Structuring (part 3) (video): “agent testing; test setup; data-driven tests; yaml configuration”
- Business Central Under the Hood episode 14: Building Agents in Business Central (video): “Custom agents; agent instructions; agent profiles; permissions; prompt engineering”
- What’s New: Business Central Agent Instruction History (video): “agent instruction history; autosave; version control; instruction playground; download instructions”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 23 Learn pages
- learnAI Models for Agents (preview)2026-12-01
- learnAttachment capabilities and limitations (preview)2026-10-02
- learnBest practices for designing an agent (preview)2026-10-02
- learnCoding agents in AL (preview)2026-10-02
- learnConfigure agents programmatically (preview)2026-10-02
- learnConvert an agent to AL code (preview)2026-05-03
- learnCreate a Sales Validation Agent2026-10-02
- learnCreate agent setup pages (preview)2026-10-02
Show 15 more
- learnCreate and activate an agent (preview)2026-10-02
- learnDefine and register an agent programmatically (preview)2026-10-02
- learnDesigning and coding agents (preview)2026-11-17
- learnExport and Import an agent configuration2026-10-02
- learnFrequently asked questions (preview)2026-10-02
- learnInstruction keywords for an agent (preview)2026-10-02
- learnIntegrate with the Tasks AL API (preview)2026-10-02
- learnIterate and manage an agent (preview)2026-10-02
- learnManaging agent tasks programmatically (preview)2026-10-02
- learnRun an agent (preview)2026-10-02
- learnSet up agent permissions and profiles (preview)2026-10-02
- learnThe ConfigurationDialog Page Type (preview)2026-05-03
- learnTransparency Note Business Central AI development toolkit (preview)2026-10-02
- learnUnderstand agent visibility (preview)2026-10-02
- learnWrite effective instructions for an agent (preview)2026-10-02