Skip to main content
Question

How to loop through an array in Zapier using ChatGPT outputs

  • November 19, 2025
  • 1 reply
  • 10 views

 

Hallo,

 

ich habe aktuell ein Problem mit meinem Zap, das ich trotz aller Versuche nicht lösen kann, weil Zapier mir beim “Looping by Zap”-Step nicht erlaubt, das komplette Array auszuwählen.

 

Kurze Beschreibung meines Setups:

 

  • Trigger: Note Created (Superchat)
  • Danach verarbeite ich den Inhalt über ChatGPT
  • ChatGPT liefert ein Array mit mehreren Objekten, z. B.
    • Abschluss 1
    • Abschluss 2
    • Abschluss 3
      (Anzahl kann variieren – mal 1, mal 4, mal 10 Abschlüsse)
  •  

 

 

Diese Objekte müssen anschließend einzeln in ein Google Sheet geschrieben oder aktualisiert werden.

Daher nutze ich “Looping by Zap → Create Loop From Line Items”.

 

Das Problem:

 

Im Looping-Step, im Feld “Values to Loop”, zeigt Zapier mir nur diese Optionen an:

 

  • Output Item 1
  • Output Item 2
  • Output Item 3
  • Output Item 4
    usw.

 

 

Ich kann dort immer nur EIN einzelnes Item auswählen, aber nicht das gesamte Array selbst, also nicht “Output”.

 

Das bedeutet:

 

  • Ich kann nur das erste Item loopen
  • oder ich müsste jedes einzelne Item manuell auswählen
  • aber ich kann NICHT sagen: „Nimm bitte alle Items aus diesem Array, egal wie viele es sind.“

 

 

Wichtig:

 

  • Der Trigger liefert immer nur 1 Test-Datensatz
  • Deshalb erzeugt Zapier beim Test auch nur 1 Item
  • Dadurch zeigt Zapier im Looping-Menü nur „Output Item 1“
  • Ich kann nicht auf das gesamte Array zugreifen, obwohl es Live mehrere Items geben wird

 

 

Was ich brauche:

 

Ich möchte, dass der Loop alle Items verwendet, die ChatGPT später wirklich zurückgibt – unabhängig davon, wie viele es sind.

Ich möchte also im Looping-Step das komplette Array auswählen können, NICHT einzelne Items.

 

Meine Frage:

 

Wie kann ich im “Values to Loop”-Feld das vollständige Array auswählen, obwohl Zapier im Editor nur einzelne “Output Item X” Einträge zur Auswahl anbietet?

 

Gibt es eine Möglichkeit:

 

  • das Array-Feld explizit auszuwählen?
  • oder Custom JSON als Input zu definieren?
  • oder den Loop so zu konfigurieren, dass er dynamisch alle Live-Items verarbeitet, ohne dass ich jedes Item im Test auswählen muss?

 

 

Ich habe bereits versucht:

 

  • Formatter zu entfernen
  • zusätzliche Testdaten zu generieren
  • ChatGPT-Test-Ausgaben zu erweitern
  • „Custom“ im Loop auszuwählen (geht nicht)
  • den Step-Reihenfolge zu verändern

 

 

Leider ohne Erfolg.

 

Ich wäre sehr dankbar, wenn Sie mir erklären könnten, wie ich den Loop so konfiguriere, dass er dynamisch alle Items verarbeitet, auch wenn im Testmodus nur 1 Item verfügbar ist.

 

Vielen Dank für Ihre Hilfe!
 

Moderator edit to include translation of original message:

Hello,

I'm currently having a problem with my Zap that I can't seem to solve despite trying everything, because Zapier isn't allowing me to select the entire array in the "Looping by Zap" step.

Brief description of my setup:

Trigger: Note Created (Superchat)

Then I process the content using ChatGPT.

ChatGPT returns an array with multiple objects, e.g.,

Completion 1
Completion 2
Completion 3

(The number can vary – sometimes 1, sometimes 4, sometimes 10 completions)

These objects then need to be individually written to or updated in a Google Sheet.

Therefore, I'm using "Looping by Zap → Create Loop From Line Items".


The problem:

In the looping step, in the "Values ​​to Loop" field, Zapier only shows me these options:

Output Item 1
Output Item 2
Output Item 3
Output Item 4
etc.

I can only select ONE single item at a time, but not the entire array itself, i.e., not "Output".

This means:

I can only loop the first item
or I would have to manually select each individual item
but I CANNOT say: "Please take all items from this array, no matter how many there are."

Important:

The trigger always only returns 1 test data set.

Therefore, Zapier only creates 1 item during the test.

As a result, Zapier only shows "Output Item 1" in the looping menu.

I cannot access the entire array, even though there will be multiple items in the live environment.

What I need:

I want the loop to use all the items that ChatGPT actually returns later – regardless of how many there are.

I want to be able to select the entire array in the looping step, NOT individual items.

My question is:

How can I select the entire array in the "Values ​​to Loop" field, even though Zapier only offers individual "Output Item X" entries for selection in the editor?

Is there a way to:

explicitly select the array field?

define custom JSON as input?

configure the loop to dynamically process all live items without requiring me to select each item in the test?

I've already tried:

removing the formatter
generating additional test data
extending ChatGPT test output
selecting "Custom" in the loop (doesn't work)
changing the step order

Unfortunately, without success.

I would be very grateful if you could explain how to configure the loop to dynamically process all items, even when only one item is available in test mode.

Thank you for your help!

1 reply

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • November 19, 2025

Hi ​@Emma1234 

For us to have more info, post screenshots showing:

  • how your Zap steps are outlined in order
  • how your Zap steps are configured in the CONFIGURE tab while in EDIT mode with the field mappings visible
  • the DATA OUT from the ChatGPT step you are trying to use so we can see how the data is structured

 

If you are looking to hire help, there is a directory of Zapier Partners: https://zapier.com/partnerdirectory