Modern Dynamics 365 applications often require intelligent automation to reduce manual effort and improve customer experience. Agent Nodes in Copilot Studio Agent Flows allow an existing AI agent to be invoked as part of a workflow. The flow can pass information to the agent, receive a structured response, and use that response in subsequent actions. In this example, a customer support email is analyzed by an agent, and the result is used to create a Dynamics 365 Case.
Key Takeaways
- Add an AI agent to Copilot Studio Agent Flows using the Run an agent
- Pass dynamic email subject and body to the agent at runtime.
- Use Text + JSON to return structured AI outputs.
- Automatically classify customer emails by category and priority.
- Use AI-generated results to create Dynamics 365 Cases.
- Replace manual triggers with automated email or business-event triggers in production.
Business Scenario
A customer support team receives requests that need to be classified before a Case is created. The requirement is to automatically analyze the incoming request and determine the appropriate routing information.
- Identify the case category, such as Billing, Technical, Sales, or General.
- Determine the priority: Low, Medium, High, or Critical.
- Generate a short summary of the customer’s issue.
- Use the AI-generated information while creating a Dynamics 365 Case.
Step 1: Create an Agent Flow
Navigate to: Copilot Studio → Flows → New Flow
Choose the Manually trigger a flow trigger.
Create the following trigger inputs:
Input Type (Text) – Email Subject (emailSubject), Email Body (emailBody)

This trigger is used only for demonstration purposes. In production, these values can come directly from Outlook, Dynamics 365, or another connector.
Step 2: Add the Agent Node
Click the + icon below the trigger and select: Run an agent
If prompted, sign in using your Microsoft account.
Select your published agent from the Agent dropdown.
Note: If the agent is not visible, verify that it has been published. Unpublished agents are not listed in the dropdown.

Step 3: Configure the Runtime Message
The Message field is the runtime input sent to the agent. Insert the trigger’s emailSubject and emailBody using dynamic content; do not hardcode the values in the flow.
Example message:
Analyze the following customer support email and identify the information required for case routing in Dynamics 365... Read More

Like
Report
*This post is locked for comments