AI Analysis

Purpose

This activity allows a workflow to send data and a question to an LLM, and receive a structured response. It's useful for extracting insights, classifying data, or generating suggestions as part of an automated process.

Configuration

To configure the AI Analysis Activity, you can provide a question and response structure. The Activity provides an output based on the question in the format that was requested. This can then be used in following workflow activities for further data transformation or creating records in ReadiNow

Input Configuration

Setting

Description

Question

The question to pass to the LLM. This can include text or expressions

Context Document

A document that can be passed to the LLM to be referenced as part of the question 


Output Configuration

The Output of this activity can be either

  • Text (generated plain text)
  • List (a generated list or items that can be used in subsequent activities)
  • Object (a single dynamic record)

Setting

Description

Response Structure

Desired structure of the response

  • List (a list of items that can be referenced in later activity)
  • Object (a single dynamic record )
  • Text (plain text)
Item Count
 (only applicable for List output) 
Number of items to return in the generated list
Response Fields
(only applicable for List and Object output) 

 Field description for each item in the list / object to be generated

  • Name (name of the field)
  • Description (description of this field, this is used to inform the LLM how to populate this property)
  • Type (String, Number, Date, Yes/No, Choice)
  • Max Length (if string) - max characters to return for this property
  • Choice field (if choice) - reference to existing choice field to add

Can add as many fields as required


Advanced Configuration 

Setting

Description

Enable Response CacheIf enabled, the activity will cache calls to the LLM and return the same value for the same query, reducing token usage and increasing performance.


Output Parameters 

Parameter

Type

Description

[Activity Name].AI PromptTextThe prompt that was sent to the LLM
[Activity Name].Raw ResponseTextThe raw processed response from the LLM
If output is set to text:
[Activity Name].Response (if text)TextThe Processed response from the LLM
If output is set to list:
[Activity Name].[Response].Items
Listthe list of generated items

Each item contains the following properties.

  • item.[Field 1]
  • item.[Field 2]

VariousAbility to access property of each individual list item
If output is set to object:

[Activity Name].[Response]
DynamicThe object generated by the LLM