Example: Add work items to a queue

Workload command is used to manage complex workflow by configuring a bot to perform work items from multiple queues. Add a new work item to a queue using the Workload command.


Review the required conditions to use the Workload command.

The steps are a general example of how to automate this task.


  1. Navigate to New > Workbench.
  3. Click Add to create two variables:
    • InvoiceOwner: the string value is EllieBrownEnterprise
    • WorkItemNumber: this is a random number with the value in the range of 1 through 10
  4. Use the Loop command to set a loop for 10 times.
  5. Double-click or drag the Insert Work Item command to the Task Actions List pane.
    The Workload window appears with the list of queues for which you have a Participant privilege.
  6. Select the necessary queue name from the list of queues to insert as a work item.
  7. Enter data in the Value column.
    • You can manually type the required value.
    • You can assign a variable value to these attributes by pressing the F2 key and selecting the necessary variables from the list.

      Select the variables InvoiceOwner and WorkItemNumber.

  8. Click Save.
    The command is added to the bot.
  9. Add more data using the Insert Work Item command.
    Once you have added the required data, save the bot and upload it to the Control Room for further processing and deployment.
  10. Run the task from the Control Room to populate the work items.