Skip to content

Guides & How-tos 11 min read

Automation Infinite Loop: How to Stop It and Design It Out

Why automations trigger themselves (ticket updated, row changed, Slack bot replies), how to stop a running loop, and three guards that prevent the next one.

By , Founder & CEO, Acta · Updated

Cover: an automation arrow curling back into its own trigger, with a guard breaking the circle

An automation infinite loop happens when a workflow's own action fires its own trigger: it updates a ticket, and "ticket updated" starts it again; it adds a row, and "row changed" starts it again; a Slack bot replies, and "new message" starts it again. Stop it by switching the automation off first. Then add a guard that makes the second run see the change as its own and skip.

This guide is for whoever owns the automations at a small company and has just watched one go round in circles, or wants to make sure it never does. It covers Zendesk, Freshdesk, Google Sheets, Slack, Zapier and Acta Agent Builder (beta). It does not cover loops inside code you wrote yourself; the logic is the same, but the fixes live in your codebase.

Key takeaways

  • A loop needs two things: a trigger that listens for changes, and an action that makes the same kind of change. Remove either and the loop is gone.
  • Switch the automation off before you investigate. If two automations feed each other, switch both off.
  • The three standard guards are a condition that becomes false after the first run, a marker field the automation writes and then filters on, and "ignore events caused by me".
  • Agent-to-agent chains are loops too: A starts B, B starts A. Check every "run another automation" step.
  • In Acta, an agent's own changes are recognised and do not restart it, and an agent cannot start itself through a chain of "Run another agent" steps.

Table of contents

Three common automation loops and the guard that breaks each one

An automation infinite loop is an action that feeds its own trigger

Every automation has a trigger (the thing it listens for) and actions (the things it changes). A loop forms when one of the actions produces an event the trigger is listening for. The automation cannot tell "a customer changed this" from "I changed this", so it reacts to itself, again and again.

Zapier's help article on Zaps stuck in loops describes the same shapes: a Zap's action triggers that same Zap, or triggers a second Zap that feeds back into the first, or a "New or Updated" trigger updates the item that started it. Here are the versions small teams hit most:

The helpdesk loop

A rule on "ticket updated" adds a tag or an internal note. Adding the note updates the ticket. The rule fires again. Zendesk's guide to ticket triggers explains that when a trigger updates a ticket, the cycle of triggers starts over, and that a trigger with a "Ticket is Updated" condition repeats its actions on every update for as long as its conditions stay true.

The spreadsheet loop

An automation watches a Google Sheet for changed rows and writes a status back into the same row ("Processed: yes"). Writing the status changes the row. The change starts the next run, which writes the status again.

The Slack bot loop

A bot answers every new message in #ops. Its answer is a new message in #ops. Slack's developer reference for the bot_message event notes that messages posted by apps carry a bot_id, which is exactly the field a well-built bot checks so it does not answer itself.

The two-agent ping-pong

Automation A updates the CRM and starts automation B. B updates the sheet, which starts A. Neither loops alone; together they do. These are the hardest to spot because each one looks fine in isolation.

Run counts and stacked changes give a loop away

A loop rarely announces itself with an error. Each run succeeds; there are just far too many of them. Watch for these signs:

  • The same item, seconds apart. The run history shows one ticket, row or message ID over and over, with gaps of a few seconds or minutes.
  • Stacked changes. Twenty identical internal notes on one ticket. A cell whose "last updated" time never stops changing. A Slack thread where the bot talks to itself.
  • Usage jumps. Task or credit usage for the month spikes overnight while nothing else changed.
  • Rate limit errors. The app starts refusing requests ("too many requests", "sending limit reached") because one automation is hammering it.

Polling makes loops slower but not safer. If your tool checks for changes every few minutes, a loop produces one extra run per check instead of dozens per second. That feels harmless until you notice it has been going for a week.

Stop the loop first, investigate second

Do not try to fix a running loop by editing it. Every minute of editing is more runs, more notes and more usage. Follow this order:

  1. Switch it off. Zapier's loop article says to turn off the looping Zap right away, and both Zaps if two are involved. Every tool has an equivalent on/off switch; find it first.
  2. Cancel what is queued. Runs that already started or are waiting may still go through. Cancel them where the tool allows.
  3. Confirm it has stopped. Refresh the run history for a few minutes. If new runs still appear, something else is starting them: a second automation, a native helpdesk rule, a webhook from another tool.
  4. Clean up. Delete the duplicate notes, rows or messages. Tell anyone who received something twice.
  5. Find the feedback path. Write down, in one line, "action X causes event Y, which starts trigger Z". That sentence is your fix brief.

My Agents tab in Acta Agent Builder listing agents with their On, Off or Draft status

In Acta, one switch turns an agent off, and runs can be cancelled, so steps 1 and 2 take seconds.

Three guards break almost any loop

Once it is stopped, add a guard. You only need one that works, but two layers are cheap insurance for helpdesk and spreadsheet automations.

GuardHow it worksExample
Condition that turns falseThe trigger only matches before the action has happenedZendesk: set priority to high only if priority is not already high
Marker fieldThe action writes a marker; a filter stops runs where the marker existsSheets: continue only if the "Processed" column is empty
Ignore my own eventsThe trigger skips changes made by the automation's own user or botSlack: skip messages that carry your bot_id; Freshdesk: limit "performed by"

A condition that becomes false is the cleanest. Zendesk's own trigger guidance uses this pattern: check whether the change is already in place and skip the ticket if so. Make your conditions as specific as possible, and the trigger stops matching after its first run.

A marker field is Zapier's standard advice for a Zap loop: add unique data to the action that causes the loop, then use that data in a Filter step. For "New or Updated" triggers, its loop article suggests a dedicated field the Zap writes during the update, with a filter that lets the Zap continue only when the field is empty.

Ignoring your own events is the most natural. Freshdesk's Ticket Updates rules have a "performed by" setting (Agent, Requester, Agent or Requester, Collaborator, System), described in its overview of automation rules, so a rule meant for customer replies can listen to the requester only. Slack bots check bot_id.

One trap with marker fields: some apps count writing the marker as another update. The marker filter still stops the second run, so the loop ends after one extra run instead of zero. That is acceptable, but it is why "ignore my own events" is the better guard when the tool supports it.

Acta ignores an agent's own changes

Acta Agent Builder builds the third guard in. When an agent replies to a ticket, adds a sheet row, posts in Slack or sends an email, Acta remembers that change. If an event about the same item arrives a moment later, it is recognised as the agent's own change and does not start the agent again. You do not need a marker column or a bot_id filter for that.

Three more protections sit around it:

  • No agent-calls-agent loops. An agent cannot start itself through a chain of "Run another agent" steps. A starts B is fine; B trying to start A again is blocked.
  • One event, one run. Each trigger event has a key (the item plus its update time), so the same event never starts the same agent twice, even if it is checked twice.
  • Skips are visible. An event that did not start a run is saved in History as skipped, with the reason. You can open the agent and see "the agent's own change" next to each event it ignored.

This does not stop every possible loop. If your agent updates a ticket and a native Zendesk or Freshdesk rule reacts to that update by changing it again, the native rule's change is not the agent's own change. Review helpdesk rules alongside any agent that writes to tickets. The Freshdesk AI agent guide shows one setup in full.

An agent writes a status to a Google Sheets row, the row change arrives, Acta recognises its own change and skips the run

Build a Slack agent that cannot answer itself

The Slack bot loop is the classic self-triggering automation, so it makes a good first build. The agent below answers questions in an internal #ask-ops channel using your meeting notes.

  1. Connect Slack. On the Connectors tab, Slack uses "Connect here". Agents act as you, so replies come from your connection.
  2. Trigger. In Agent Builder, choose Event in a connected app, then Slack, new channel message, in #ask-ops. Add an Only when condition: the message ends with a question mark. That keeps the agent out of chatter. The triggers guide lists the options.
  3. AI agent step. Give it the goal "Answer the question from our meeting notes, in under 80 words, and say which meeting the answer came from" and allow one tool: search your meetings.
  4. Slack action. Post the answer as a message to #ask-ops.
  5. Test, Check, Turn on. Press Test with a sample question; Slack messages are only shown during a test. Press Check for missing settings, then Turn on.

Connectors tab in Acta Agent Builder with Gmail and Slack connected

The agent's answer is itself a new message in #ask-ops. Acta recognises it as the agent's own message, so it does not trigger a second answer, and History shows that event as skipped. The question-mark filter is a second layer.

Why no Human approval step here? The channel is internal and the answer is a draft-quality pointer to a meeting, not a commitment to a customer. If the same agent ever posts into a shared channel with clients, add Human approval before the Slack action. The steps guide covers the AI agent, approval and Run another agent steps in detail.

The answers are only as good as the notes behind them. If your team meets on Google Meet or Teams in the browser, Acta's Chrome extension captures those calls without a bot, and the agent can search them the same day.

Agent A runs agent B, agent B tries to run agent A again, Acta blocks the chain

Review every new automation for loops before it goes live

Most loops are designed in by accident. Five questions catch them before launch. Copy them into your team's checklist:

1. What event starts this automation, and in which app?

2. Which actions change something in that same app? List each one.

3. For each of those actions: could the change count as the starting event? If yes, which guard stops it (condition, marker, ignore-my-own)?

4. Does any action start another automation, directly or through a webhook? Could that one start this one?

5. Which native rules in the app (helpdesk triggers, CRM workflows, sheet scripts) also react to these changes?

Question 5 is the one people skip. A loop can run between your automation tool and the app's own rule engine, and neither tool sees the whole picture. Keep a one-page list of every automation and native rule that touches each app; it takes an hour to write and saves days of confusion. For the broader reasons small-team automations fail, see why automations break, and for the related problem of the same email going out twice, the guide to automations sending duplicate emails.

Finally, test with the guard in place. In Acta, use Test with the data of a past run that looped (or would have), and confirm the run you expect to be skipped shows as skipped. The test and turn on guide explains re-testing with past runs.

Frequently asked questions

What causes an automation infinite loop?

An automation infinite loop happens when an action changes the same kind of thing the trigger listens for: updating the ticket that started a "ticket updated" rule, writing to a watched sheet row, or a bot replying in the channel it watches. The automation cannot tell its own change from a person's, so it keeps restarting itself.

How do I stop a looping workflow that is running now?

To stop a looping workflow, switch it off immediately, and switch off any second automation it feeds. Cancel queued runs, refresh the run history to confirm nothing new starts, then clean up the duplicate notes or rows. Only after that, find the action that feeds the trigger and add a guard before switching it back on.

How do I fix a Zendesk trigger loop?

Fix a Zendesk trigger loop by adding a condition that becomes false once the trigger has acted, for example "priority is not high" on a trigger that sets priority to high. Zendesk's help explains that triggers rerun when a ticket is updated during the cycle, so specific conditions are what stop the repeat.

How do I stop a Slack bot replying to itself?

A Slack bot replying to itself needs to skip events that came from its own bot. Messages posted by apps carry a bot_id, so the bot checks it and ignores its own. In Acta Agent Builder, the agent's own Slack posts are recognised automatically and do not start it again.

Can two Acta agents loop by starting each other?

No. An Acta agent cannot start itself through a chain of "Run another agent" steps, so agent A starting agent B, which then tries to start A, is blocked. Loops through outside tools, such as an agent updating a ticket that a native helpdesk rule then changes again, still need a review of those rules.

Make loops impossible, not just unlikely

An automation infinite loop is a design problem, so fix it in the design rather than with a delay step. Before you switch the next one on:

  • Write the feedback sentence: "action X causes event Y, which starts trigger Z", for every action that touches the trigger's app.
  • Pick one guard per path: a condition that turns false, a marker field, or ignore-my-own.
  • Map agent-to-agent calls: draw the arrows; any circle is a loop.
  • List native rules: helpdesk triggers and CRM workflows count as automations.
  • Test the skip: confirm the run you expect to be ignored really shows as skipped.

Build a loop-proof agent in the 15-day free trial from the Agent Builder page; Pro pricing applies after the trial.

Found this useful? Share it with your team.

Record your next meeting without a bot

Acta writes the transcript with speaker names, the summary and the action items for you. No notetaker joins the call. Free for 15 days.

Acta desktop app for Windows and Mac

Records Zoom, Microsoft Teams or any calling app from your own computer. It opens by itself when a Zoom or Teams meeting starts, and your screen is never recorded.

Download the desktop app

Acta Chrome extension

One click from the meeting tab in Google Meet, or Zoom and Teams in Chrome. Nothing else to install, so it works on a work laptop where you can't add apps.