EXCEL Classify rows using AI function

The EXCEL Classify rows using AI function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to classify rows using AI.

For a full list of available functions, please read EXCEL functions.


Description

Use AI to automatically classify or categorize row data into a target column. Reads values from a source column, sends them to AI in batches, and writes the AI-assigned category into a target column. The target column is created automatically if it does not exist. Optionally constrain the AI to a fixed set of categories.


Setting it up

To use the EXCEL Classify rows using AI function, follow these instructions:

{{popups:rpas/add:action=excel-classify}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Classify rows using AI function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Classify rows using AI option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextThe sheet containing the data.
Source columnYesTextThe column containing the data to classify (e.g. 'Description', 'Product Name').
Target columnYesTextThe column where AI classifications will be written. Created automatically if it does not exist.
CategoriesNoTextComma-separated list of allowed categories. Leave empty to let AI decide.
Batch sizeNoText20Number of rows to classify per AI request. Lower values increase accuracy but take longer.
VariableNoTextclassifyName of the variable where the result summary will be stored.

Output variables

The result variable contains:

  • classified – Number of rows successfully classified
  • total – Total number of rows processed
  • success – Whether all classifications completed

Errors

ErrorDescription
File not openThe Excel file must be open before using this function.
Sheet not foundThe specified sheet does not exist.
Column not foundThe source column does not exist in the sheet.
AI not configuredThe AI API endpoint is not configured.

Examples

  • Classify expenses: Source column: Description, Target column: Category, Categories: Food, Transport, Entertainment, Utilities, Other
  • Tag support tickets: Source column: Subject, Target column: Priority, Categories: High, Medium, Low
  • Label products: Source column: Product Name, Target column: Department (leave Categories empty for AI to decide)

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.