Your bot can have many dialog tasks with related components. You can use the Dialog Editor to create, review, and edit a single dialog task for a bot. However, to better visualize and understand relationships and settings for all dialog tasks in a bot, you must use the Manage Components feature.
Manage Task Components
To manage your dialog tasks, follow the below steps:
- Open the bot for which you want to manage the dialog task components.
- On the left pane, click Bot Tasks.
- By default, Dialog Tasks is selected. Click Manage Components on the top-right.
Dialog Components
The Dialog Components window shows all the components used in any dialog task of the bot. To view or modify the settings of a component, click its name. The Properties panel of the node opens.
The following table lists the details included in the window for each component type
Component Type | Details |
---|---|
User Intent |
|
Entity |
|
Message |
|
Script |
|
Service |
|
Confirmation |
|
Webhook |
|
Agent Transfer |
|
Upgrade Tasks
After you publish a task, the Bots Admin approves and deploys the task to make changes in the published bot. You must upgrade the bot; then publish the upgrade for Bots Admin approval and deploy it to users. However, you can make minor changes such as task descriptions, Task Demo link, and custom error messages on the General tab for a task.
For example, the bot Name can only be changed if the bot is not published. To change the name of a published bot, the Bots Admin must suspend the bot by removing all assigned users and marking the bot task inactive.
Edit Basic Settings
This section describes how to make changes to a published task. Basic settings can be changed and saved without upgrading the bot because the end-user experience is not changed. Only limited settings can be changed for a published bot.
To edit settings for a published task, follow the below steps:
- Open the bot to edit the task.
- On the left pane, click Bot Tasks.
- By default, the Dialog Tasks tab is displayed. Hover over the respective task and click the Settings icon. The General tab for the published task is displayed with both read-only and editable fields.
- Click Save to save the modified settings and close the General tab.
You cannot access other tabs of a published task for editing. However, you can click the Settings icon and then select View to view all tabs of a published task. Editing a published task using the Edit Basic Settings command does not require enterprise admin nor end-user approval or action. The Version number of the task is unchanged.
Upgrade Tasks
If you need more than a minor change to the published task, you must upgrade the task to a new version.
Upgrade Types
There are two types of upgrades for a task:
- Mandatory – A mandatory upgrade generally does not require end-user action, and users are only informed that the task was upgraded with an auto-upgrade. If a mandatory upgrade does require end-user action, for example, new authentication requirements, the end-user is notified to take the action for a manual upgrade, sent reminder notifications, and finally, expiration of the original task after 15 days.
- Optional – An optional upgrade is not required and is not auto-upgraded for users. End-user action is required to complete the manual upgrade and the user can choose whether or not to upgrade.
Task Upgrade Definitions
A Version Type is either a major or minor update. Depending on the changes of the bot task, you can specify the version type as a minor or major update for the revision number. All published tasks begin with the Version set to 1.0. A major update is set with the Version to 2.0, while a minor update is set with the Version to 1.1.
As part of the end-user upgrade experience, you must define the messages shown to the user to describe the upgrade and other messages that describe what the upgrade will change.
Verify Flows
If the upgraded task is mapped in a flow, you must review, update, and confirm existing mapping values defined in the flow. If the flows are not verified, mapped action tasks will not be displayed in the upgraded task for the end-user.
Upgrade a Task
Using the Upgrade command, a duplicate of the original task is created where you can make your modifications without affecting the published version. Then, when ready to deploy, you can decide if the upgraded task is mandatory or optional for users that are already using the originally published task.
To upgrade a task, follow the below steps:
- Open the bot to edit the task.
- On the left pane, click Bot Tasks.
- By default, the Dialog Tasks tab is displayed. Click Action Tasks or Alert Tasks.
- Click the Settings icon of the published task you want to upgrade, and then click Upgrade.
- A duplicate of the published task is created with the Status set to Upgrade In Progress and the General tab is displayed.
- Modify the task and click Finish Setup.
After the modifications to the upgraded task, the task status is set to Configured and the version is set to Draft.
Delete and Recall Tasks
As a developer, you can create, modify, upgrade, publish, and when needed recall a task approved for publishing, and delete a task if no longer needed. This topic describes how to recall or delete a task.
After you publish a task and the Bots Admin approves the task, the task becomes available to users either employees or end-user customers. It is available only after the Bots Admin assigns the approved bot to users. Once a task is made available to users, it is like a book that has been printed, published and distributed for the general public, and cannot be deleted by the developer or the Bots Admin. However, a Bots Admin can suspend usage of a bot by users. When a task is suspended by the Bots Admin, the Status of that task is displayed as Suspended in Bot Builder. For more information about task Status, refer to Getting Started with Building Bots.
When you publish a task, the status of that task is displayed as Awaiting Approval in Bot Builder. Tasks with this status can be Recalled before the Bots Admin approves the task. When a task is successfully Recalled, the status reverts to Configured, and you can edit or delete the task as needed.
To recall a task, follow the below steps:
To recall a task, the Status must be Awaiting Approval.
- In Bot Builder, on the left navigation menu, click the Bot that is defined with the task that you want to recall, and then on the Bot Tasks tab, click the Expand icon for the task type you want to recall.
- Point to the task you want to recall, click the Settings icon that is displayed, and then click Recall.
- In the Recall Confirmation dialog, click Continue.
The task is recalled from the Bots Admin, and the Status is updated to Configured in Bot Builder.
To delete a task, follow the below steps:
To delete an unpublished task, the Status must be Configured, In Progress, or Rejected.
- In Bot Builder, on the left navigation menu, click the Bot that is defined with the task that you want to delete, and then on the Bot Tasks tab, click the Expand icon for the task type you want to delete.
- Point to the task you want to delete, click the Settings icon that is displayed, and then click Delete.
- In the Delete Confirmation dialog, click Continue.
The task is deleted from Bot Builder.
Next Steps
You might want to look into how to work with the Prompt Editor, refer here for more.