Robotic Process Automation (RPA) bot generation
Summarize
Summary of Robotic Process Automation (RPA) bot generation
The RPA bot generation skill in ServiceNow enables users to create automations, activities, and extend automation logic using text instructions within the RPA Desktop Design Studio interface. This skill leverages generative AI to streamline the development of RPA workflows, allowing for rapid creation and modification of automation components.
Show less
Key Features
- Quick Automation Creation: Build new automations efficiently from text-based prompts.
- Modular Activity Addition: Easily add new activities to existing automations to ensure scalability.
- In-line Logic Refinement: Refine automation logic dynamically whether starting from components or a blank design surface.
- Role-Based Access: Requires RPA Developer or RPA Admin roles, which include the Now Assist Admin user role, to access generative AI capabilities.
- Activation and Licensing: The skill is activated by installing the Now Assist for RPA Hub application and turning on the RPA bot generation skill. It requires a Workflow Data Fabric license and Now Assist for Creator license.
- Generative AI in RPA Desktop Design Studio: Available only to users logged in with RPA Developer or Admin roles after enabling the skill. Role switching requires restarting the studio to maintain access.
Practical Use Cases
ServiceNow customers can use clear, step-by-step text instructions to generate RPA automations for tasks such as:
- Retrieving and processing meeting emails, including handling attachments and marking emails as read.
- Splitting PDF pages and converting them to Excel files.
- Modifying JSON objects by adding properties.
- Finding and replacing text in Word documents.
- Modifying DataTables and exporting data as CSV files.
- Generating charts from Excel data, saving as PDFs, and emailing via Outlook.
- Extracting and summarizing emails with attachments, then sending summary emails.
- Fetching unread emails and saving them to local folders.
- Retrieving application credentials from ServiceNow and automating login actions.
Guidelines for Writing Instructions
- Be clear, specific, and direct in describing desired actions.
- Avoid vague language, jargon, and abbreviations.
- Specify file paths, parameters, and context explicitly to reduce ambiguity.
- Break complex tasks into simple, sequential steps to enhance clarity and execution.
Limitations and Considerations
The skill has documented limitations that customers should review before use. Proper role assignment and licensing are mandatory to access the generative AI features. Switching roles during a session requires restarting the RPA Desktop Design Studio to maintain functionality.
Use the RPA bot generation skill to create automations, activities, and automation logic additions from text instructions and preview options from the RPA Desktop Design Studio user interface.
- Build simple, brand-new automations quickly and efficiently.
- Easily add new activities to existing automations, ensuring modularity and scalability.
- Use in-line prompting to refine automation logic, whether starting from components or a empty design surface.
Roles
RPA developer (sn_rpa_fdn.rpa_developer) or RPA admin (sn_rpa_fdn.rpa_admin) roles are required to use this skill. These roles contain the Now Assist Admin user role (sn_nowassist_admin.user).Activation
Install the Now Assist for RPA Hub application from the ServiceNow Store website. For more information, see Configure Now Assist for RPA Hub.
Then, turn on the RPA bot generation skill to use generative AI for creating automations and activities, and extending automation logic. For more information, see Turn on the RPA bot generation skill.
You must have a subscription for Now Assist for Creator and RPA Hub applications. For more information, see Supporting information for Now Assist for RPA Hub.
Licensing requirements
The Now Assist for RPA Hub application requires a Workflow Data Fabric (previously known as Automation Engine) license and a Now Assist for Creator license.
Example instructions
- Example instruction 1: Retrieve and process meeting emails
- You can use this instruction to create an automation for retrieving and processing meeting emails in Microsoft Outlook.
Retrieve a list of meeting-related emails from the 'Calendar' folder in Outlook. For each email, store all attachments in a separate folder named 'Meeting Attachments'. Lastly, mark the email as read.
- Example instruction 2: Split and convert PDF pages to excel
- You can use this instruction to create an automation for splitting and converting PDF pages to Microsoft Excel.
Split each page of a PDF into a separate PDF files into the folder path 'C:\Users\Input', then retrieve all files from this folder, now iterate over each file then convert each PDF document into an Excel.
- Example instruction 3: Add property to JSON object
- You can use this instruction to create an automation for adding a property to a JSON object.
I have a sample JSON object represented as a string as follows: { "name": "Jane Doe", "id": 12345" } I want to add a new property called "Designation" and set its value to "Engineer".
- Example instruction 4: Find and replace text in a Word document
- You can use this instruction to create an automation for finding and replacing text in a Microsoft Word document.
Open a word document, find and replace the value #NAME with 'ServiceNow' in the word document. Save the word document at 'C:\Users\Desktop\test.docx'.
- Example instruction 5: Modify and export data as CSV
- You can use this instruction to create an automation for modifying and exporting data as a CSV file.
Load a DataTable from the list, set the name of the first column to 'Name', and update the row data. Finally, export the table as a CSV file.
- Example instruction 6: Generate and send excel data as PDF
- You can use this instruction to create an automation for generating and sending the Microsoft Excel data as a PDF in an email via Microsoft Outlook.
Open Excel from 'C:\Reports\Sales\Monthly_Sales_Data.xlsx'. Generate a chart based on sales data in sheet named Saleschart and then save this excel sheet as a PDF document at 'C:\Reports\Sales\Reports\Monthly_Sales_Data.pdf'. Now send an email to team@xyz.com using Outlook.
- Example instruction 7: Extract and summarize work emails with attachments
- You can use this instruction to create an automation for extracting and summarizing work emails with attachments.
Extract a list of work related emails from outlook with attachments from the 'Projects' folder. Save all the attachments to a designated folder on your system. Generate a summary email listing all the saved attachments and their respective emails. Send this email to the project manager.
- Example instruction 8: Split and read PDF pages
- You can use this instruction to create an automation for splitting and reading PDF pages.
Load a PDF file from the 'C:\input\test.pdf', split the PDF file, save them to 'C:\output folder', generate one PDF for each page, and then read the text from the first page.
- Example instruction 9: Fetch and save unread emails
- You can use this instruction to create an automation for fetching and saving unread emails.
Fetch all the unread mails from the 'AI-inbox' folder of the email account. Iterate through each email and save the mail to the folder 'C:\Mails'.
- Example instruction 10: Retrieve and set application credentials
- You can use this instruction to create an automation for retrieving and setting application credentials.
From the ServiceNow instance, get the application credentials for the app named 'SAP' application. Now, set the value into the Username field and password field. Then, click on the login element.
General guidelines
- Be clear and specific
- State exactly what you want. Use direct and clear sentences for the expected actions.
- Avoid vague language
- Don't use jargon or abbreviations. Avoid ServiceNow jargon, such as FD - Flow Designer. For example, avoid instructions such as Trigger a FD action named 'Action1', retrieve its output, and insert it into an existing Word. Instead, use the phrase Trigger a flow designer action named 'Action1', retrieve its output, and insert it into an existing Word file located at 'C:\Users\Worddocs\wordoc1.doc'.
- Avoid ambiguity
- Be specific for the context related to methods. For example, avoid instructions such as Open file from file path 'C:\Users\Analysis\DataAnalysis.xlsx'. Instead, use the phrase Open an excel file from file path 'C:\Users\Analysis\DataAnalysis.xlsx'.
- Set expectations and constraints
- Specify component parameters wherever possible. For example, avoid instructions such as Read the content of the file located in C drive and copy that content as the body of an email and then send it to 'email@ss.ss'. Instead, use the phrase Read the content of the file 'c:/d/f1/txt', and use the content as body to compose an outlook email with subject "my email text", and send this email to 'email@ss.ss'.
- Use step-by-step instructions
- Break down complex tasks into smaller, manageable steps. For example, use the phrase, Open a Microsoft Word document located at 'C:\Marketing\Templates\Promo_Letter_Template.docx.', delete a specific page based on its index, add a new column to a table at a particular position, and close the document with changes saved to make it clear and simple.
Limitations of the RPA bot generation skill
For more information about the limitations of the Robotic Process Automation (RPA) bot generation skill, see Limitations of Robotic Process Automation (RPA) bot generation skill.
Accessing the generative AI capability in RPA Desktop Design Studio
If you log in to the RPA Desktop Design Studio with either RPA Developer or RPA Admin after enabling the RPA bot generation skill, the generative AI capability is available. In this scenario, you can create and edit automations, activities, and extend automation logic flow through text instructions and preview options.
If you log in to the RPA Desktop Design Studio with a role other than RPA Developer or RPA Admin after enabling the RPA bot generation skill, the generative AI capability will not be available. In this scenario, you will not be able to create and edit automations, activities, or extend automation logic flow through text instructions and preview options.
If you log in to the RPA Desktop Design Studio with a role other than RPA Developer or RPA Admin and then switch to one of these roles, you won't be able to access the generative AI capability. Restart the RPA Desktop Design Studio and log in with RPA Admin or Developer.
If you log in to the RPA Desktop Design Studio with either RPA Developer or RPA Admin, and then switch to any other user roles apart from these, you will encounter an error message when attempting to access the generative AI capability.