Iterátor

Automatizujte pracovné postupy prechádzaním zoznamov a vykonávaním prúdov pre každú položku pomocou komponentu Iterátor vo FlowHunt.

Iterátor

Opis komponentu

Ako funguje komponent Iterátor

The Iterator component is designed to execute a sub-flow or an external flow repeatedly for each item in a given list. This enables batch processing, looping, or parallel execution of AI tasks over multiple inputs, which is essential when handling workflows that involve lists or collections of data.

What the Component Does

The Iterator automates repetitive execution within your AI workflow. It takes a list of inputs, and for each item in this list, it runs a specified AI flow (which could be any process or model you have defined). This is particularly useful for scenarios like:

  • Processing multiple documents, images, or messages in sequence
  • Applying the same transformation or analysis to a batch of data
  • Collecting or aggregating results from repeated executions

Key Inputs

The component exposes the following configurable fields:

Field NameTypeRequiredDescription
Flow Execution (flow)FlowExecutionYesThe sub-flow or external flow to execute for each item in the input list.
Input List (flow_inputs)Data, MessageYesThe list of inputs to loop over (each item will trigger a flow execution).
Include Previous Iteration Output (include_prev_output)Bool (Advanced)NoPasses the previous iteration’s output as {prev_iter_res} to the next iteration. Only works with single-threaded (concurrency = 1) execution.
Max Concurrency (max_concurrency)Int (1-20, Advanced)NoSets the maximum number of flow executions to run in parallel. Default is 1 (sequential).
Separator (separator)String (Advanced)NoOptional separator string to use between each flow execution’s output.

Outputs

The main output of the Iterator is:

  • Message (text_output): A message containing the aggregated results of running the flow on each input item. The output type is consistent with the output of the executed flow.

How It Works

  1. You provide a list of items (e.g., messages, data entries).
  2. You choose or define a flow to execute for each item.
  3. The Iterator executes the flow for each list item, either sequentially or in parallel (as set by Max Concurrency).
  4. It collects the outputs and returns them as a single Message output, optionally separated by a custom string.

If Include Previous Iteration Output is enabled (and concurrency is set to 1), each iteration can access the result of the preceding iteration, enabling chained or stateful processing.

Why Use the Iterator Component?

  • Scalability: Efficiently process large batches of inputs without manual looping.
  • Parallelism: Speed up workflows by running executions concurrently.
  • Reusability: Apply the same sub-flow logic to any list of data.
  • Flexibility: Customize iteration behavior with advanced options like output chaining and output formatting.

Example Use Cases

  • Applying sentiment analysis to a list of user comments.
  • Running document summarization on a batch of uploaded files.
  • Translating a collection of messages using a translation flow.

Summary Table

PurposeInputsOutputsAdvanced Options
Batch execution of flowsList of items, Flow to executeAggregated MessageOutput chaining, concurrency, separator

The Iterator is a powerful tool for automating repetitive tasks in AI workflows, making it an essential building block for scalable and maintainable process automation.

Príklady flow šablón používajúcich komponent Iterátor

Aby sme vám pomohli rýchlo začať, pripravili sme niekoľko ukážkových flow šablón, ktoré demonštrujú efektívne využitie komponentu Iterátor. Tieto šablóny prezentujú rôzne prípady použitia a osvedčené postupy, čo vám uľahčí pochopenie a implementáciu komponentu vo vašich vlastných projektoch.

Automatizované obohacovanie údajov o leadoch v Google Sheets
Automatizované obohacovanie údajov o leadoch v Google Sheets

Automatizované obohacovanie údajov o leadoch v Google Sheets

Tento AI-riadený pracovný postup obohacuje údaje o leadoch v Google Sheets automatickým získavaním chýbajúcich LinkedIn profilov, pracovných pozícií a odvetví z...

4 min čítania
Generátor SEO blogov z YouTube videí
Generátor SEO blogov z YouTube videí

Generátor SEO blogov z YouTube videí

Automaticky generujte SEO blogové príspevky s vysokým hodnotením z YouTube videí. Tento pracovný postup extrahuje prepisy videí, analyzuje najlepšie SEO kľúčové...

4 min čítania
Pokročilý generátor blogových príspevkov s AI
Pokročilý generátor blogových príspevkov s AI

Pokročilý generátor blogových príspevkov s AI

Generujte komplexné, SEO-optimalizované blogové príspevky s pokročilou štruktúrou a vysokým počtom slov pomocou viacerých AI agentov. Pracovný postup zahŕňa aut...

4 min čítania

Najčastejšie kladené otázky

Čo robí komponent Iterátor?

Komponent Iterátor spúšťa konkrétny prúd alebo podprúd pre každú položku v zadanom zozname, čo uľahčuje automatizáciu opakujúcich sa spracovateľských úloh vo vašom pracovnom postupe.

Môže Iterátor spracovávať položky paralelne?

Áno, môžete nastaviť maximálny počet súbežných vykonaní pre efektívne spracovanie, čo umožňuje komponentu spracovať viacero položiek súčasne.

Ako môžem použiť výsledky predchádzajúcej iterácie?

Výstup predchádzajúcej iterácie môžete zahrnúť do ďalšej povolením možnosti „Zahrnúť výstup predchádzajúcej iterácie“, čo je užitočné pri sekvenčných závislostiach, ak je paralelizácia nastavená na 1.

Aké typy dát môžem iterovať?

Iterátor podporuje zoznamy dát alebo správ, čo umožňuje flexibilitu v type vstupu, ktorý chcete spracovať.

Kde je Iterátor užitočný?

Iterátor použite na dávkové spracovanie dát, odosielanie viacerých požiadaviek alebo aplikovanie série akcií na každú položku v dátovej sade vo vašich pracovných postupoch FlowHunt.

Vyskúšajte FlowHunt Iterátor

Odomknite výkonnú automatizáciu pracovných postupov využitím komponentu Iterátor vo FlowHunt pre škálovateľné, opakovateľné procesy.

Zistiť viac

Spustiť tok
Spustiť tok

Spustiť tok

Komponent Spustiť tok vo FlowHunt vám umožňuje spustiť a vykonať ďalší pracovný tok v rámci vášho aktuálneho toku. Prenášajte vstupy, premenné a kontrolujte, ak...

3 min čítania
Automation Workflow +3
Nájsť e-mail podľa ID
Nájsť e-mail podľa ID

Nájsť e-mail podľa ID

Komponent Nájsť e-mail podľa ID vám umožňuje získať e-mail pomocou jeho jedinečného identifikátora vo vašich automatizovaných pracovných postupoch. Navrhnutý pr...

3 min čítania
Automation Data +3
Generátor štruktúrovaného výstupu
Generátor štruktúrovaného výstupu

Generátor štruktúrovaného výstupu

Komponent Generátor štruktúrovaného výstupu vám umožňuje vytvárať presné, štruktúrované dáta z akéhokoľvek vstupného promptu použitím vami vybraného LLM modelu....

3 min čítania
AI Automation +4