Skip to main content

Configuring a web chatbot

Archived

5 Tasks

20 mins

Visible to: All users
Beginner
Pega Customer Service 8.5
English
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded.

Scenario

The business wants to let customers open an account by using web chatbot. The chatbots can handle this type of request and allow agents to focus on other customer issues. If needed, a chatbot session can be transferred to an agent.

Use the following credentials to log in to the exercise system:

Role

User name

Password

System Architect

casysadmin

rules

Your assignment consists of the following tasks:

Task 1: Create a parallel flow

Create a parallel flow for the Add a new account service case.

Task 2: Configure the conversation for the chatbot

In the case life cycle, configure the conversation for the chatbot by selecting the WebChatbot-Get Account Details step.

Task 3: Build the Conversation

Configure a web chatbot channel to recognize when someone wants to open an account.

Build the conversation as follows:

Customer: I would like to open an account in the bank.

Chatbot: Select the type of account you want to open:

  • Single Account
  • Joint Account

Chatbot: Let me get some of your personal details.

                What is your full name?

Chatbot: Please select your gender:

  • Male
  • Female
  • Other

Chatbot: Please select your Date of Birth.

Chatbot: What is your mobile number?

(Please provide a valid phone number e.g. +91-9984124753)

Chatbot: Enter your email address:

(Please provide a valid email address e.g. [email protected])

Chatbot: Great. We have all the information we need.

Our customer service agent will contact you with more information.

Task 4: Create a web chatbot channel

Create a web chatbot channel in the EduSelf Service application and configure the channel to use the Add new account chatbot conversation.

Task 5: Confirm your work

Test your chatbot in the preview console in the Configuration tab. Enter I would like to open an account. Doing so triggers your case. Verify that you are asked the questions you configured.

Challenge Walkthrough

Detailed Tasks

1 Create a parallel flow

  1. Log in a system architect with User name casysadmin using Password rules.
  2. In the navigation pane of DEV Studio, click Case types > Add a new account to open the service case.
  3. On the Workflow tab of the case, on the Get Acccount Details stage, click the More icon.
  4. Click Add channel process > Web Chatbot.
    CH25591-2-EN-workflow

A parallel process for the web chatbot is added to the workflow.

CH25591-2-EN-Case life cycle

2 Configure the conversation for the chatbot

  1. In the case life cycle, select the WebChatbot-Get Account Details step.
    CH25591-2-EN-webchatbot step
  2. In the Step configuration pane on the right, click Open process.
    CH25591-2-EN-Open process
  3. Click Check out to add questions to the flow.
  4. On the canvas, right-click, and then select Add > Automations > Question shape to add a question shape to the flow.
    CH25591-2-EN-Question shape
  5. Double-click the new shape to open the Answer question dialog box.
  6. In the Subprocess field, enter Account Type to name your subprocess.
  7. In the Question rule field, enter Accounttype.
    CH25591-2-EN-Answer question
  8. To the right of the Question rule field, click the Open icon to create and configure the question.
  9. In the Context section, enter the following information:
    1. Context: Customer service
    2. Add to ruleset: PegaCS-Sample
    3. Version: 08-05-02
  10. Click Create and open.
  11. On the Question tab, enter the following information:
    1. In the Question layout list, select Plain Text to use a plain text response without any dynamic data.
    2. In the Question text box, enter Select the type of account you want to open:
      CH25591-2-EN-question
  12. On the Answers tab, enter the following information:
    1. In the Answer mode list, select Dropdown menu. The Dropdown menu pauses the conversation and waits for the user to enter an answer.
    2. In the Map answer to property, enter or select the case property .AccountType to which the user's answer should be mapped.
    3. In the Display value fields, enter the values shown in the following image:
      CH25591-2-EN-Answers
Tip: Use the Add icon to create additional conditional values.
  1. Click Save.
  2. Click the GetAccountDetails tab, then click Submit to save the changes.
    CH25591-2-EN-Account type
  3. On the canvas, connect the configured questions to the flow.
    CH25591-2-EN-Case flow

3 Build the conversation

  1. On the canvas, right-click, and then select Add > Automations > Question Shape to add another question to the flow.

Question: Let me get some of your personal details.

What is your full name?

  1. For the Name question, repeat the steps 5-15 from the previous section using the data in the following steps.
  2. In the Answer mode list, select Freeform. This Freeform pauses the conversation and waits for the user to answer without any restrictions.
  3. In the Map answer to property, enter or select .Name.
  4. In the Format list, select Text.
    CH25591-2-EN-Answers Name
  5. Click Save.
  6. Click the GetAccountDetails tab, and then click Submit to save the changes.
  7. On the canvas, connect the configured question to the flow.
  8. Repeat the steps 4-15 for the following list of questions:

    Question

    Answer

    Please select your gender:

    1. In the Answer mode list, select Radio buttons.
    2. In the Map answer to property field, enter or select the .Contact.Gender property.
    3. Enter three Display values: Male, Female, Other.

    Please select your Date of Birth.

    1. In the Answers mode  list, select Freeform.
    2. In the Map answer to property  field, enter or select the .Contact.DateOfBirth property.
    3. In the Format  list, select Date to allow the customer to select the date from the calendar.
    4. Click Save.
    5. Click the GetAccountDetails  tab, and then click Submit to save the changes.
    6. Connect the configured question to the flow.

    What is your mobile number?

    Please provide a valid phone number e.g. +91-9984124753

    In the Map answer to property  field, enter or select the .Contact.MobilePhone property.

    Enter your email address:

    Please provide a valid email address e.g. [email protected]

    In the Map answer to property  field, enter or select the .Contact.Email property.

    Great. We have all the information we need.

     

    Our customer service agent will contact you with more information.

    In the Map answer to property  field, enter or select the .WrapUpComments property.

When complete, the flow looks like the following image:

CH25591-2-EN-Result
  1. Click Save to update the case.
  2. Click Check-in, enter a comment (for example, Build out open account conversation), and then click Check-in. Now that you have successfully configured the parallel process for the webchat channel, you need to add the parallel process to your channel.
  3. Click the Add a new account tab, and then click Save.

4 Create a web chatbot channel

  1. In the header of Dev Studio, click Application > Switch Application > EduSelf-Service to access the Edu Self Service application where you create a web chatbot.
    CH25591-2-EN-EduSelf Service
  2. Click Application > Channels and interfaces to configure a web chatbot.
    CH25591-2-EN-Channels and interdaces
  3. In the Create new channel interface section, click the Web Chatbot icon.
    CH25591-2-EN-Web Chatbot
  4. On the Configuration tab, enter a name for the Channel interface name.
  5. Click Add case type to configure a new case type for the chatbot.
  6. Configure the Response section for the case type as follows:
    1. Case type = Add a new account
    2. Create case command = Open an account
  7. Configure the Text analysis section as follows:
    1. Approximate match = open, create, account
  8. Click Submit to update the configuration.
  9. Click the Connection tab, then click the down arrow in the Template operator field and select CASysadmin.
  10. In the upper-right corner, click Save to update your chatbot configuration.

5 Confirm your work

  1. Click the Configuration tab to test your chatbot.
  2. In the Preview console, enter, I would like to open an account. Doing so triggers your case.
  3. Verify that you are asked the questions you configured.


Available in the following mission:

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice