activities
latest
false
UiPath logo, featuring letters U and I in white
Integration Service Activities
Last updated Nov 5, 2024

Working with UiPath GenAI activities

Overview

The UiPath GenAI Activities allow you to take advantage of quality-gated, task-specific actions that don't require prompt development. Instead, these activities ask for key inputs with common data types. This speeds up the development process and removes the need for extensive testing for the most common applications of generative AI.

By design, the activities are less configurable, meaning they don't allow extensive free-form instructions for the models. This is on purpose, so that UiPath can offer a certain level of confidence if input instructions are followed. If free-text instruction and greater nuance are required for specific use cases, choose the Content Generation activity and build prompts that meet your unique needs.

Here is a summary of how the UiPath GenAI Activities work:

  • Summarize Text – Provide the text to summarize, as well as additional options like output format, total words, etc. The output is the summarized text as a string.
  • Generate Email – Provide the content that the email must contain, the writing style, output format, and the option to offer an example email to emulate. This can be returned in the language of the input or in another language.
  • Rewrite – Provide the content to rewrite, rewrite instructions, total words, and an example. This can be returned in the language of the input or in another language.
  • Translate – Input the text to translate and the language to translate to.
  • Language Detection – Input the text from which to detect the language of.
  • PII Filtering – Input the text to analyze for PII or PHI and which specific types of PII or PHI they are interested in finding. If none are selected, all will be searched for. The output includes the PII category, text, and a redacted version of the text removing all PII. This can be used on its own or run through a model without fear of PII being shared. Note that data is never retained by third-party models or used for training purposes.
  • Categorize - Categorize content based on a provided set of categories and category descriptions.
  • Named Entity Recognition - For a given text string, identify and classify named entities.
  • Index and Ingest (Public Preview) - Index and ingest data from data sources to create embeddings to support Retrieval Augmented Generation (RAG) within UiPath GenAI Activities. Supports Context Grounding.
  • Delete Index (Public Preview) - Designed to work with Index and Ingest (Public Preview) to manage datasets available for Context Grounding.

Working with files

The UiPath GenAI Activities require you to input one or various text strings that generative models use. That text is usually contained in a file, which means you must first extract the content. You can do this using a couple of different methods or techniques.

Get files to use as input

First, you must pull the file into the workflow. You can achieve this in a variety of ways, including:

  1. Download or locate a file:
    • Download File activities, available in Google Drive, OneDrive, Box, Dropbox, etc. Many Integration Service connectors offer the ability to pull a file from a specific cloud storage environment. You can use this option for serverless robots.
    • Path Exists: This activity allows you to find a local file to use within their workflow. This does not work for serverless robots.
    • Download Storage File: This activity allows you to pull in a document to a workflow from an Orchestrator bucket.
    • Download file from URL: This activity allows users to download a file from a publicly-accessible URL.
  2. Queues and queue items:
    • You can also take advantage of queues and queue items to pull in as inputs for GenAI activities.
Extract content from files

Once you have your file, you must extract the content (text strings) that the generative models use. You can achieve this through:

  • Document Understanding: Use the Extract Text from PDF activity to pull all of the text from a PDF file.
  • Integration Service Vision connectors and activities: Use either Google Vision, Microsoft Vision, or OpenAI to upload files and extract the text inside. This requires subscriptions to these services to work.
  • Read Range: Using the Microsoft Excel or Google Sheets connectors, the Read Range activity can extract content from an Excel or CSV file and save the contents to a DataTable. You can convert this DataTable to a string using the Output DataTable activity or add the DataTable to the prompt directly.
Validation

Use Persistence activities, such as Create External Task and Wait for External Task and Resume, to set up human in the loop steps in your workflows to ensure the quality of the output.

  • Overview
  • Working with files

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.