Task Bots - Quick Start Guide

Task bots enable multi-turn conversations where a bot can obtain relevant data from users to perform the task at hand. Task bots augment the no-code bot-building capabilities of Webex Bot Builder by complementing Q&A bots. Q&A bots are pertinent to cases where the interactions with users are restricted to answering specific queries from a corpus or knowledge base with minimal turn-taking involved. Task bots overcome this limitation by enabling multi-turn conversations where a bot can obtain relevant data from users to perform the task at hand.
Use this procedure to create a task bot.

  1. Log in with valid credentials to the application.
1865
  1. Click +New Task Bot on the Dashboard screen. The Bot Profile screen appears.
  2. Specify this information:
    Bot Name
    The name of the bot.
    Bot Unique name
    A unique name for the bot.
    Text orientation
    Display of text format on the platform. Possible values:
  • Left to right (English)
  • Right to left (Arabic)
    URL for the Bot Logo/Brand Image
    The URL from where the bot logo or image defaults.
  1. Select the Allow Feedback toggle to request feedback from the consumer on every bot-message that is triggered in a session.
1882
  1. Click Done. The bot is created successfully, and you are redirected to the Training data screen.

Defining an intent

An intent represents a task or action the consumer wants to perform in each conversation. Bot developers define all intents that correspond to tasks consumers want to accomplish in the bot.
Use this procedure to define an intent:

  1. Select a specific task bot on the Task bots tab of the dashboard screen to which the intents must be added.
  2. Click Training. The Training data screen appears.

  1. Click +Create intent, on the Intents tab. The Create intent screen appears.
1817
  1. Specify the intent name and utterances the consumers might input to trigger this intent.
  2. Click Add utterance after adding each utterance.
1820
  1. Click + Link entity to link entities to the intent, in the Slots section.
    Note: It is optional to link entities to the intent.
1807
  1. Select the entity that must be linked to the intent.
    Note: The entities that are defined on the Create entity page are populated in the list. See Defining an entity section.
  2. Modify this information:
    Entity Name
    The name of the selected entity.
    Required
    Select this check box to make the selected entity a mandatory slot.
    Retires
    The number of incorrect inputs after which the fallback message must be displayed to the consumer.
    Template key
    The template key for the entity. You can define the response that must be displayed to the consumer in this template. See Defining responses section.
815

📘

Note:

• You can link multiple entities to an intent. You can also delete the entity that is added as a slot, using the Delete option.
• You can rearrange the order of the slots, using the Reorder option. This order is followed by this bot to query the consumer one by one to collect the information.

  1. Select the template key for the final response that must be displayed to the consumer once all the required slots associated with the intent are filled.
    Note:
    • You can select the template key from the list or create a new template key, using the + Create New option.
    • You can select the Reset slots after completion toggle to clear the entities that are recognized in the conversation up until that point for that intent.
778
  1. Click Save. The Training data changes to the Saved status.
1589
  1. Click Train to train the knowledge base with the new data that is added.
1814
  1. Provide the comment to track the reason for changes in the bot’s history
  2. Click Continue. After the data is trained, the status of the Training data changes from Saved to Trained.
1804
  1. Click Make live after adding the responses to make this task bot live.

Defining an entity

Entities are data you want to extract from consumer utterances, such as product names, dates, quantities, or any significant group of words. An utterance can include many entities or none.
Use this procedure to define entities that you can link to the intent of a task bot.

  1. Select a task bot to which the entities must be added.
  2. Click Articles. The Training data screen appears.
  3. Click the Entities tab.
  4. Click +Create entity. The Create entity window appears.
690
  1. Specify this information:
    Entity name
    The name of the entity
    Entity type
    The type of entity. Possible values:
    • Custom list
    • Regex
    • Date
    • Time
    • Monetary units
    • Ordinal
    • Cardinal
    • Geolocation
    • Non-geolocation
    • Organization
    • Person names
    • Language
    • Percentage
    • Quantity
    • Duration
    • Free form
    • Map location (WhatsApp)

Value
The value for the entity. You can add multiple values (words) to the entity, using the Add value option.

1625

📘

Note:

This field is displayed only when you set the Entity type as **Custom list.

  1. Click Save.
    You can also use this page to:
    • Modify the entity details, using the Edit option.
    • Delete the entity, using the Delete option.

Defining responses for an intent

Use this procedure to define responses for an intent, which has no or multiple entities. Each entity is linked to a template key. For each template key, a response is defined. There is also a final response that is defined to display for consumers once all the slots linked to a specific intent are filled. The response can be of different types, such as static response, the code editor, and logic builder. The static responses can be in different formats such as, text, carousel, quick reply, image, audio, video, code, and file.

  1. Select a task bot to define responses for an intent.
  2. Click Responses. The Responses screen appears.
  3. Select a custom template that is mapped to the intent through a template key for defining the response.

📘

Note:

You can also modify the responses of the default templates.

  1. Select the response type for the intent linked to a template key. Possible values:
    • Code snippet
    • Conditional response
  2. Specify a response that must be displayed to a consumer who queries for the intent mapped to the template key.
  3. Click Update.
  4. Click Make live.

Configuring the task bot settings

Use this procedure to configure the bot settings. The bot operations in the application are controlled based on these settings.

  1. Select a task bot for which the settings must be configured, on the Task bot tab of the Dashboard screen.
  2. Click Settings. The Bot Configuration screen appears.
  3. Review or modify this information on the Profile tab:
    Bot Name
    The name of the bot.
    Bot Unique Name
    The unique name of the bot.
    Description
    The description of the bot.
    Default language
    The language in which the bot is created. By default, the value is set to English.
    URL for the Bot Logo/Brand Image
    The URL from where the bot logo or image defaults.
    Default Platform Error message
    The error message is displayed when the consumer query does not match with the data that is in the bot’s knowledge base.
    Text orientation
    Display of text on the platform. Possible values:
    Left to right (English)
    Right to left (Arabic)
    Time zone
    Time of a particular country/city. This field is displayed only on the Profile tab of task bots.
  4. Specify this information in the Bot Status section of the Management tab:
    Disable bot
    Select this option to disable the active bot.
    Fallback action
    Select this option to take appropriate action on the incoming messages to the bot. Possible values:
    Do nothing: No action is taken.
    Send to Agent: The chat is handed over to an agent based on the incoming messages to the bot.
    Disabled Message
    The message that is displayed to the consumer who queries a disabled bot.
  5. Specify this information in the Sessions Management section of the Management tab:
    Room Close callback
    Select this option to trigger the callback API before a room is about to close.
    Allow Feedback
    Select this option to request feedback from the consumer on every bot-message that is triggered in a session. This displays the downvote and upvote options to consumers for every bot message on the Bot preview widget.
    Transactions Per Billing unit
    The number of transactions that can be performed for every billing unit.
    Session Close Time [mins]
    The time after which the session must be closed. The value is expressed in minutes.
  6. Specify this information on the Security tab:
    Data retention period (in days)
    The period up to which the data is retained. The value is expressed in days.
    Allow anonymization
    Select this option to make the sessions data anonymous, after the data retention period.
    Advanced data protection
    Select this option to encrypt sessions and consumer data.
    Consent disclaimer message
    The disclaimer message for the consent. This field is available only if you enable the Advanced data protection option.
    Blanket consent for all consumers
    This field is displayed only if you enable the Advanced data protection option.
  7. Specify this information on the Handover tab:
    Allow agent handover
    Select this option to transfer the consumer to an agent when the bot cannot handle the queries or if the consumer explicitly asks for it.
    Enable handover on fallback
    Select this option to allow agent handover after a series of fallback messages in a session. This number is configurable.
    No. of results to store for each message
    The number of articles for which bot’s calculated confidence scores.
    Enable handover on partial match
  8. Select this option to allow agent handover after a specific number of consecutive partial matches in a session. This number is configurable.
    Enable handover for consecutive messages
  9. Select this option to trigger agent handover after a series of consecutive repeated messages in a session. The number of repetitions required for this trigger is configurable.
  10. Select the platforms to which the bot must be integrated, on the Integrations tab.
  11. Click Update bot.

Defining and executing the test cases of a task bot

Use this procedure to define and execute the test cases of a bot. A test case may consist of a series of messages, which can be useful for testing flows.
To define and execute the test cases of a bot:

  1. Select a specific task bot on the Task tab of the Dashboard screen.
  2. Click Testing.
  3. Specify this information on the Testcases tab:
    Message
    A sample consumer message that contains the kind of messages you expect consumers to send to your bot.
    Expected template
    The template whose response must be displayed for the corresponding consumer message. This field comes with a smart auto-complete feature to suggest matching templates based on the text typed to that point.
    This populates the templates that are on the Responses screen.
1820
  1. Select the Reset previous context check box to clear the previous context before executing the test cases.
  2. Click Execute tests on the Execution tab to run and execute the test cases.
1639
  1. Select to execute test cases on the latest trained version of the bot or the live version.
    Note: You can abort the test cases midway, using the Abort run option.
  2. Review the test summary that provides details, such as a number of passed test cases, failed test cases, pending test cases, triggered dates, and status of execution.
  3. Review this information:
    Status
    The status of the test case that is executed. Possible values:
    o Pass
    o Fail
    Utterance
    The query of a consumer.
    Expected template
    The response template is expected to be displayed for a consumer query.
    Actual template
    The actual response template that is displayed for a consumer query.
    Room ID
    The room ID that is generated for a consumer whenever the conversation is initiated

You can perform these actions from the Ellipses option in the Action field:
• Click Transaction details to view the transaction information of a specific utterance that is displayed on the Sessions screen.
• Click Test in Preview to test the articles in the preview chat widget.
• Click Copy transaction ID to copy the transaction ID for viewing the transaction information of a specific utterance in the log management system.