21.6 GenAI Activities: Generative AI Inside Workflows

Key Takeaways

  • GenAI Activities cover content generation, summarizing, rewriting, translation, categorization, entity recognition, sentiment, PII filtering, and image tasks.

  • Context Grounding Search and Update Context Grounding Index connect workflows to grounded company knowledge.

  • Prefer the narrowest activity, constrain and validate outputs, and ground answers in company data.

  • Use PII Filtering and AI Trust Layer policies to protect data, and route consequential decisions to people.

  • Test GenAI steps with a fixed set of real inputs and re-run it when prompts or models change.

Last updated: September 2026

21.6 GenAI Activities: Generative AI Inside Workflows

Core Concept: GenAI Activities let a workflow use large language models for common tasks, such as summarizing, classifying, translating, extracting entities, or writing text, without building prompts and API calls from scratch. They run through UiPath's AI Trust Layer, where administrators govern models and data handling.


The Activities

ActivityUse
Content GenerationSend your own prompt, optionally grounded in a context grounding index, and get generated text
Summarize TextSummarize long text
Generate EmailDraft an email from instructions and context
Rewrite / ReformatRewrite text in another style, or reformat it
Translate / Detect LanguageTranslate text; identify its language
CategorizeAssign text to one of the categories you provide
Named Entity RecognitionFind entities such as names, organizations, and dates
Sentiment AnalysisDetermine the sentiment of text
PII FilteringDetect and mask personal data
Image Analysis / Detect Object / Signature SimilarityDescribe images, find objects, compare signatures
Context Grounding SearchSearch a context grounding index and return relevant passages
Update Context Grounding IndexRefresh an index after its source data changes
Get DeepRAG Analysis by IDRetrieve the result of a DeepRAG analysis over documents

Designing with GenAI Activities

Choose the narrowest activity

A dedicated activity such as Categorize or Summarize Text gives more predictable results than a general Content Generation prompt. Use Content Generation when no dedicated activity fits.

Constrain outputs

  • For Categorize, provide a closed list of categories and handle unexpected answers.
  • For Content Generation, ask for a specific format, such as JSON with named fields, and validate the result before using it.

Ground answers in company data

Answers about company policies or products should be grounded with a context grounding index, so the model uses retrieved passages rather than general knowledge.

Keep people in the loop

For decisions with consequences, such as refunds or legal replies, route the AI result to a person, for example with an Action Center task, before acting.

Protect data

Use PII Filtering before sending customer text to other systems or logs, and follow the tenant's AI Trust Layer policies on which data may be sent to models.


A Typical Pattern: Email Triage

  1. Detect Language, then Translate non-English emails into English for the team.
  2. Categorize into Complaint, Question, Order Change, or Other.
  3. Sentiment Analysis flags strongly negative emails for priority.
  4. Named Entity Recognition extracts the order number and customer name.
  5. Context Grounding Search finds the relevant policy passage, and Generate Email drafts a reply using it.
  6. The draft goes to an agent for review through an Action Center task.

Each step uses a focused activity, and the workflow validates each output before the next step.


GenAI Activities Versus Other AI Options

OptionBest for
GenAI ActivitiesWell-defined text or image tasks inside a workflow
Document UnderstandingStructured extraction from documents with validation
Autopilot for EveryoneBusiness users chatting and running automations
AgentsMulti-step, goal-driven work where an LLM decides which tools to call

Testing and Monitoring

  • Build a test set of real inputs with expected outputs, including hard cases, and re-run it when prompts or models change.
  • Log the category or decision and a short reason, not full sensitive texts.
  • Handle failures: wrap calls in Try Catch or Retry Scope, and decide what happens when the service is unavailable.
  • Watch for drift: if categories start to go wrong, review prompts and category descriptions.

Exam-Style Scenarios

Scenario 1: Support managers want a short summary of each long complaint in the ticket. Use Summarize Text, and store the summary in the ticket rather than the full text in logs.

Scenario 2: A process must answer employee questions using the HR handbook. Use Context Grounding Search on an index of the handbook, then Content Generation grounded on the retrieved passages, and send uncertain answers to an HR specialist.

Scenario 3: Customer emails arrive in five languages, but the team reads only English. Use Detect Language and Translate before categorizing, and keep the original text for the reply.

Scenario 4: A legal team needs names, dates, and company names from contracts listed for review. Use Named Entity Recognition, and route the list to a reviewer before it is used in any decision.


Key Terms

  • Context grounding index: a searchable store of company documents used to ground model answers.
  • DeepRAG: an analysis over documents whose result is retrieved with Get DeepRAG Analysis by ID.
  • AI Trust Layer: the governance layer through which UiPath AI features reach models, with policies for data and model use.

Common Traps

  • Using Content Generation for tasks a dedicated activity handles better.
  • Trusting generated output without validation, especially numbers and IDs.
  • Sending personal data without PII Filtering where policy requires it.
  • Forgetting to refresh an index with Update Context Grounding Index after the source documents change.
Test Your Knowledge

A workflow must sort incoming emails into four fixed categories. Which approach is most reliable?

A

A free-form Content Generation prompt asking the model what the email is about.

B

Translate every email and search for keywords.

C

The Categorize activity with the four categories provided, and handling for unexpected answers.

D

Sentiment Analysis.

Test Your Knowledge

Company policy documents changed, and answers from Content Generation grounded in the index still quote the old policy. What is missing?

A

Running Update Context Grounding Index so the index reflects the new documents.

B

Switching to Summarize Text.

C

Adding PII Filtering.

D

Increasing the job priority.

Test Your Knowledge

Before sending customer messages to a ticketing system and logs, a team must mask personal data. Which activity fits?

A

Named Entity Recognition

B

Rewrite

C

Detect Language

D

PII Filtering

Sections you finish are checked off in the contents.