Motadata Docs

Virtual Agent

A Virtual Agent (Chatbot) support provides automated answers to the requesters on live basis. The admin can enable the support for chatbot where the end-user can automate routine tasks and improve the team productivity as per the organization needs. Admin can configure various custom workflows to be handled by the Chatbot. This Chatbot appears at the bottom-right corner of the ServiceOps Support Portal screen.

Note: In the SaaS application the Virtual Agent feature is available only if the AI Chatbot license is enabled.

To view the Virtual Agent page, navigate to Admin > Support Channels > Virtual Agent and the page appears.

Virtual Agent Page
Virtual Agent Page

It consists of the below tabs:

  • Chat Flow: You can create a chat flow based on which the Virtual Agent provides automated answers to the requesters.
  • Slack App Config: You can integrate the Slack application with ServiceOps.
  • Teams App Config: You can integrate the Teams application with ServiceOps.
  • Telegram App Config: You can integrate the Telegram application with ServiceOps.
  • Facebook Messenger App Config: You can integrate the Facebook Messenger application with ServiceOps.
  • WhatsApp Config: You can integrate the WhatsApp application with ServiceOps.

Chat Flow

A Chat Flow is a workflow created in ServiceOps based on which the Virtual Agent provides automated answers to the requesters on a live basis. The administrator can configure various custom chat flows according to the organization’s needs.

Chat Flow tab
Chat Flow tab

The tab provides the following features:

  1. Search: You can use the search query to find a Chat Flow .
  2. Settings: You can configure the settings for a Virtual Agent.
  3. Train Model: You can train the virtual agent model with the latest Chat Flows implemented.
  4. Manage Variable: You can manage the variable name of the virtual agent.
  5. Create Chat Flow: You can create new Chat Flows.
  6. Grid: You can view a list of default and custom Chat Flows along with their details.
  7. Enabled: You can enable the desired Chat Flow. If disabled, the Chat Flow will remain inactive.
  8. Edit: You can edit the Chat Flow. The page is similar to the create page. Clicking on the chat flow name will open the Chat Flow Builder.
  9. Delete: You can delete the Chat Flow if not required. A confirmation message will appear. Click Yes to continue deletion or Cancel to stop the process.

Create Chat Flow

To create a Chat Flow, follow the below steps:

  1. Navigate to Admin > Support Channel > Virtual Agent > Chat Flow and click the Create Chat Flow button.
Create Chat Flow button
Create Chat Flow button
Create Chat Flow Popup
Create Chat Flow Popup
  1. Enter the below details:
    • Name: Enter the name of the Chat Flow.
    • Description: Enter a brief description of the Chat Flow.
    • List of Examples: Add examples of words to be used in the Chat Flow for a better response. You can add examples using the Add link.

    Once done, click Save, and the Chat Flow appears in the Chat flow list. By default, it is disabled.

  2. Enable the Chat Flow from the Enabled column. If enabled, the Chat Flow gets implemented in the Virtual Agent.
Chat Flow Enabled
Chat Flow Enabled
  1. Configure the flow of the Chat Flow. To configure the flow,
    1. Click on the Chat Flow Name, and the Virtual Agent Chat Flow Builder opens as shown below.
Chat Flow Builder
Chat Flow Builder
    The Virtual Agent Chat Flow Builder displays three sections:

    • Ask Question: Here, you can add the questions to ask the requester.
    • Bot Response: Here, you can add the responses to display to the requester.
    • Utility: Here, you can add the utilities based on which responses can be displayed.
  1. In the Ask Question section, select the required question type: You can set the following types of questions:
    • Text
    • Date
    • Static Choice
    • Reference Choice

Drag and drop the required fields from the palette on the Start node, after which it will be available, and a window will appear. For example: Here, the Static Choice field is used.

Adding Static Choice Field to the Chat Flow
Adding Static Choice Field to the Chat Flow

Add the following details:

  • Name: Type the name of the field.
  • Variable Name: The variable name will get auto-filled as per the name.
  • Prompt Message: Provide the question to be prompted to the requester. You can also insert a placeholder that will display information automatically as per the selection. For Example, You can select an option or type a question.
  • Confirm Message: Provide a confirmation message to be prompted to the requester. You can also insert a placeholder that will display information automatically as per the selection. For Example, you can select an option or type a question.
  • Retry Count: Enter the number of times a message should be displayed to the requester. For Example, If the Retry Count is set to 2 when the agent asks to select the option or type a question, and the requester enters an invalid response multiple times, an error message, “Select an appropriate option” will appear, twice to the requester.
  • Options: Enter the Key and value for the chosen type of input. For Example, Key: Create Request and Value: Create Request. To add more options, you can use the Add link.

Once done, click on Add, and the field gets added to the Flow. To delete the elements, hover the mouse pointer on the specific node, and click the Delete icon as shown below:

Delete Elements
Delete Elements

For other fields like Text Input, Date, and Reference Choice, you can provide the below additional parameters:

  • Input Type: Select the text input type. The available options are Integer, Mobile Number, Email, Alpha Numeric, and Alpha. You can also search for the same.
  • Date Input Type: Select the date input. Options are Date, Time, and Date. This field applies to the Date field.
  • Reference Choice Type: Select the choice type from the dropdown. This field applies to the Reference Choice type.
  1. In the Bot Response, select the type of responses. You can set Text and Multiflow types of agent responses from here.
    Multiflow field is used while taking decisions and configuring another flow.
    Drag and drop the Multiflow field from the palette on the Ask things node, after which it will be available, and a window will appear. For example: Here, the Multiflow field is used.
    Add the below details:

    • Name: Type the name of the bot response.
    • Variable Name: The variable name will get auto-filled as per the name.

    Once done, click on Add, and the field gets added to the Flow.

Add Bot Response
Add Bot Response

For the Text field, you can provide the below detail:

  • Response: Provide a response message to be displayed to the requester. You can also insert a placeholder that will display information automatically per the selection.
  1. In the Utility, select the desired Utility, drag and drop it on the Decision node, after which it will be available, and a window will appear. For example: Here, the Decision Utility field is used.
    Add the below details:

    • Name: Type the name of the Utility.
    • Variable Name: The variable name will get auto-filled as per the name.
    • Condition: Select the condition based on which a decision is to be taken; accordingly, other activities will be taken in the Flow. You can also add more conditions by clicking the plus icon.
    • Add Condition Group: Select to add a group of conditions based on which the result will be displayed. Click Remove All Conditions to delete the applied condition(s).
Add Utility Decision
Add Utility Decision

Once done, click Add, and the field gets added to the Flow.
Similarly, add 2 more Decision Utilities on the Decision Flow node and name them Open Request Flow and Pending Approval.

Decision Utilities Added
Decision Utilities Added
  1. Add Chat flow Utility to the Decision Utilities.
    Drag and drop the Chat Flow Utility on the Create Request node, and the below popup appears.
Adding Chat Flow Utility
Adding Chat Flow Utility

Add the below details:

  • Name: Provide the name.
  • Variable: The variable name will get auto-filled as per the name.
  • Chat Flow: Select the chat flow to be used from the dropdown. It displays the already created chat flows.

Once done, click Add, and the field gets added to the Flow.
Similarly, add 2 more Chat Flow Utilities on the Pending Approval and Open Request nodes, respectively, and name them Pending Approval Chat Flow and Open Request Chat Flow. The Greeting Chat Flow is created as shown below. You can also test and preview the chat flow using the Preview button if required.

Chat Flow Created
Chat Flow Created
  1. Similarly, you can add other utilities like:

Action: Add this field when an action is to be taken on a request or a service request.

  • Name: Provide the name.
  • Variable Name: The variable name will get auto-filled as per the name.
  • Module: Select the module on which the action is to be performed. Options are Request and Service Request. If Request is selected, Action Type will be available. If Service Request is selected, Service Catalog will be available.
  • Action Type: Select the action type for the Request module as ‘Create.’ The Request will get created using this field via Chatbot. Also, once the Request is created, you can click on it and view the request details in the portal.
  • Service Catalog: Select the Service Catalog from the dropdown.
  • Mapping Field: Select the Key and value based on which information will be displayed to the requester.
  • Output Field: Select the Key (values) displayed to the requesters. Example: Subject and Status.

Plugin Action: Add this field when a plugin is required to be shared with the requester.

  • Name: Provide the name.
  • Variable: The variable name will get auto-filled as per the name.
  • Plugin: Select the plugin to be provided to the requester. To add plugins, Go to Admin> Automation> Integrations.

Search: Add this field when a Search is performed in the Flow.

  • Name: Provide the name.
  • Variable: The variable name will get auto-filled as per the name.
  • Module: Select the module in which the search is to be performed. Options are Request, Approval, and Service Request.
  • Condition: Select the condition based on which the required response will be searched in the Flow. You can also add more conditions by clicking the plus icon. To delete, click the Delete icon.
  • Add Condition Group: Select to add a group of conditions based on which the result will be displayed. Click Remove All Conditions to delete the applied condition(s).
  • Output Field: Select the Key (details) displayed to the requesters. Example: Subject and Status.
  • No Data Message: Provide the message displayed when no information is found. You can also insert a placeholder in this field. For example: No Records Found.

Go To: Add this field when you want to direct the requester to a particular step in the flow. For example: If you want the user to go to  the previous step, you can use this utility.

  • Name: Provide the name.
  • Variable: The variable name will get automatically filled as per the name.
  • Go to Step: Select the node (step) to which the requester will be redirected. Example: If there is no suitable response, the Virtual Agent will display the initial message.

Transfer Chat: Add this field when the chat is to be transferred directly to a technician in the Flow.

  • Name: Provide the name.
  • Variable: The variable name will get automatically filled as per the name.
  • Response: Respond displayed when transferring the chat to the technician. The requester can then directly chat with the technician. You can also insert a placeholder that will provide your Name, Email, and Agent name.
  1. Click the Train Model button. The Virtual Agent will get trained automatically with the latest Chat Flows and respond accordingly to the requesters.
    The Virtual Agent will now respond to the user using the configured Chat Flow.
Virtual Agent Responding as per the configured Chat Flow
Virtual Agent Responding as per the configured Chat Flow

Settings

The Settings popup allows you to enable or disable a Virtual Agent. Also, you can set the greeting and fallback flow from here.

Settings
Settings
  • Allow Virtual Agent Support: Enable or disable the flag to start using the Virtual Agent support. Once enabled, it will be available at the bottom-right corner of the ServiceOps Support Portal after sign-in.
  • Greeting Flow: Select the desired greeting flow to be used by default. For example: When you sign-in, the Virtual Agent displays a message “Hello, how can I help you?”.
  • Fallback Flow: Select the desired fallback flow to be used when the agent is unable to search for a suitable response.

Once you have configured the above parameters, click Save to make the changes live.

Train Model

The Train model allows you to train your Agent with the new chat flows created and implemented.

Enable or disable any chat flow and click the Train Model button. The Agent will get trained automatically with the latest chat flows and respond accordingly to the requesters.

Train Model button
Train Model button

Manage Variable

This enables you to manage the variables of the Virtual Agent. Variables are fields that contain values which can be displayed to the requester at run time. You can create variables as and when required. For example, If you want to view the chat representative’s name, you can type the question in the chat and the system will respond with the name. This name is the value that is associated with the variable.

To view the variables, click on the Manage Variable button, and a window appears. It displays the list of existing created variables.

Manage Variable
Manage Variable

You can create a variable by clicking Create, entering the required fields, and saving it. Once saved, the variable is available in the form of a placeholder at the time of inserting fields in the chat flow.

Create Variable
Create Variable
Using Variables from Placeholder
Using Variables from Placeholder

Slack App Config

The Slack App Config page allows you to integrate the Slack client application with the Virtual Agent. This enables the Virtual Agent to send responses to the requester over the Slack application.

Slack App Config
Slack App Config

To integrate the Slack application, configure the below parameters:
Enabled: Shows if the Slack App functionality is enabled/disabled. If enabled, the below configuration will be available. By default, Disabled.

  1. Domain Name: Provide the name of the domain on which the application will be used.
  2. Client ID: Provide the ID of the Slack client.
  3. Client Secret: Provide the secret ID of the Slack client.
  4. Sharable URL: This is the shareable URL received from the Slack client. Once configured, the Virtual Agent can send responses to the Slack application.

To learn more about configuration in the Slack application, refer to the link SLACK CONFIGURATION.

Teams App Config

The Teams App Config page allows you to integrate the Teams client application with the Virtual Agent. This enables the Virtual Agent to send responses to the requester over the Teams application.

Teams App Config
Teams App Config

To integrate the Teams application, configure the below parameters:
Enabled: This shows whether the Teams App functionality is enabled. If enabled, the below configuration will be available. By default, Disabled.

  1. Client Id: Type the ID of the client application.
  2. Password: Type the password.
  3. Attachments: Attach any files if required. Once configured, the Virtual Agent can send responses to the Teams application.

To learn more about configuration in the Microsoft Teams application, refer to the link TEAMS CONFIGURATION

Telegram App Config

The Telegram App Config page allows you to integrate the Telegram client application with the Virtual Agent. This enables the Virtual Agent to send responses to the requester over the Telegram application.

Telegram App Config
Telegram App Config

To integrate the Telegram application, configure the below parameters:

Enabled: This shows whether the Telegram App functionality is enabled. If enabled, the below configuration will be available. By default, disabled.

  1. Client Id: Type the ID of the client application.

To learn more about configuration in the Telegram application, refer to the link TELEGRAM CONFIGURATION.

Facebook Messenger App Config

The Facebook Messenger App Config page allows you to integrate the Facebook Messenger client application with the Virtual Agent. This enables the Virtual Agent to send responses to the requester over the Facebook Messenger application.

Facebook Messenger App Config
Facebook Messenger App Config

To integrate the Facebook Messenger application, configure the below parameters:

Enabled: This shows whether the Facebook Messenger App functionality is enabled. If enabled, enter the Client Id of the application. By default, it is disabled.

WhatsApp Config

WhatsApp is a chat application to communicate on the go. Using WhatsApp for incident creation and management will become easier if you integrate the ServiceOps with WhatsApp. Once combined, you can generate or review requests from WhatsApp without signing in to the Support Portal or accessing the chat agent from the portal. In this case, WhatsApp Business Account is used for integrating WhatsApp with ServiceOps.

Such integrations provide programmable communication tools for sending and receiving messages, and performing other communication functions using its web service APIs.

WhatsApp Config
WhatsApp Config

To integrate the WhatsApp application, configure the below parameters:

Enabled: This shows whether the WhatsApp functionality is enabled. If enabled, the below configuration will be available. By default, disabled.

  1. Client Id: Paste the Client ID (permanent token) copied from the Meta for Developers page.
  2. Phone number ID: Paste the Phone number ID copied from the Meta for Developers page.
  3. Access ID: Enter the Access ID using which a connection will be established between the Facebook and ServiceOps. The ID can be any text or combination of text and numbers. For example: Hello. Use this same Access ID in the Verify token field while editing the Webhook Callback URL.
  4. Once done, click Update.

To learn more about configuration in the WhatsApp application, refer to the link WhatsApp Integration with ServiceOps v.1.1.