Attach work item template to bot

Attach a work item template to a bot to use the bot in workload automation.

When you attach a work item template to a bot, you can use the variable $WorkItem$ that contains the attributes for the required workload automation when you run the bot using the Run bot with queue option.

Use Work Item variables

Procedure

  1. On the left pane, click Automation.
    A list of available bots and forms is displayed.
  2. Create or edit a Task Bot from the Automation page.
    The Task Bot opens in edit mode.
  3. Select the option Work item template from the menu at the top-right of the Workbench.
    The list of Work item templates appears.
  4. Select the template that best suits your workload automation requirement.
  5. Click the right arrow to add the template.
    The Work item template attributes are listed for the selected template.
  6. Click Save.
  7. Choose one of the following actions:
    • Click Close to return to the My bots page.
    • Click Return to editor to continue editing the Task Bot.
    Note: When you attach a work item template to a bot, you must deploy the bot using the Run bot with queue option in the Bot editor. If you deploy the bot using the Run bot now or Schedule bot option, the bot execution fails.