skill-agent-task-patterns

Document Agent SDK task patterns for Business Central AL code units.

99|28|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-agent-task-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-agent-task-patterns
Source: https://github.com/javiarmesto/ALDC-AL-Development-Collection/tree/main/claude-plugin/skills/skill-agent-task-patterns
Command: npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-agent-task-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Knowledge base for all Agent SDK task integration patterns. Use this to understand how to create, manage, and extend agent tasks in Business Central.

Core Features & Use Cases

  • SDK Codeunits for Task Management: overview of agents, builders, and message handlers to create and manage tasks programmatically.
  • Integration Patterns: Public API, Page Action, Business Event, Attachment Task, Multi-Turn Conversation, Lifecycle Management, Agent Session Detection, and Agent Session Event Binding.
  • Governance & Best Practices: guidance on filtering, error logging, and ensuring external IDs and attachments are handled correctly.
  • Use Case Scenarios: demonstrates common workflows for creating tasks, updating task messages, and handling task lifecycle in AL extensions.

Quick Start

Review the Agent Task Pattern patterns to implement a reusable API for creating and managing agent tasks in your Business Central extensions.

Frequently Asked Questions about skill-agent-task-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create agent tasks programmatically in Business Central?

To create agent tasks in Business Central, use the Agent SDK codeunits for task management, builders, and message handlers to construct and manage tasks programmatically within your AL extensions.

What are the integration patterns for Business Central agent tasks?

Business Central agent task integration patterns include Public API, Page Action, Business Event, Attachment Task, Multi-Turn Conversation, Lifecycle Management, and Agent Session Event Binding for standardized AL workflows.

Can I handle multi-turn conversations and attachments with Business Central agent tasks?

Yes, the Business Central Agent SDK supports multi-turn conversations and attachment tasks through dedicated integration patterns, allowing AL codeunits to manage complex messaging flows and file attachments.

What are the best practices for managing agent task lifecycle in AL extensions?

Best practices for managing agent task lifecycle in AL extensions involve applying governance rules for filtering, error logging, and ensuring external IDs and attachments are handled correctly across all event flows.

Do I need specific AL codeunits to implement event-driven agent task triggers?

Yes, implementing event-driven agent task triggers requires referencing specific AL codeunits and utilizing the Agent Session Event Binding and Business Event patterns to structure the event flows correctly.

Why are my Business Central agent tasks failing to update task messages?

Agent task message updates may fail if the AL codeunit message handlers do not correctly process external IDs or if governance rules for error logging and filtering are not properly applied.