AutomationBeginner

How to Cut AI Task Usage in Zapier With Filters and Formatter

Stop wasting AI credits by filtering out items that do not need a model and trimming text before it hits the prompt.

6 minBeginner

AI steps are the most expensive part of many Zaps, both in Zapier tasks and in model tokens. The fix is to run the model only when it is truly needed and to feed it less text. This short guide shows the two cheapest, highest-impact changes you can make.

What you need

  • An existing Zap that already uses an AI step
  • A Zapier plan (Filter and Formatter are widely available)
  • About 8 minutes

Step 1: Add a Filter before the AI step

Insert a Filter by Zapier step between your trigger and the AI action. Set conditions so the Zap only continues for items worth analyzing. If the filter does not pass, the Zap stops and the costly AI step never runs.

Zapier - Filter conditions
Only continue if ALL are true:
Body Plain (Text) is not empty
Body Length (Number) greater than 40
From (Text) does not contain noreply
Result: filter did not pass -> Zap stops here
Only emails with a body longer than 40 characters proceed.

Step 2: Trim text with Formatter

Add a Formatter by Zapier step before the AI action. Use Text, then Truncate to cap the input length, or Replace to strip out quoted reply chains and signatures. Fewer tokens in means lower cost and often a sharper answer.

Formatter settings
Text > Truncate
  Input:        {{Body Plain}}
  Max length:   1500
  Append:       "..."   (optional)

Text > Replace (strip signature)
  Find:         "\nSent from my iPhone"
  Replace with: ""

Step 3: Cap the output too

In the AI step, set max tokens to the smallest value that still gives a complete answer. For a one-line classification, 30 tokens is plenty. Shorter responses cost less and run faster.

Measure before and after
Check your Zap History and the model dashboard for a few days after these changes. You will usually see the AI step fire far less often and each run use a fraction of the tokens.

Result: The AI step only runs on items that matter, sees trimmed input, and returns short output, often cutting AI cost by more than half with no loss in quality.

Watch related tutorials

Tags
#zapier#ai#filters#cost#optimization