Task Bot package
- Updated: 2024/03/04
Task Bot package
Use the Run, Pause, and Stop actions in the Task Bot package to manage running one or more child bots from a parent bot or with a third-party software using an API.
Login
child bot to enter the username and password into a web form and click submit.
The Login
child bot accepts credentials from the parent
bot and returns a success message, and then the parent bot can call the subsequent CreateInvoice
child bot. The Login
child bot should also
contain error handling logic in case the credentials are incorrect.This practice of
building smaller, self-contained bots enables a user to reuse the bot logic in a greater number of tasks, and makes error handling and
troubleshooting easier. This also decreases the amount of time spent building and
maintaining bots. As a result, an organization is able to rapidly
scale their automation initiatives. The Login
child bot from this example can be reused in any task that involves
providing credentials to a login page on a website.
When you run a Task Bot that calls itself repeatedly until you choose to stop it, the bot runs infinitely and, as a result, encounters an error related to stack memory issues. We recommend that you create a parent and a child bot with different names and then run the child bot from the parent bot.
- When you create a Task Bot, ensure that the parent and child bots should have the same package version.
- CSV/text file and Recorder sessions cannot be shared across bots. You can share Excel sessions across bots by using a session variable. See Example for sharing an Excel session between bots.
- When you use a file type variable in the Run Task, ensure you have set the default value in the variable. Without default value, the bot displays an error on execution.
In addition, running child bots from a parent bot offers greater control over data in the following ways:
- Users can configure the variables in the child bot to control the
direction in which information can be exchanged by selecting from the following
options:
- Use as input: The variable holds a value that the child bot accepts from a parent bot or third-party software.
- Use as output: The variable holds a value that the child bot passes to the parent bot or third-party software.
- Both: The value can be passed in both directions.
- Neither: The variable is confined to this bot; it cannot be shared across other bots.
- Other users can reuse child bots without viewing their contents.
The Task Bot package includes the following actions:
Action | Description |
---|---|
Pause | See Pause action. |
Run |
|
Stop | See Stop action. |