Use the Run, Pause, and
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.
Build bots of shorter automation sequences and run them from a
parent bot. For example, build a
Login child bot to enter the username and password into a web form and click submit.
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.
In addition, running
child bots from a parent bot offers greater control
over data in the following ways:
- Users can configure the variables to control the direction in which information
can be exchanged by selecting from the following options:
See Create a variable
- Use as input: The variable holds a value that can
be passed from a parent bot or third-party software to a
- Use as output: The variable holds a value that
can be passed from a child bot 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
The Task Bot
package includes the following actions:
||Temporarily pauses the running bot. Use the
action to modify data or to verify the status of
a relevant component.
When the bot reaches the
action during run time, a
Resume button appears. You must
click Resume for the bot to continue to the next action.
||Runs the selected child bot with the specified
input values and saves the output values to a dictionary
variable. Each key in the dictionary is the variable name and
corresponding value from the child bot.
For an example, see Example of using the Run action.
must know the variable names from the child bot to
extract them from the parent bot. The interface does
not automatically import the variable names to the parent bot.
- Use a Dictionary variable to hold the
output of the Run
action in order to make the parent bot more versatile. This way a parent bot can handle different child bots regardless of whether they return a single value or several
||Stops the running bot.
For example, use the
action to terminate the bot if
a condition is met, such as if the bot
encounters a file larger than 100 MB.