Skip to content

Runnable Data Batch

Runnable Data Batch goes through a list of data and, for each item, passes one of its fields to the connected agents or chains. It adds the answer to the item itself, in a new field. A runnable component is a piece that processes a text and returns another, such as an agent or a chain of steps with a model.

When to use it

  • Classifying each row of a spreadsheet with an agent.
  • Summarising each email in a list and keeping the summary next to the email.
  • Enriching each contact with information an agent looks up.

Configuration

FieldWhat it does
DataThe list of data to go through.
Additional ContextText added before the value, for example “Classify this review: {input}”.
Input KeyThe field of each item that is passed. Default: text.
Data Result KeyThe field where the answer is stored. Default: result.
RunnablesThe agents or chains to run.

Advanced options

FieldWhat it does
Output Key From RunnablesThe name of the result taken from each answer. Default: output.
Check If Value Is ArrayIf the Input Key value is a comma-separated list, it splits it into items. On by default.
Separator For ArrayThat list’s separator. Default: comma.

Output

The Data output holds the original list with the answer added to each item.

Example

A shop wants to classify its reviews as positive, neutral or negative.

  1. Connect the reviews to Data, with Input Key text and Data Result Key sentiment.
  2. Connect to Runnables a chain that classifies the text.
  3. Save Data to a spreadsheet.