r/automation • • 7d ago

Solving usage problems one workflow and rule at a time; wasteful bot - to - bot chatter

/r/GrokBot/comments/1y5xg0s/solving_usage_problems_one_workflow_and_rule_at_a/
1 Upvotes

15 comments sorted by

1

u/Ok_Fan2081 7d ago

64% bot-to-bot is a brutal number — we saw the same spike once we went past 8 agents, and the fix that actually moved it was cutting the chatter to a shared queue instead of direct messages. Your 15-minute batching rule is close to that, but I'd also cap how many times one bot can ping another per hour, otherwise the batch just becomes a burst. Did task completion time drop because of the batching or because you went from 12 bots to 4?

1

u/OpenMindedMantis 6d ago

Hard to say for sure because I implemented both changes at the same time without testing individually first but my hypothesis is that its both to varying degrees depending on tasks.

1

u/Ok_Fan2081 6d ago

Makes sense, they'd hit different costs — consolidation cuts handoffs, batching cuts wakeups. If you ever split them, I'd run batching alone for a day and watch p95 task time; if it stays flat, the 12 to 4 cut was doing most of the work. What's your p95 completion time on a typical task now, roughly?

1

u/Ok_Fan2081 6d ago

that tracks — different tasks lean on different rules. If you had to split them later, I'd toggle one change off on a small slice first and watch which task type regresses; that usually tells you which rule was carrying it.

1

u/medina-v-9426 20h ago

For a cleaner read next time, log queue wait and active run time separately by task type. The 15-minute batch affects waiting; fewer bots may affect contention.

1

u/AutoModerator 7d ago

Thank you for your post to /r/automation!

New here? Please take a moment to read our rules, read them here.

This is an automated action so if you need anything, please Message the Mods with your request for assistance.

Lastly, enjoy your stay!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Actual_Material_5498 7d ago

I’d keep failures that block another bot out of the 15-minute batch. For example, if one bot fails to create a file that the next bot needs, send that failure immediately; routine progress updates can wait. I’d also compare cost per successfully completed task before and after, since fewer messages alone won’t show whether retries or unfinished work have increased.

1

u/nmohoni 6d ago

honestly how would the bot even know which is which? are you coding hard rules per task or is it just guessing

1

u/Actual_Material_5498 6d ago

I’d use explicit dependencies and status codes for that, rather than ask the model to judge urgency from a message. For example, if task B requires a file from task A, an A-failed event should immediately mark B as blocked; an A-progress event can wait for the batch. Define those inputs and failure states when setting up the workflow, and send unrecognised states for review instead of letting the bot guess.

1

u/Delicious_Style_2676 7d ago

Reducing the number of bots can help, but I’d track task completion time, failure rates, and who owns each handoff as well as message volume. Consolidate one workflow at a time and keep logs and approval boundaries clear, so a simpler design doesn’t make failures harder to diagnose.

0

u/[deleted] 6d ago

[removed] — view removed comment

1

u/rebeccasingh_419 4d ago

State-change triggers help; make the action safe to repeat too, so retries don't duplicate downstream work.

1

u/aali_1803259 12h ago

A separate guard for echo loops: carry the originating event ID through each handoff, then ignore updates caused by that same event. That keeps a bot's own write from re-triggering the chain.