Redigera

Dela via


Configure and manage agent scripts

Each step in an agent script is represented as an agent script task. An agent script task can have one or more answers (choices) for the next steps; the answers are represented as a stack of buttons in the agent script area in your application. An action can be performed on selecting one of the answers or when you go to the next task. This topic provides information on how you can create an agent script task, and then configure it by adding answers, actions, and triggers.

For more information about how agent scripts work in Unified Service Desk, see Guide customer interactions with agent scripts. For a walkthrough that demonstrates the agent scripting functionality, see Walkthrough 7: Configure agent scripting in your agent application.

Create an agent script task

  1. Sign in to Unified Service Desk Administrator.

  2. Select Agent Scripts under Basic Settings. The page displays available agent script tasks.

  3. Select + New on the command bar, and then specify the following information in the New Agent Script Task page:

    Field Description
    Name A name that will appear in the current step and history area.
    StartTask Select Yes or No:

    - Yes: This task will be displayed at the start of a session. Typically, a user’s security will provide them only one start task. Start tasks may represent functional areas or skills of the agent. As agents get more experienced, they may get more start tasks (cross training). If two or more start tasks are assigned to an agent, a special [Main Menu] will be displayed as the first task to the agent. The buttons will then become the start tasks that the user may access.
    - No: These may be accessed from answers of other tasks or you may call GoToTask action on the Agent Scripting hosted control to access a specific task.
    Show Tab Select the hosted control (tab) that should be set to focus when this task is reached by the user. This may be used to place the user on the control that will help to perform the actions that are needed for this task step. If this field is left blank, no change will be made to the focused tab.
    Category Specify a category name to group, filter, or sort agent script tasks while managing agent script tasks.

    The category value is not used by agents in the client application.
    ScriptText This is the script that the agent should read to the caller at this stage. This field supports replacement parameters. To insert the context variable, fullname into the script, type [[fullname]] into the flow of the script. At runtime, it will replace this text with the value from the context for the current session.
    Instructions These are instructions to the user for what they should do to complete their work. This is displayed in a slightly different font than the Script Text to help distinguish it.
  4. Select Save to save the record, and activate the Answers area.

    The following image shows a typical agent script task definition.

    Sample agent script task.

Add answers to an agent script task

A task can have a series of answers attached to it. Each answer is represented as a button in the user interface below the script and instructions.

To add answers to an agent script task:

  1. Open an agent script task definition by selecting its name on the agent scripts page.

  2. In the Answers area of the agent script task definition page, select Add Existing Agent script Answer. The Lookup Records pane is displayed.

  3. Type the name of script answer in the search box. Select the answers from the list. If you want to create a new script answer, select + New Agent Script Answer. The new agent script answer page is displayed.

  4. On the New Agent Script Answer page, specify the following details:

    Field Description
    Name This is a descriptive name for the answer. This name will not be seen by the agent. It is useful for administrative purposes in distinguishing it from other tasks.
    AnswerText This is the label shown on the button in the agent application.
    Linked Task When the user selects this answer (the button in the client application), they will go to the linked task.
    Order Defines the order of the appearance of the answer (button) in the client application if there are multiple answers attached to an agent script task.
  5. Select Save to save the record.

  6. Repeat the Steps 1 to 3 to add the newly created script answer.

  7. Select Save.

    The following image shows a typical answer definition.

    Sample agent script answer.

Add action calls to an answer

After adding answers to an agent script task, you must attach the action calls to your answers, which define the list of actions to be performed in the agent application when the agent selects the answer. These action calls occur before the transition to the next task. Action calls are the mechanism in Unified Service Desk to call a UII action defined for a hosted control. For more information, see Action calls.

To add action calls to an answer:

  1. Open an existing agent script answer.

  2. Select Related tab, and then select Actions.

  3. On the next page, select Add Existing Action Call. The Lookup Records pane is displayed.

  4. Type the name of an action call, and select the action call from the list and then select Add. To do a wildcard search, type a part of the action call name within asterisks (*); for example *account\. This will display all the action calls in the search results pane that have “account” in their name.

    You can also create a new action call by selecting + New Action Call at the bottom of the search results pane. For information about creating a new action call, see Create an action call for a UII action.

  5. You can add multiple action calls to an answer. After adding multiple action calls, double-click each action call in the list, and specify the Order in which you want an action call to be executed when the agent selects the answer.

  6. Select Save to save the record.

    These actions are often used when a general task is the next step. That way different answers can perform different actions but end at the same task, thus reducing the number of tasks needed to satisfy the business process.

Add action calls to an agent script task

These are the action calls at the task level, and each action in the list is executed when the agent reaches the task in the client application. This might include automations of the visible application or other actions that satisfy the business requirements.

To add an action call for to an agent script task:

  1. Open an agent script task definition by select its name on the agent scripts page.

  2. Select Related tab, and then select Actions.

  3. On the next page, select Add Existing Action Call. The Lookup Records pane is displayed.

  4. Type the name of an action call, and select the action call from the list and then select Add. To do a wildcard search, type a part of the action call name within asterisks (*); for example *account\. This will display all the action calls in the search results pane that have “account” in their name.

    You can also create a new action call by selecting + New Action Call at the bottom of the search results pane. For information about creating a new action call, see Create an action call for a UII action.

  5. You can add multiple action calls to an answer. After adding multiple action calls, double-click each action call in the list, and specify the Order in which you want an action call to be executed when the agent selects the answer.

  6. Select Save to save the record.

Add triggers to an agent script task

These are variables used to refer to a specific task. To add an agent script task trigger:

  1. Open an agent script task definition by clicking its name on the agent scripts page.

  2. Select the Related tab, and then selectScript Task Triggers.

  3. On the next page, select + New Script Task Trigger.

  4. On the New Script Task Trigger page, specify the following information:

    Field Description
    Name This is a descriptive name for the script task trigger. This name will not be seen by the agent.
    Type Select from the following options:

    - DNIS: This is primarily meant for CTI integration scenario. Select this to execute an agent script task based on an incoming call. Note: Unified Service Desk does not ship with any out-of-box CTI adapters. This is only applicable if you are using any CTI solution with Unified Service Desk. For more information about CTI, see Integrate CTI applications with Unified Service Desk.
    - Other: Use this for other scenarios.
    Data Specify the data to be passed.
  5. Select Save to save the record.

Tips on configuring agent scripts

Agent scripts can be used with CTI solutions to provide a highly customized customer-centric experience for your agents. For example, in case of an outsourced call center that may be representing multiple companies, you can use the DNIS agent script trigger to display the right script based on the phone number of the calling customer. The script text may also be used for disclaimers that must be read out to the customer as part of legal compliance on sales calls.

You can use the answers to represent categories for call classification. Once the call has been classified, a case will be created and auto filled using an action. This method can be combined with the ToDo list to make for a powerful work task list.

An interesting feature about agent script tasks is that whenever a task is reached in the agent scripting component, the entire contents of the entity that makes up that task is placed into the replacement parameter list in the Unified Service Desk data context. This can be used to extend the agent script entity to add email template text so that whenever the agent reaches a step in the script, the email template text will be available in the Unified Service Desk data context to be used to populate an email.

See also

Guide customer interactions with agent scripts
Agent Scripting (Hosted Control)
Unified Service Desk Configuration Walkthroughs
Overview of configuring agent application