Loop
The "Loop on Items" component is designed to automate repetitive tasks by iterating over a list of items. This component is crucial for processing sequences where each item in a collection requires similar handling.
How to Integrate Loop Component In ZBrain Flow?
The loop component allows selecting the items to iterate over from the previous step by clicking on the Items input, which should be a list of items. The loop will iterate over each item in the list and execute the next step for every item.
Popular Types of Items for Loop
Popular types of items include:
1. Gmail
Send Email
Send an email through a Gmail account
Custom API Call
Make a custom API call to a specific endpoint
2. Google Sheets
Insert Row
Append a row of values to an existing sheet
Insert Multiple Rows
Add one or more new rows in a specific spreadsheet.
Delete Row
Delete a row on an existing sheet you have access to
Update Row
Overwrite values in an existing row
Find Rows
Find or get rows in a Google Sheet by column name and search value
Create Spreadsheet
Creates a blank spreadsheet.
Create Worksheet
Create a blank worksheet with a title.
Clear Sheet
Clears all rows on an existing sheet
Get Row
Get a row in a Google Sheet by row number
Get next row(s)
Get the next group of rows from a Google Sheet
Find Spreadsheet(s)
Find spreadsheet(s) by name.
Find Worksheet(s)
Finds a worksheet(s) by title.
Copy Worksheet
Creates a new worksheet by copying an existing one.
Update Multiple Rows
Updates multiple rows in a specific spreadsheet.
Create Spreadsheet Column
Adds a new column to a spreadsheet.
Custom API Call
Make a custom API call to a specific endpoint
3. HTTP Request
Send HTTP Request
Additional Settings for HTTP Request in Loop
Method: Choose the HTTP method for the request, such as GET, POST, PUT, or DELETE.
URL: Enter the URL to which the HTTP request will be sent.
Headers: Add custom headers to the request to include additional information like content type or authentication tokens.
Query Params: Specify query parameters to refine the HTTP request with key-value pairs.
Body Type: Select the type of content that will be sent in the body of the HTTP request, such as JSON, form-data, etc.
Use Proxy: Opt to route the HTTP request through a proxy server for added privacy or to bypass geo-restrictions.
Timeout: Set the maximum time to wait for a response from the server before the request times out.
No Error on Failure: Choose not to treat unsuccessful HTTP responses as errors.
5. Human Input
Human Input (Respond on UI): Triggers a workflow through direct human interaction.
Text (Markdown): Allows input of text formatted in Markdown for clear and structured communication.
Attachment: Provides the option to attach files for inclusion in the response or processing.
6. Open AI
Ask ChatGPT
Ask ChatGPT anything you want!
Ask Assistant
Ask a GPT assistant anything you want!
Generate Image
Generate an image using text-to-image models
Vision Prompt
Ask GPT a question about an image
Text-to-Speech
Generate an audio recording from the text
Transcribe Audio
Transcribe audio to text using the whisper-1 model
Translate Audio
Translate audio to text using the whisper-1 model
Extract Structured Data from Text
Returns structured data from provided unstructured text.
Custom API Call
Make a custom API call to a specific endpoint
7. Slack
Add Reaction to Message
Add an emoji reaction to a message.
Send Message To A User
Send a message to a user.
Send Message To A Channel
Send a message to a channel.
Request Approval from A User
Send approval message to a user and then wait until the message is approved or disapproved.
Request Approval in a Channel
Send approval message to a channel and then wait until the message is approved or disapproved.
Request Action from A User
Send a message to a user and wait until the user selects an action
Request Action in A Channel
Send a message in a channel and wait until an action is selected
Upload file
Upload the file without sharing it to a channel or user
Search messages
Searches for messages matching a query
Find User by Email
Finds a user by matching against their email address.
Find User by Handle
Finds a user by matching against their Slack handle.
Update message
Update an existing message
Create Channel
Creates a new channel.
Update Profile
Update basic profile field such as name or title.
Get channel history
Retrieve all messages from a specific channel ("conversation") between specified timestamps.
Set User Status
Sets a user's custom status
Markdown to Slack format
Convert Markdown-formatted text to Slack's pseudo-markdown syntax.
Custom API Call
Make a custom API call to a specific endpoint
8. Webhook
Webhook (Return Response): Sends HTTP responses back to the requester, allowing integration of real-time data exchanges via webhooks.
Response Type: Set the format of the response, such as JSON, to structure data according to the needs of the receiving system.
Status: Enter the HTTP status code for the response, like 200, for a successful interaction.
Headers: Add custom headers to the response to provide additional context or control behaviors, such as content type.
JSON Body: Input the JSON formatted data to be sent back in the response body, defining the specific data or message to be conveyed.
Flow control components.
The loop is also set on the following Flow control components.
1. Approval
Wait for Approval
Pauses the flow and waits for the approval from the user.
Create Approval Links
Create links only without pausing the flow, use wait for approval to pause
2. Delay
Delay For
Delays the execution of the next action for a given duration
Delay Until
Delays the execution of the next action until a given timestamp
3. Loop on Items
Iterate over a list of items.
4. Router
Split your flow into branches depending on condition(s)
5. Sub Flows
Call Flow
Call another sub flow
Return Response
Return response to the original flow
Loops for other components
Loops also help execute various tasks through these utilities:
Code: Execute custom scripts to enhance and automate complex tasks within workflows.
Connections: Manage and utilize various integrations for seamless data exchange between different platforms.
Crypto: Secure data with encryption and decryption capabilities for sensitive information handling.
CSV: Parse, generate, and manipulate CSV files to efficiently handle large data sets.
Data Mapper: Transform and map data from one format to another to fit various application requirements.
Data Summarizer: Aggregate and summarize data to extract key insights and metrics.
Date Helper: Manipulate and format date and time values to suit different geographic and business needs.
Files Helper: Manage file operations like reading, writing, and modifying to support data processing tasks.
FTP/SFTP: Transfer files securely between systems using FTP or SFTP protocols.
GraphQL: Utilize GraphQL queries to fetch data efficiently from services that use this technology.
Image Helper: Perform image manipulation tasks such as resizing, cropping, and converting formats.
Math Helper: Execute mathematical computations and conversions to support data analysis processes.
QR Code: Generate and decode QR codes for quick access to information in physical and digital formats.
SMTP: Send emails directly from workflows using SMTP protocol to automate communication tasks.
Storage: Utilize cloud or local storage solutions to save and retrieve workflow data as needed.
Tags: Organize and tag data to improve searchability and categorization within systems.
Text Helper: Manipulate and format text data to prepare content for various applications.
XML: Parse, generate and manipulate XML data to facilitate data interchange and storage.
Last updated