Skip to main content

Configuring a web chatbot

Archived

5 Tasks

20 mins

Visible to: All users
Beginner Pega Customer Service 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

Username

Password

System Architect

casysadmin

rules

Your assignment consists of the following tasks:

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

Task 2: Configure the conversation for the chatbot.

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

Task 4: 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.

Customer: Thank you!

Chatbot: You’re welcome!

Challenge Walkthrough

Detailed Tasks

1 Create a parallel flow

  1. Log in to the exercise environment with operator ID casysadmin using password rules.
  2. Click Case types, then click Add a new account to open the service case.
  3. In the case workflow, select the Get Acccount Details stage.
  4. In the Stage configuration panel to the right, select Web Chatbot and click Save. A parallel process for the web chatbot is added to the workflow.
    chatbot workflow

2 Configure the conversation for the chatbot

  1. In the case life cycle, select the WebChatbot-Get Account Details step.
    chatbot workflow
  2. In the step configuration panel to the right, click Open process.
  3. Click Check out to add questions to the flow.
  4. Right-click (on the canvas) and select Add > Automations > Question Shape to add a question shape to the flow.
  5. Double-click the new shape to open the configuration panel. In the Subprocess field, add a name for the question: Account Type.
  6. Add a name for your Question rule: Accounttype
    question configuration
  7. Click the Crosshairs for the Question rule to create and configure the question.
  8. In the Context section page, enter the following information:
    1. Context: Customer service
    2. Add to ruleset: PegaCS-Sample
    3. Version: 08-03-02
  9. Click Create and open.
  10. Configure the Question section by using the following information:
    1. In the Question layout drop-down list, select Plain Text to use a plain text response without any dynamic data.
    2. In the Question, enter Select the type of account you want to open:
    Configure the first question
  11. Configure the Answers section by using the following information:
    1. In the Answer mode drop-down 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 below: (Use the Plus icon to create additional conditional values.)
    Configure the answers
  12. Click Save.
  13. Go back to the GetAccountDetails tab, then click Submit to save the changes.
     
    question configuration
  14. Connect the configured questions to the flow.
    question one flow

3 Build the conversation

  1. Right-click (on the canvas) and 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?

  2. Repeat the steps 5-14 from the previous section using the data in the following steps.
  3. From the Answer mode drop-down list, select Freeform. This Freeform pauses the conversation and waits for the user to answer without any restrictions.
  4. In the Map answer to property, enter or select .Name.
  5. From the Format drop-down list, select Text.
  6. Click Save.
  7. Go back to the GetAccountDetails tab and click Submit to save the changes.
  8. Connect the configured question to the flow.
  9. Repeat the steps 5-14 for the Gender question below:

    Question: Please select your gender:

    Answer: For Answer mode, use Radio buttons; map answer to property .Contact.Gender; enter three Display values: Male, Female, Other.

  10. Repeat the steps 5-14 for the Date of Birth (DOB) question below:

    Question: Please select your Date of Birth.

  11. In the Answers mode, select Freeform from the drop-down list.
  12. In the Map answer to property, select .Contact.DateOfBirth property.
  13. In the Format, select Date to allow the customer to select the date from the calendar.
  14. Click Save.
  15. Go back to the GetAccountDetails tab and click Submit to save the changes.
  16. Connect the configured question to the flow.
  17. Repeat the steps 5-14 for the following questions:

    Question: What is your mobile number?

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

    Answer: Map answer to property: .Contact.MobilePhone

    Question: Enter your email address:

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

    Answer: Map answer to property: .Contact.Email

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

    Our customer service agent will contact you with more information.

    Answer: Map answer to property: .WrapUpComments
     

    When completed the flow should look similar to:

    completed question flow
  18. Click Save to update the case.
  19. Click Check-in, add a comment (for example “Build out open account conversation”), 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.
  20. Go back to the Add a new account tab (or open the Add a new account case type) and click Save.

4 Create a web chatbot channel

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

  1. Click Application > Switch Application > EduSelf Service to access the Edu Self Service application where you create a web chatbot.
    Switching applicaitons
  2. Click Application > Channels and interfaces to configure a web chatbot.
  3. In the Create new channel interface section, click the Web Chatbot icon.
    Select a chatbot channel
  4. In 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 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, 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 Verify 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.



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