Skip to main content
Use Data Transform when you need to reshape existing workflow output before another step reads it. Data Transform does not call an external service. It is useful after Extract from File, before Google Sheets, Airtable, Custom API, and follow-up Iteration steps.

Configuration

Add this step from the Utilities group in Search steps….

Modes

Build Rows

Use Build Rows to zip arrays by index into an array of objects. Each field has a Key and a Source Value. The key becomes an object property. The source can be a whole variable reference such as {{tool_names}} or {{step_3.output}}, or a static value. The step fails if you run it with no fields or with a blank field key. Array source values are read by index. Static scalar values repeat for every row. Example:
Build Rows fields:
Output:
Use Mismatch Policy when array lengths differ:

Concat Arrays

Use Concat Arrays to append multiple arrays into one longer array. Each source must resolve to an array. If a source resolves to a string, object, number, or boolean, the step fails. Example sources:
If those values are ["a", "b"] and ["c"], the output is:

Flatten Array

Use Flatten Array to flatten one array by one level. Nested array elements expand. Non-array elements stay in place. Example source:
Output:

Objects to Grid

Use Objects to Grid when a previous step returns an array of objects and you want to write that dataset into Google Sheets. Set Source Value to the records array, such as {{step_2.output}}. If the previous step wraps rows in a field (for example AI Keyword Data Search), use that field instead, such as {{step_2.output.items}}. Leave Headers blank to use every object key in first-seen order. You can also pass a placeholder that resolves to an array of column names, or a comma-separated list such as keyword, volume, difficulty. Example source:
Output:
Pass those values into a Google Sheets Upsert Rows step:
Missing keys become empty cells. Nested objects or arrays inside a record are passed through as-is; Google Sheets cells work best with simple values such as text and numbers.

Classify Date

Use Classify Date when you need to know whether a date has passed, such as a tender deadline or an offer expiry. A model is unreliable at comparing dates, so this mode does it in code after an AI step has extracted the raw date text. Set Source Value to the records array, Date Field to the field holding the date (for example deadline), and leave Today as {{_current_date}}. Each record comes back with a status field (default date_status): To rank or filter by age, set Age Field: each record also gets the number of days since the date under that name (a date still ahead gives a negative number, and an unclear date gives null). A time or timezone after the date is ignored. A numeric date whose day and month are both 12 or less, with no month name, such as 10/12/2026, is ambiguous and comes back unclear instead of being guessed. 25/12/2026, 2026-12-25 and 25 December 2026 are all read normally.

Summarize

Use Summarize to count a list, optionally total a numeric field and group by another field, so a later step reports numbers that match the list. The output is { "count": 5, "total": 17.5, "groups": [{ "value": "open", "count": 2, "total": 12 }] }; total appears only when you set Total Field, and groups only when you set Group By. Non-numeric values are skipped when adding up. Use Count items where when a later step needs a count of the items that meet a condition, or a percentage, such as how many checklist items are found out of all of them. Set a field, an operator and a value (for example status is one of structured, buried). The output then also has matched (how many items meet the condition) and matched_percent (matched as a percentage of count, rounded to a whole number, or 0 for an empty list). Reference them like any other output, for example {{step_6.output.matched_percent}}, so the numbers come from the step instead of an AI step counting for itself.

Date Window

Use Date Window when a scheduled workflow reads a period such as last week or today. Typing the dates as inputs goes stale after one run, and a model is unreliable at working out “last Monday to Sunday”, so this mode does it in code from the run date. It needs no source value. Set Period to the window you report on and leave Today as {{_current_date}}. Weeks start on Monday, so Last week on a Monday run is the previous Monday to Sunday. Last 7 days and Last 30 days end today; Last N days takes its length from Days. The output is one object:
Pass {{STEP_IDENTIFIER.output.start}} and {{STEP_IDENTIFIER.output.end}} to an integration step’s date arguments, or start_at and end_at where it wants a full timestamp, and {{STEP_IDENTIFIER.output.label}} to the step that writes the report.

Score

Use Score to give each item in a list a score from 0 to 100 from its numbers, for example to rank competitor pages by domain rank, backlinks and search position. The maths happens in code, so the score is the same on every run and a model never adds it up. For each field you add a weight. Each value is scaled to 0 to 1: against the Max you give, or between the lowest and highest value in the list when you leave it empty. Turn on Log scale for counts that range from a few to millions, such as backlinks, and Lower is better for numbers such as search position. A missing value counts as 0. The score is the weighted average of the parts, times 100, rounded.
The items come back sorted by score, highest first. Each keeps its own fields and gains score and score_parts (the 0 to 100 part for each field). With Top set, the first items get recommended: true and the rest recommended: false. Top can be a number or a variable, such as {{question_count}}.

Insert at Headings

Use Insert at Headings to put a list of items into a finished text, each under the heading it belongs to: generated images into an article, a call-out under a section, a table into a report. It happens in code, so no other character of the text changes, which a model asked to “add these to the article” cannot promise. Each item names its heading in the Heading Field (default heading). The words must be the heading’s own, but case, bold or italic marks, numbering such as 3. and end punctuation do not matter, and a heading that starts with the words also matches. An item with an empty heading, or top, goes under the title at the start of the text. What is inserted is the item’s Content Field (default content), or a Template in which each {field} is replaced by that field of the item. Template fields use single braces, and dotted paths such as {image.assets.0.file_url} work.
Position is directly under the heading (the default), before the heading, or at the end of the section. An item whose heading is not in the text is left out and listed under unplaced (the default), added at the end of the text, or makes the step fail, as you choose. Read the new text as {{STEP_IDENTIFIER.output.text}}. Use Insert Links to turn words that are already in a finished text into links: links to your own pages in an article, or sources in a report. It happens in code. Only the link marks are added, so no sentence can be shortened, reworded or lost, which a model asked to “add these links to the article” cannot promise. Put an AI Prompt step before it that reads the text and returns only a list of links, never the text itself. Each link names the exact words to link in the Words Field (default anchor), the address in the Address Field (default url) and the sentence the words are in, in the Sentence Field (default sentence).
The words are linked inside the sentence the link names. When that sentence is not in the text, the words are linked only if they appear exactly once, so a link never lands in a paragraph nobody chose. Words in a heading, in a code block or inside a link that is already there are never touched, and each address is linked once. A link is left out, and listed under unplaced with a reason, when its words are not in the text, when its address is not in Allowed addresses (a list of addresses, or of items with a url), when the text already links to that address, or when Most links has been reached. A text with no good place for a link comes back unchanged. Read the new text as {{STEP_IDENTIFIER.output.text}}.

Apply Edits

Use Apply Edits to correct a finished text without anyone writing it out again. A model asked to “fix this sentence in the article” and hand the article back can quietly change other parts too. With Apply Edits the model only says which passages change, and the changes are made in code, so everything else stays exactly as it was, character for character. Put an AI Prompt step before it that reads the text and returns only a list of edits, never the text itself. Each edit quotes the passage as it stands in the text in the Find Field (default find) and gives what goes there instead in the Replace Field (default replace). An empty replacement deletes the passage. Other fields, such as a reason, are passed through.
Every passage is looked up in the text as it was given, so one edit never changes what another one finds. A passage still counts as found when its spacing, its straight or curly quotes or its kind of dash differ from the text. An edit is left out, and listed under skipped with a reason, when its passage is not in the text, when the passage appears more than once (ask the prompt to quote more of it), when it overlaps an earlier edit, when it changes nothing, when Most edits has been reached, or when it would remove a link while Keep links is on. A text with nothing to correct comes back unchanged. To run several checks, give each check its own AI Prompt step and its own Apply Edits step, each reading the text from the one before. Read the corrected text as {{STEP_IDENTIFIER.output.text}}.

Lookup

Use Lookup to put figures onto a list by matching keys in code, for example the search volume and difficulty a research step found for each keyword, onto a list of planned pages. A model asked to copy “the figure for each page” can take a figure from a similar row (“bali visa” for “bali evisa”). Lookup only copies from the row whose key matches.
Item key is the field of each item to match, and Table key the field of each row (the same name as the item key when left empty). Fields to copy are copied from the matching row. An item with no matching row gets an empty value for every field to copy, so a figure that belongs to another item can never stay on it. The first matching row is used. Match decides when two keys count as the same: Exact (the default), Ignore case and spacing, or Ignore word order too (so “bali esim” and “esim bali” match). Use the strictest setting that fits: search volumes differ between word orders. Dedupe has the same Match setting, so word-order variants of one keyword can count as one item.

Output

Data Transform stores its result at:
For Build Rows, the output is an array of objects. This shape works well with integration steps that expect records or rows. For Concat Arrays and Flatten Array, the output is an array that later steps can iterate over. For Objects to Grid, the output is an object with headers and rows. Use it with Google Sheets Upsert Rows. For Classify Date, the output is the input array with the status field added to each record. For Summarize, the output is an object with count and, when configured, total, groups, matched and matched_percent. For Date Window, the output is an object with start, end, start_at, end_at, days and label. For Score, the output is the list sorted by score, each item with score, score_parts and, when Top is set, recommended. For Insert at Headings, the output is an object with text (the new text), placed, unplaced, placed_count and unplaced_count. For Insert Links, the output is an object with text (the text with its links), placed (each link with linked_text), unplaced (each link with reason), placed_count and unplaced_count. For Apply Edits, the output is an object with text (the corrected text), applied, skipped (each edit with reason), applied_count and skipped_count. For Lookup, the output is the list of items, each with the copied fields (empty when no row matched) and, when set, the found field.

Notes

  • Source values should be whole placeholders such as {{step_2.output}}, or static scalar values.
  • Mixed template strings such as Research for {{tool_names}} are not supported in Data Transform V1.
  • Data Transform preserves arrays and objects as structured JSON for downstream steps.
  • Data Transform is a free utility step.
See also: Google Sheets, Airtable, Custom API, and Testing and Iteration