Work with agent scripts

Completed

Agents who work in customer support centers need to adapt to change quickly. Products and services are continually being modified or updated. Accordingly, as those changes occur, processes and procedures need to be updated or modified as well. Even after agents have been rigorously trained, errors and delays in service delivery occur due to a lack of guidance in real-time customer scenarios. These issues lead to lower productivity and negatively affect customer satisfaction levels. To avoid errors and ensure that processes are adhered to, agents need guidance.

Agent scripts provide guidance to agents about what to do when they get a customer issue. Scripts ensure that only accurate, company-endorsed information is being shared, while also safeguarding the organization regarding issues of legal compliance. Agent scripts help organizations to be unified, accurate, and effective, while also being faster and more efficient in terms of customer handling.

Agent scripts reduce human errors that can occur in the process because agents know which actions they need to perform next while they interact with a customer. This feature helps agents adhere to business processes while also helping them provide quick resolutions for the issue (low average handling time) and improve customer satisfaction.

Screenshot of the Agent script with steps.

Agent scripts consist of a series of steps. Each step is identified with an actionable icon that helps implement that step. As agents expand a step, they are provided with a short description that defines what the step does and provides an icon that they can select to perform the step's action. As agents complete the steps, the script tracks the implementation status of the step and notes it. Steps that are completed successfully are indicated with a green tick icon. Steps that have errors are indicated with a red cross icon. Steps can be run again as needed. Whether you see a green tick or a red cross icon is based on the last time that the step was run.

Work with scripts

After an agent accepts an incoming conversation notification, such as a chat, and a new session starts, the agent script will display. The following image shows an example of an agent script that contains five steps.

The script begins with a text message that guides the agent through greeting the customer and then ends by taking the agent to a closing script.

Screenshot of the Agent script with expand step feature and step type icons.

The following table explains each step in more detail.

Step Title Instruction Icon Action
Text instruction Greet Customer Greet the customer with a welcome message from the quick reply repository Mark as Done After the agent has greeted the customer, they should select the icon to show the step as completed.
Text instruction Verify Customer Use any two of the following options to verify the customer Kenny Smith: 1. Date of birth, 2. Email ID, 3. Zip code, 4. Mobile phone number Mark as Done After the agent has verified the appropriate data, they should select the icon to show the step as completed.
Macro Create Case Triggers a create case form with customer context Run When you select the run macro icon, the system opens a case form in a new application tab panel.
Macro Send Details Opens an email to send details to the customer Run When you select the run macro icon, the system opens a draft email so you can send an email to the linked customer.
Agent script Close Conversation Follow these steps to close a conversation View When you select the view icon, the system loads another agent script from the current agent script. In this sample, another agent script is the Close Conversation script.

Screenshot of indicators for a successful vs unsuccessful completion.

Define agent scripts

Users with administrative rights can create agent scripts under Agent experience heading in the Customer Service admin center application. Select Productivity, and then choose Manage next to Agent Scripts.

On the new Agent script page, specify the following information:

  • Name - Provides a name for the agent script.

  • Unique Name: A unique identifier in the <prefix>_<name> format. Example: greet_script

    Important

    For the Unique Name, the prefix can only be alphanumeric and its length must be between 3 to 8 characters. An underscore must be there between the prefix and name.

  • Language - Defines the language that is associated with the script.

  • Description - Describes the agent script.

After you have created the script, define the steps that will be presented to the agent. For example, a step might represent a message that the agent should read or an automated action that can be run.

Three types of steps are available inside an agent script:

  • Text instructions - Provide guidance on actions to perform. For example, a text instruction might advise the agent on how to greet the customer or might represent a closing statement that can be used to end the conversation.

    In the user interface, agents can note when they have completed the step based on the instructions.

  • Macro - Instructions that inform the system of how to complete a task. For example, a macro might be configured to generate a case record.

    When an agent selects the Run icon, the system will perform the macro.

  • Agent script - Loads another agent script from the current agent script. The newly loaded script will replace the current script in the Agent script menu.

The following image shows an example that represents each of the three different script types that are available.

Screenshot of text, macro, and agent scripts.

  • Greet Customer - Text instruction step type that will be presented to the agent first. The Text instructions field indicates to the agent what they should do.

  • Create Case - Macro step type that will create a new case record and link it to the current conversation.

  • Close session - Script step type that will load a different agent script that is designed to take the agent through the process of completing a conversation with a customer.

Each script step includes an Order field that indicates the order in which the step should be presented to an agent. Steps are visible in the order that they will be presented to agents from the Agent script step section. The action type that is associated with each step is displayed in the Action type field.

Screenshot of the Agent script steps with type indicated.

Associate an agent script with a session template

After you have completed the agent script, you should associate it with a session template. This action ensures that the agent script will load for agents based on the type of session that they've opened. For example, if your organization has different processes for SMS conversations from what is used for chat conversations, you would attach the necessary agent scripts to the appropriate SMS or chat session templates.

To access existing or create new session templates, from the Workspaces section, select Manage next to Session templates. In the Agent scripts section of a session template, use the Add Existing Agent script option to define which scripts should be available for this session type.

Screenshot of chat default session agent scripts.

For more information, see Guide agents with scripts.

For information, see Set the default agent script for agents.