Agent scripts in Customer Service Workspace - Dynamics 365

Agent scripts are available within the Productivity pane in the Customer Service workspace and Omnichannel for the Customer Service app.

Agent scripts contain a series of steps that will guide the agents while working, helping them to be more efficient.

Demo Testing

To define Agent Scripts – navigate to Customer Service Admin > Agent Experience > Productivity > Agent Scripts (Manage)

Agent Script Manage

Active Agent Scripts

Create a new Agent script record, and specify steps for the same by creating a new agent script step record.

New Agent

We can define 3 different types of Action – Text, Macro, and Script.

I am choosing the action type as a macro; prior to selecting a macro, it is necessary to create macros.

To define macros – navigate to Customer Service Admin > Agent Experiance > Productivity > Macros (Manage)

Macros Manage

Click on New Macros, and create automation actions.

Let’s select Productivity Automation, then Start Macro Execution.

Customer service admin center

We now have the trigger defined, let’s add a new step.

New Step

At this point, we get to choose an action.

Action

In this macro, the attempt is to open a new phone call form and populate the regarding direction, and subject fields.

Open a new form to create a record

Open a new form to create a record

The screenshot below showcases the complete set of macro actions for a phone call.

Phone call

Get the current tab

This action gets the details of the current tab in Omnichannel for Customer Service. The action retrieves the Tab ID that could be used in the Refresh tab and Focus tab actions.

Refresh the session context

This action refreshes the session context in the Customer Service workspace for entity sessions. For example, if you launch an entity session for a case record, the session context variables will be defined when the session starts. However, if you update the case title, the session context will not be updated. Therefore, macros will use the cached information. You can add the Refresh the session context step after starting the macro run to use the latest information.

Open a new form to create a record

This action opens a new form to create phone calls.

Listed below are the macros. Now we need to add each of these macros to an agent script step, then apply the steps to the agent script.

Create phone call

Now we need to add each of these macros to an agent script step, then apply the steps to the agent script.

General

We will also create a new step of typing “Text” to remind the agent to say thanks to the customer.

Scripts

We have defined 3 script steps for the agent script as shown below.

Scripts step

Next, we need to associate the Agent Script with the Session template.

To define macros – navigate to Customer Service Admin > Agent Experience > Workspaces> Session template(Manage).

Session templates

Here I am trying to create a new session and add the associate Agent Script with the Session template.

Customer service

Agent Scripts

We can see the script populated there for the agent on the case record opened.

Welcome app

After clicking on the 'Create Phone Call' agent script, a new phone call will open with predefined values.

Values

Clicking each step, each action is performed.

New Email

Welcome app


Similar Articles