Edit

Configure conversation orchestration by using natural language playbooks

Important

Conversation orchestration consumes Copilot credits only when you publish a playbook, which makes the configured orchestration logic active for use. After you publish, the playbook can process any number of customer conversations without consuming extra Copilot credits. When you save the playbook as a draft or enable conversation orchestration, it doesn't consume Copilot credits.

Conversation orchestration keeps every conversation actively managed throughout the conversation lifecycle from initiation through resolution. Conversation orchestration monitors each conversation as conditions evolve, such as an increase in wait time, queues filling up, or service representatives going offline, and automatically runs the relevant action in accordance with your configured playbooks. Administrators define the logic by using natural-language playbooks, and conversation orchestration handles the execution. When you publish a playbook, the system converts your natural language playbooks into a structured runtime format.

Conversation orchestration is available for voice and messaging channels only.

Prerequisites

  • Specific licensing requirements apply to configure and use conversation orchestration in Dynamics 365 Contact Center. Learn more in Dynamics 365 Licensing Guide.
  • System administrator or Omnichannel administrator role.
  • Set up consumption-based billing. If you use the Power Platform pay-as-you-go plan, you need an Azure subscription.
  • Unified routing enabled for your environment.
  • At least one queue and workstream is configured for voice or messaging channels.
  • A voice or messaging channel is configured.

Supported scenarios

Use the following playbook templates to configure conversation orchestration for your queues.

Scenario Description Playbook templates
Dynamic prioritization Automatically increase or reset conversation priority based on wait time, queue transfers, or queue consults so that higher-value or time-sensitive conversations are routed sooner. Tailor priority by context variables, such as customer tier or product ownership. Dynamic prioritization works with existing overflow rules, assignment rules, and other conversation orchestration playbooks. It doesn't apply to queues with custom prioritization rules. Use classification rules to set the initial conversation priority score. Escalate priority based on conversation wait time

Update priority of the conversation during queue transfers

Update priority of the conversation during queue consults
Overflow handling Configure real-time overflow actions when queue conditions change, such as when the queue is outside operating hours, all representatives are signed out, no representatives are available, wait times are high, or queue demand is high. For direct inbound calls, configure fallback actions when the target representative is unavailable, rejects the call, or doesn't respond before the notification times out. Manage overflow of incoming conversations using advanced conditions

Handle overflow for direct inbound call
Assign to a preferred expert or previously engaged representative Route conversations to a preferred expert mapped to the contact or to a representative who previously interacted with the customer, with fallback to the next best available expert. For returning asynchronous chats, keep the same expert when representative affinity is enabled and the expert meets the presence and active conversation limit requirements. Assign to a previous or preferred expert

Keep the same expert for async chats
Bullseye routing through user groups Start assignment with a targeted Level 0 user group, then progressively expand to additional user groups as wait time increases. Earlier groups remain active and take priority over later groups, without transferring the conversation to another queue. Configure user groups, then configure a bullseye playbook for one or more queues. Bullseye routing

Understand playbooks

Configure playbooks for each scenario through guided templates that keep instructions focused and reliable. A playbook consists of a trigger event and a set of conditions and actions to run when the trigger event occurs.

  • Queues: The queues for which the playbook applies.
  • Trigger event: The event that initiates the playbook, such as a conversation waiting in queue or conversation transferred.
  • Channel: The channel that you select in the Queues dialog. The context variables that appear are based on the selected channel. If you update the channel in a draft playbook, then you must update the applicable context variables and the corresponding prompt.
  • Conditions: Business rules based on context variables, such as customer tier or country/region. You can define up to 10 conditions to configure the granularity. These conditions can have up to two context variables.
  • Actions: The outcomes when conditions are met, such as increasing priority or transferring to an overflow queue.

A playbook can have one of the following statuses.

Status Description
Draft The playbook is saved but not active. You can make changes freely.
Active The playbook is published and actively orchestrates conversations.

Manage playbooks

In Copilot Service admin center, go to Customer support > Conversation Orchestration. The Conversation orchestration > New page displays available playbook templates organized by scenario.

Important

This feature is intended to help customer service managers or supervisors enhance their team’s performance and improve customer satisfaction. This feature is not intended for use in making—and should not be used to make—decisions that affect the employment of an employee or group of employees, including compensation, rewards, seniority, or other rights or entitlements. Customers are solely responsible for using Dynamics 365, this feature, and any associated feature or service in compliance with all applicable laws, including laws relating to accessing individual employee analytics and monitoring, recording, and storing communications with end users. This also includes adequately notifying end users that their communications with representatives may be monitored, recorded, or stored and, as required by applicable laws, obtaining consent from end users before using the feature with them. Customers are also encouraged to have a mechanism in place to inform their representatives that their communications with end users may be monitored, recorded, or stored.

Create a playbook

By default, the conversation orchestration page displays six popular prompts. Use Prompt gallery to view prompts for the different scenarios.

  1. On the Conversation Orchestration page, select Prompt gallery. The pop-up window displays prompt templates for all scenarios by default.

  2. In the drop-down field, select a scenario category, and then select a playbook template. Learn more in Supported scenarios.

  3. In the playbook editor, accept the default name or enter a name in Playbook name.

  4. Select Queues > Edit to open the queues pane.

    1. Channel: Select Voice or Messaging.
    2. In Apply to, select how to apply the playbook.
      • All queues: Applies to all queues for the selected channel.
      • List of queues: Select specific queues from the list.
      • All queues except: Applies to all queues except the ones you exclude.
    3. Select Save.
  5. Optionally, add context variables to create conditions based on customer or conversation attributes:

    1. In the Add variables section, select Add customer attribute.
    2. Choose from available context variables such as CustomerTier, Is VIP Customer, Preferred Language, Customer Region, or Account Type.
    3. Provide a description for how the variable appears in the playbook.
    4. Select the values you want to use in your conditions.
  6. Configure conditions and actions based on your selected template. See Tips for this playbook on the edit playbook page to optimally configure the conditions.

  7. Select Save. The playbook is saved as a draft.

  8. Review your configuration for any validation warnings, and then select Publish to activate the playbook.

Note

Administrators configure natural language playbooks. The system uses a language model to convert them to a structured runtime format. The system uses the resulting runtime format to perform playbook actions. Because the system uses a language model to convert playbooks into a structured runtime format, the converted output might not fully capture the intended playbook logic. Any deviations can be identified only during runtime. Administrators should test and monitor runtime behavior and revise the playbook if orchestration doesn't work as intended.

Edit a playbook

  1. Go to the All playbooks tab in Conversation orchestration.
  2. Find the playbook you want to edit.
  3. Select the vertical ellipsis, and then select Edit.
  4. Make your changes.
  5. Do one of the following:
    • For draft playbooks: Select Save to save your changes, or select Publish when ready to activate.
    • For active playbooks: Select Save & publish to save and immediately publish your changes. The Save button is disabled for active playbooks to prevent unintended changes to live routing. If you cancel, the playbook reverts to the last published version.

Delete a playbook

  1. Go to the Playbook tab.
  2. Select the actions menu (...) for the playbook and then select Delete.
  3. Confirm the deletion.

Important

If you delete an active playbook, conversation orchestration stops for the corresponding queue immediately.

Validations

Conversation orchestration validates your playbook configuration and displays warnings for potential issues.

Validation Description
Required fields Mandatory fields are empty (priority score, time interval, action)
Range validation Values are outside allowed ranges (priority: 0–10,000; time: minimum 30 seconds)
Duplicate conditions Two conditions have identical variable-value combinations
Conflicting conditions Overlapping conditions might cause unexpected behavior
Cross-playbook conflicts Multiple active playbooks exist for the same queue and scenario

Multiple playbooks for the same queue

When you configure multiple playbooks that apply to the same queue, conversation orchestration handles them differently based on whether they target the same or different scenarios.

Same queue, same scenario (conflict)

You can't have multiple active playbooks for the same scenario and the same queue. This configuration creates a conflict that prevents publishing.

For example, if you have an active Escalate priority based on conversation wait time playbook for Queue A, you can't publish another wait time-based priority playbook for Queue A - even if the time interval or priority values are different. Instead, edit the existing playbook to update its configuration.

When you attempt to publish a playbook that conflicts with an existing active playbook, the system displays an error message similar to the following one:

"Failed to publish policy: A playbook for "Escalate priority based on wait time" is already published for queue_name. You cannot publish a duplicate policy for the same queue(s). Please modify the existing published policy."

To resolve this conflict, do one of the following steps:

  • Modify the queue selection in your new playbook to exclude the conflicting queues
  • Edit or deactivate the existing active playbook before publishing your new one

You can save a playbook as a draft even if it conflicts with an existing active playbook.

Important

The system performs the cross-playbook validation only when you publish a playbook, not when you save it as a draft. The system checks your playbook against other published active playbooks only.

Same queue, different scenarios (Allowed)

You can configure different scenarios for the same queue. For example, a single queue can have both a "Dynamic Prioritization - Wait Time" playbook and an "Agent Availability Based Overflow" playbook active simultaneously.

When multiple playbooks with different scenarios are active for the same queue, they run based on the triggering event.

Example: How multiple playbooks for the same queue across different scenarios work

Consider a queue configured with two playbooks, each designed to handle a distinct scenario:

  • Dynamic prioritization playbook

    • Trigger: Wait time
    • Condition: Customer tier = Gold and wait time ≥ 30 seconds
    • Action: Increase priority by 1
  • Agent availability overflow playbook

    • Trigger: Immediate evaluation on queue entry
    • Condition: Customer tier = Gold and no agents are available
    • Action: Run overflow (for example, route to voicemail, transfer to another queue, or redirect to another number)

Although both playbooks target Gold-tier customers, they differ in their triggering condition—one is based on elapsed wait time, and the other on real-time agent availability.

How playbooks run

Scenario 1: Agents are available initially

  1. A conversation enters the queue. Agents are available. The overflow condition isn't met, so no overflow action runs.
  2. The conversation remains unassigned for 30 seconds.
  3. The dynamic prioritization condition is now met, triggering a priority increase as defined.

Result: The system runs the dynamic prioritization playbook only.

Scenario 2: No agents available when work item enters the queue

  1. A conversation enters the queue. No agents are available. The overflow condition is met immediately. The overflow action is triggered (for example, redirect to voicemail or another queue).
  2. If the conversation:
    • Leaves the queue or is closed: No further actions occur.
    • Remains in the queue and is still waiting: On reaching 30 seconds, the action for dynamic prioritization playbook runs and increases the priority.
    • Overflow action runs first based on availability.
    • Dynamic prioritization runs only if the conversation remains in the queue long enough.

Things to consider

Issue Resolution
Playbook isn't routing conversations Verify the playbook status is Active, check that the correct queues are selected, and ensure the channel matches your conversation type.
Priority isn't increasing as expected Confirm the time interval setting, verify context variable values match your conditions, and check that the conversation is in a queue where the playbook is active. Also verify that the queue doesn't have custom prioritization rules configured.
Overflow isn't triggered Verify agent availability settings (presence, capacity, skills), check that the "no agents available" condition is met, and ensure the playbook is active for the correct queue.
Dynamic prioritization isn't applied to a queue The queue might have custom prioritization rules configured. Remove the custom prioritization configuration from the queue settings to enable dynamic prioritization.
Assignment to a previously interacted representative didn't occur Verify the queue membership and presence status of the previous representatives and check if their last interactions with the customer was within the configured recency window.
Assignment to a preferred representative didn't occur Verify the contact for preferred representative mapping in Copilot Service admin center. Check whether the preferred representative is a member of the queue where the new conversation is routed and has an allowed presence status.

View diagnostics by using a custom query

To help you monitor and troubleshoot your playbooks, conversation orchestration provides diagnostics information for each conversation that is processed by an active playbook. You can view the diagnostics information by using a custom query. Learn more in Sample queries and dashboards.

Supported trigger events, conditions, and actions

In conversation orchestration, you configure natural language playbooks that specify the trigger events to respond to, the conditions to evaluate, and the actions to take when those conditions are met.

The following table lists the supported trigger events, conditions, and actions that you can use in conversation orchestration playbooks.

Type Event, condition, or action Description
Trigger event Conversation waiting in queue Triggers orchestration while a conversation is waiting in a queue. Use this event with elapsed-wait conditions to dynamically change the priority, run an overflow action, or expand the pool of representatives who are eligible for assignment.
Trigger event Conversation transferred to queue Triggers orchestration when a conversation is transferred to a queue. For example, use this event to update the conversation priority after the transfer.
Trigger event Conversation routed to queue Triggers orchestration when a conversation is routed to a queue. Use this event to assign the conversation to a previously engaged or preferred representative.
Trigger event Consult to queue Triggers orchestration when a conversation is consulted to a queue. For example, use this event to update the conversation priority during a consult.
Trigger event Representative signs in Triggers orchestration when a representative signs in.
Trigger event Timer elapsed Triggers a recurring or timed evaluation after the configured timer elapses. For example, use this event to update conversation priority or expand the pool of representatives who are eligible for assignment.
Trigger event Direct inbound call is offered to a user Triggers orchestration when a direct inward dialed call is offered to a representative. Use this event to run an overflow action based on the configured conditions.
Condition Queue is out of operating hours Evaluates whether the queue is outside its configured operating hours, including when the queue transitions out of operating hours while conversations are waiting. Use this condition to trigger overflow actions.
Condition All representatives are signed out Evaluates whether all representatives in the queue are signed out, including when this state occurs while conversations are already waiting. Use this condition to trigger overflow actions.
Condition Estimated average wait time exceeds a threshold Evaluates whether the queue-level estimated average wait time exceeds the configured threshold. Use this condition to trigger overflow actions.
Condition Conversation wait time exceeds a threshold Evaluates whether the actual time that a conversation has waited in the queue exceeds the configured threshold. Use this condition to trigger overflow actions.
Condition Number of conversations waiting exceeds a threshold Evaluates whether the number of conversations waiting in the queue exceeds the configured threshold. Use this condition to trigger overflow actions.
Condition User rejects the call, the notification times out, or the user is unavailable when a direct dial call is offered Evaluates the representative's response or availability when a direct inward dialed call is offered. Use this condition to trigger an overflow action.
Condition User's presence status and active conversation limit Evaluates whether a representative has an allowed presence status and is within their active conversation limit. Use this condition to assign a returning asynchronous conversation.
Action Change priority Changes the priority of a conversation based on the configured policy or elapsed wait time.
Action Transfer to another queue Transfers the conversation to another queue when the configured conditions are met.
Action Transfer to an external number Transfers the conversation to an external number.
Action Offer callback Offers the customer a callback as an alternative to continuing to wait in the queue.
Action Offer voicemail Offers voicemail as the configured action.
Action Keep the conversation unassigned Keeps the conversation unassigned in its current queue as the configured treatment.
Action End conversation Ends the conversation when the configured conditions are met.
Action Expand assignment pool Progressively expands the pool of representatives eligible for assignment.
Action Assign to previously engaged representative Attempts to assign the conversation to a representative who previously interacted with the customer, subject to the configured checks.
Action Assign to preferred representative Attempts to assign the conversation to the preferred representative who is mapped to the contact.
Action Assign to next available representative Uses the queue assignment method to assign the conversation to the next available representative if the preferred representative can't be assigned.

| Action | Set user presence | Sets a representative's presence to the specified presence status. |

Sample event-action mappings

The following examples show how you can use event-action mappings for common prioritization, overflow, and assignment scenarios.

Scenario Trigger event Action
Reprioritize conversations when transferred or consulted

Preserve or increase a customer's priority when a conversation is transferred or consulted to another queue so that high-priority requests continue to receive the intended level of attention.
A conversation is transferred or consulted to a queue. Change the conversation priority.
Prioritize customers whose wait time is increasing

Automatically increase the priority of conversations that waited longer than a defined interval to reduce the risk of prolonged waits.
A conversation is waiting in a queue. Update the conversation priority when the configured timer elapses.
Give customers an alternative when the queue is out of operating hours

Provide customers with an alternative when the queue is closed.
A conversation is waiting in a queue that is out of operating hours. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Give customers an alternative when all representatives are signed out

Provide customers with an alternative when no representatives are signed in to serve the queue.
A conversation is waiting in a queue where all representatives are signed out. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Give customers an alternative when the estimated average wait time is high

Provide customers with an alternative when the queue-level estimated average wait time exceeds the configured threshold.
A conversation is waiting in a queue where the estimated average wait time exceeds the configured threshold. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Give customers an alternative when their conversation wait time is high

Provide customers with an alternative when an individual conversation waited longer than the configured threshold.
A conversation is waiting in a queue and its wait time exceeds the configured threshold. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Give customers an alternative when queue demand is high

Provide customers with an alternative when the number of conversations waiting exceeds the configured threshold.
A conversation is waiting in a queue where the number of waiting conversations exceeds the configured threshold. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Help direct-dial callers when the intended representative is unavailable

Provide an alternative path when the intended representative rejects a direct inward dialed call, doesn't respond, or is unavailable.
A direct inward dialed call is offered to a representative, and the representative rejects the call, the notification times out, or the representative is unavailable. Run the configured overflow action. The overflow action can be transferring to another queue or external number, offering callback or voicemail, keeping the conversation unassigned, or ending the conversation.
Reconnect customers with a representative who knows their history

Route a customer to a previously engaged representative when possible to reduce the need to repeat information and provide a continuous service experience.
A conversation is routed to a queue. Assign the conversation to the previously engaged representative. If the representative is unavailable, use the configured fallback, such as assigning the conversation to the next available representative.
Connect customers with their preferred representative

Route the conversation to the representative associated with the customer when available to provide a personalized experience.
A conversation is routed to a queue. Assign the conversation to the preferred representative. If the representative is unavailable, use the configured fallback, such as assigning the conversation to the next available representative.
Keep returning asynchronous conversations with the same representative

Reassign a resumed chat or messaging conversation to the previous representative when the representative is available and has capacity, which preserves ownership and customer context.
A returning asynchronous conversation is available for assignment. Assign the returning conversation to the same representative. Otherwise, use the configured fallback to assign it to the next available representative or keep it unassigned in the queue.
Broaden the representative pool as customers continue to wait

Start with a targeted group of representatives and progressively include more groups over time to balance specialized service with faster assignment.
A conversation is waiting in a queue. Expand the assignment pool to include the next configured user group after the configured timer elapses.
Set representatives to the appropriate availability status when they sign in

Automatically apply the configured presence status at sign-in so that representatives begin work in the intended state.
A representative signs in. Set the representative's presence to the specified status.

Migrate conversation orchestration playbooks

You can port conversation orchestration playbooks across environments and organizations. Move a playbook from a source environment to a destination environment by adding it to a solution and using the solution export and import. This approach follows the same application lifecycle management approach used to move other routing and channel configurations by using solutions. Learn about how to use solutions or the Configuration Migration tool in Overview of tools and apps used for ALM in Power Platform.

Important

A playbook references other configuration tables, like queues and context variables. Every related entity a playbook uses must already exist in the destination environment or organization before you import the solution, otherwise, the solution import fails. Create or migrate those tables in the destination first, then import the playbook solution.

Prepare the destination environment

Ensure the tables that the playbook depends on are present in the target environment.

  1. Create or migrate the queues the playbook references.

  2. Create or migrate the context variables the playbook reads or writes.

  3. Confirm any other dependent components already exist in the destination.

  4. Confirm the destination values match the source. If a referenced queue or context variable exists in the target but under a different name or configuration, the playbook might not work as expected.

Export the solution from the source environment

In the source environment, ensure the conversation orchestration playbooks are published.

  1. Open Power Apps and select or create a solution.

  2. Select and add CC User Prompt from other tables to the solution.

  3. Review the components that are added.

  4. Select the solution and choose Export. Save the exported solution (.zip) file.

Import the solution into the destination environment

  1. In the destination environment, open Solutions and choose Import solution.

  2. Select the exported .zip file and complete the import. If the import reports a missing dependency, it means a referenced entity, such as a queue or context variable isn't present in the destination.

  3. Create or migrate the missing entity, then rerun the import.

Verify the imported playbook

Confirm the playbook appears in the destination environment with all its steps and actions intact.

Verify that each queue and context variable the playbook references resolves to the correct destination record. Run test conversations to trigger and confirm playbook runs as expected.

Set up unified routing
Create and manage queues
Configure context variables
Dynamic prioritization scenarios
Assign to preferred or previously interacted representatives
Overflow scenario
Conversation orchestration: Responsible AI FAQ