Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Built-in tools
  • Formatter
  • Text

Modify large data for your AI prompts

Written by Owner

Updated at August 20th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Tables
    Work with tables Manage tables Create tables Troubleshoot Zapier Tables
  • Product updates
    Product updates: January 2023 Product updates: March 2023 Product updates: February 2023 Product updates: April 2023 Product updates: May 2023 Product updates: June 2023 Product updates: July 2023 Product updates: August 2023 Product updates: September 2023 Product updates: October 2023 Product updates: November 2023 Product updates: December 2023 Product updates: January 2024 Product updates: February 2024 Product updates: March 2024 Product updates: April 2024 Product updates: May 2024 Product updates: June 2024 Product updates: July 2024 Product updates: August 2024 Product updates: September 2024 Product updates: October 2024 Product updates: November 2024 Product updates: December 2024 Product updates: January 2025 Product updates: February 2025 Product updates: March 2025 Product updates: April 2025 Product updates: May 2025 Product updates: June 2025 Product updates: July 2025 Product updates: August 2025
  • Zaps
    Zap basics Zap history Troubleshoot Zaps Manage your Zaps Do more with Zaps
  • Your Zapier account
    Plans Billing Account profile Notifications Data privacy & security Get help User roles and permissions
  • Interfaces
    Troubleshoot Zapier Interfaces Create an interface Use interface components Manage interfaces
  • Canvas
    Create a canvas Collaborate on a canvas
  • Chatbots
    Add logic and knowledge to chatbots Troubleshoot chatbots Create chatbots Manage chatbots
  • Getting started
    Intro to Zapier Set up your Zapier account Use case templates
  • Agents
    Create agents Manage agents Troubleshoot agents
  • MCP
    Set up MCP
  • Built-in tools
    Filter & Paths Formatter Schedule & Delay Email, IMAP, SMTP, & Email Parser Webhooks & Code Storage, Digest, & RSS Sub-Zap & Looping Other built-in tools Custom Actions & API Requests Functions AI by Zapier & AI actions Copilot Human in the Loop
  • Lead Router
    Create routers
  • Apps
    Connect and manage your app connections AI apps on Zapier Apps on Zapier
+ More

Table of Contents

1. Add a Formatter step 2. Set up your transform 3. Test your action 4. Loop your text chunks Chunk example: summarize web page content

Available on plans:

A green checkmark

Free

A green checkmark

Pro

A green checkmark

Team

A green checkmark

Enterprise

miscBoltAlt icon Beta

The Split Text into Chunks for AI Prompts action is in beta and is subject to change.

When using large language models (LLMs) with large data sets, you may reach token limits. Large data sets can be anything from documents to website pages.

You can use Formatter’s Split Text into Chunks for AI Prompts to break up your data into smaller chunks to use with AI apps. These chunks are based on your input data, model type, prompt, and response size. Then you can then run each chunk separately in your Zap.

miscEye icon Note
  • The Split Text into Chunks for AI Prompt action supports English text only and may behave unpredictably with non-English text.

1. Add a Formatter step

  • In the Zap outline, click the Action step or the plus sign + to add a new action. A dialog box will open.
  • In the search box, search for and select Formatter. The right sidebar will open to the Setup tab.
  • Click the Action event field to open the dropdown menu and select Text.
  • Click Continue to continue to the Configure tab.

2. Set up your transform

  • Click the Transform field to open the dropdown menu, then select Split Text into Chunks for AI Prompts.
  • In the Input field, manually enter the string you want to transform or map a field from a previous step.
  • (Optional) In the Prompt field, enter the prompt you intend to use in your AI step.
    • This will help Formatter estimate how large each chunk should be.
    • The prompt is not included in the chunks.
  • (Optional) In the Response Size field, select the maximum response size.
    • This is the expected size of your response in tokens.
    • Use 0 to apply no limit.
  • In the Chunk Size field, select a chunk size based on the token limits of popular AI models. 
    • Alternatively, use a custom value to set a custom token limit.
    • For reference, about 75 words make up 100 tokens.
  • In the Output Style field, select a text format for your output:
    • Line items: each chunk is returned as a single item in a series of line items. This is the default.
    • Separate fields: each chunk is returned as a separate, mappable field.
  • Click Continue to continue to the Test tab.
ratingStar icon Tip

OpenAI’s best practices recommend a maximum response of 256 tokens.

3. Test your action

  • Click Test step.
    • The Data out tab will display the transform output so you can confirm your string was formatted correctly.
    • If the new data is not what you expect, you can adjust the transform settings and retest the step again.

4. Loop your text chunks

Use Looping by Zapier to run each chunk through your AI prompt. Looping by Zapier will create a loop to run a set of actions more than once.

Learn more about using Looping by Zapier to:

  • Create loops from line items
  • Create loops from text

After you’ve set up your looping step, you can send your text chunks to the AI app of your choice.

 

Chunk example: summarize web page content

You can use this Zap template to learn how to set up chunking in a Zap. In this template:

  • The web page URL triggers the Zap from an email trigger.
  • Digest by Zapier is used for storing chunk summaries.
  • Delay by Zapier is used for ensuring chunks are summarized in order.
  • The Delay and Digest steps use an ID field (Raw Date) to reference the Digest and Delay for the specific Zap run from the trigger. 
    • If you change your trigger, you must replace the ID field. This field should be unique each time the Zap runs.
  • The OpenAI steps are set to default parameters, and the prompt is for summarizing text.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Use Formatter to split text in Zaps
  • Convert the letter casing in a text string in your Zaps
  • Remove extra text from your Zap data
  • Use Formatter to decode and encode HTML in Zaps
  • Count the number of characters or words in your Zap fields

Copyright 2025 – OBZ-Zapier.

Knowledge Base Software powered by Helpjuice

Expand