Build a Go be Great bot
Build a basic bot using a Message Box action and a variable. Follow these steps to create your first bot that prints the message, Go be great!, the Automation Anywhere version of Hello World!
If you have already completed the steps in Create your first bot, skip to Step 6.
Open a new bot:
- On the left panel, click Automation.
- Click .
- In the Create Task Bot window, enter a bot name.
Accept the default folder location \Bots\.
To change where your bot is stored, click Choose and follow the prompts.
- Click Create and edit.
Insert a Message box
- Click Actions.
Search for the Message Box package.
Click in the Actions search box and enter message. Click the arrow to expand the Message Box options.
- Double-click or drag the Message box action to the Bot editor (open space to the right).
In the dialog box on the right, specify the conditions for the
- In the Enter the message box window title field, enter My first bot!.
- In the Enter the message to display field, enter Go be great!.
- Accept the defaults in the Scrollbar after lines field and Close message box after check box.
Your bot is now ready to run.You can view the time spent to create a bot by navigating to . The Active Task Bots table displays the time taken to create every bot. When a bot is edited, the table shows the total time spent on the bot.For example, if you spend 10 minutes on creating and saving a bot, the Active Task Bots table displays the time spent as 10 minutes. If you spend 5 more minutes on editing the same bot, the Active Task Bots table displays the total time spent as 15 minutes.Similarly, the Average time spent to create a Task Bot field on the My Metrics page displays the average time spent across all users on all bots.For example, if user 1 spends 120 minutes on Bot A, user 2 spends 2 minutes on Bot B, and user 3 spends 4 minutes on Bot C, the average time calculated is (120+2+4)/3 = 42 minutes.
Test your bot.
Click Run at the top right.The bot displays a Message box with the text Go be great!.
In the following steps, you configure a variable and insert it in the Message box.
Create a variable.
- Click Variables from the accordion menu on the left panel.
- Click Create variable (the + sign).
- Enter vHelloWorld in the name field.
- Select the Use as output option.
- Enter Say Go be Great! with a variable in the Default value field.
- Click Create.
Assign the vHelloWorld variable to the Enter the
message to display field.
- Click the Message box action in the Bot editor.
- In the dialog box, delete the text from the Enter the message to display field.
Either press the F2 key or click the Insert
The Insert variable icon is located on the right-side of the text field.
- Select vHelloWorld from the drop-down list.
- Click Yes, insert.
- Click Save.
The bot displays a Message box with the text Say Go be Great! with a variable.
After you successfully run your bot, go to Build a basic bot that uses a desktop application.