Skip to main content

Most of the time, automation leaders or customers expect us to deliver use cases quickly, while ensuring they are robust and reliable. In the .30 Automation Success Platform release, there is a new feature called Templates. This feature allows us to create reusable components and publish them in a common public folder. It enables both citizen and professional developers to create and utilize these templates, thereby reducing turnaround time for delivering new or common use cases with much ease.

In this blog, we will explore how to create Custom Templates for task bots. Let's explore a few reusable component ideas you can implement in your organization.

  1. Industry Specific Reusable Components
  2. Config Reader
  3. CRM Login/Logout tasks
  4. Accessing Terminal Emulator Screens
  5. Updating error logs and sending notifications
  6. CRUD Operations in Database
  7. API operations
  8. Environment Setup
  9. File and folder management
  10.  Reporting & Monitoring
  11.  Websites and many more.

Pre-Requisites

Create a custom role and assign the following permissions for both pro and citizen developers who will use the Templates Folder:

  • View my bot's permission
  • Check in
  • Check out
  • View content

 

Template Creation

Create a common Templates Folder in a private workspace, which will be used to store all the reusable tasks.

 

ConfigReader Template Overview

The Config Reader reusable template will fetch the config node values that are configured in the config.xml file into the respective variables for further usage in the Parent bot. Before it reads the node, it will verify if the given XML is valid or not. If it's valid, it will fetch the node values. If not, it will log the required details and terminate the bot. Feel free to customize the nodes and logic as per your needs.

 

Download the Config.xml file from the path below and map the path to the 'sConfigPath' variable. Then, create a Logs.txt file and pass the value to the 'sLogFilePath' variable before running the bot.

Configure Input Variables:

Bot Output:  

 

Find the Template and Config links below for usage:

Template : Link        

Config : Link

 

  1. Will be using “ConfigReader” task bot developed by pro developer for reading config file values as a template.

 

  1. On the top right, click on the drop-down button next to the save button, and select the Save as Template option.

 

  1. Provide the template name, choose the destination Template Folder and click on Save.

 

 

  1. Let's check-in the template to see it in the public workspace.

 

 

  1. Feel free to edit, copy, delete, export and import the template from the public workspace in the same way we do for task bots.

 

Create Task Bot from Template

Enable citizen developers to create task bots from templates.

 

  1. In the top right corner of the private workspace, click on Create New >> Task Bot from Template.
  1.  Select the required template from the catalog. Here, we will choose the ConfigReader Template and click Continue.
  1. Provide Bot Name, choose the target folder and click on Create & edit button.
  1. In a few seconds, the template is converted to a task bot in your private workspace for customization as per business need.
  1. Checkout templates - known behaviors from this link.

 

 

Conclusion

The Automation Success Platform's Templates feature is a game-changer. Citizen and pro developers can build and share reusable task bots, streamlining development. Experience significant time savings and empower your team to automate faster, together.

 

 

Excellent @ChanduMohammad. Thank you for trying out the Templates capability and sharing the detailed steps to create and use them, and sharing an example. Glad that the capability has been useful for you. 


Reply