Edit

Share via


Create and activate a playground agent (preview)

[This article is prerelease documentation and is subject to change.]

Important

  • This is a preview feature.

  • Preview features aren't meant for production use and might have restricted functionality. These features are subject to supplemental terms of use, and are available before an official release so that customers can get early access and provide feedback.

  • This article is primarily intended for product owners, domain experts, consultants, and developers who want to experiment with AI capabilities in Business Central using the Agent playground.

You can create an agent in the Agent playground to test various AI functionalities, such as automating tasks and integrating AI into your workflows. An agent can be given specific instructions and tasks to see how it performs in different scenarios. The agent is considered as a user in Business Central, so it can be assigned permission sets to control what data and actions it can access.

Learn more about the Agent playground in Agent playground overview (preview).

Prerequisites

Before you can create an agent in the agent playground, ensure that you have the following prerequisites in place:

  • Enable the Custom Agent capability in Business Central. Learn more in Configure Copilot and agent capabilities.
  • Appropriate permissions to access and use the Agent playground in Business Central. This must include the "AGENT - ADMIN" and the "AGENT - DIAGNOSTICS" permission sets assigned to your user.
  • A sandbox environment for testing and experimentation from version 27.2 (can include customer data such as sandbox copies of production data)
  • Billing setup for agent capabilities in your tenant. Learn more in Manage consumption billing for agents (preview).

Getting started

Creating an agent involves several key phases: design, configuration, and testing. You start by defining your agent's identity and purpose, then specify its behavior through natural language instructions. The agent needs appropriate permissions and user profiles to interact with your Business Central environment safely and effectively.

The development process is iterative by design. You can continuously refine your agent's instructions, adjust what it has access to via its profile and permissions, and test different scenarios until it performs as expected. The Agent playground provides tools to monitor the agent's reasoning and actions, making it easy to identify areas for improvement and validate that the agent meets your requirements.

Turn on the Agent playground capability

The Agent playground capability is on if the Playground agent create new Agent icon appears in the top navigation menu of the role center.

If the icon isn't present, turn it on from the Copilot & agent capabilities page, like other Copilot features in Business Central. The Agent playground is listed under Production ready previews. Learn more in Configure Copilot and AI agent capabilities.

Next, configure, and activate the agent to get started.

Configure a playground agent

The Create agent (preview) wizard allows you to configure your playground agent by setting up its instructions, profile, and permissions. The wizard is also where you enable the agent for use, once it's set up.

  1. In the navigation bar at the upper right of the role center, select Playground agent create new Agent > Create.
  2. In the Create agent wizard, choose whether to create a blank agent or use a template.
  • To create a blank agent, choose Create agent from scratch, and then choose Next.
  • To use a template, choose Sales Validation, choose Next, and then choose Create agent. The template provides a starting point with predefined instructions and tasks focused on sales order validation. The next steps describe how to customize the agent further. Learn more in Create a Sales Validation Agent (preview).
  1. On the Create agent (preview) wizard, enter a Name and Display Name and Initials field values are now suggested based on the Name, but can be modified. Playground agent setup
  2. In the Description field, provide an optional description for the agent.
  3. Under Instructions for the agent, use the Edit instructions option to provide a clear and concise description of what you want the agent to do. This serves as the prompt that guides the agent's behavior. Learn more in Write effective instructions for a playground agent (preview).
  4. Choose the arrow to go to the next page of the wizard.
  5. Under Profile (role), use the Setup profile option to select the profile that determines what UI elements the agent can see and interact with.
    You can create custom profiles specifically for agents, using page customization properties to control visibility of actions, layouts, views, and operations like insert/delete. Learn more in Set up playground agent permissions and profiles (preview).
  6. Under Permissions, use Manage permissions to add the permissions that the agent should have.
    This allows you to define what data and actions it can access. This is important for ensuring that the agent operates within the boundaries of your organization's data security policies. Learn more in Set up playground agent permissions and profiles (preview).
  7. Use the arrow to go to the previous page of the wizard.
  8. Turn on the Active toggle.
  9. Select Update to complete the setup.

The Agent icon changes to Playground agent icon after configured, indicating the agent is active and ready to handle tasks.

Accessing agent settings after creation

You can access and modify the settings of an existing playground agent either from the icon Playground agent icon or by navigating to the Agents (preview) page and selecting the agent you want to configure.

In the Agents (preview) page, choose the agent, and either open the Agent Card (preview) , or use the Setup while standing on the agent to modify and the Create agent (preview) wizard opens.

In the Copilot chat pane for the specific agent, choose the Playground agent settings icon icon to open a Configure agent (preview) wizard.

Understanding agent states

An agent is by default in the Disabled state. You must activate the agent to use it, but you can only activate it after you have defined its purpose and tasks. Working on the setup, you can switch the agent between Disabled and Active states as needed.

Note

To modify the permissions of an agent, you must first deactivate it.

Overview (preview)
Agent playground (preview)
Write effective instructions (preview)
Instruction keywords (preview)
Integrate with the Tasks AL API (preview)
Set up permissions and profiles (preview)
Run a playground agent (preview)
Iterate and manage (preview)
Best practices (preview)
Create a Sales Validation Agent (preview)
Transparency note: Business Central agent playground