# Why AI Agents Need State Machines to Coordinate Humans

DevFeed: [Why AI Agents Need State Machines to Coordinate Humans](<https://devfeed.tech/articles/why-ai-agents-need-state-machines-to-coordinate-humans-116248.md>)

Original publisher: [Read original article](<https://hackernoon.com/why-ai-agents-need-state-machines-to-coordinate-humans?source=rss>)

Author: Akshay Panchavati

Published: 2026-11-04T07:42:10Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Finite-state machine](<https://devfeed.tech/topics/finite-state-machine.md>), [human in the loop agent](<https://devfeed.tech/topics/human-in-the-loop-agent.md>), [state-management](<https://devfeed.tech/topics/state-management.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [agentic-ai-architecture](<https://devfeed.tech/tags/agentic-ai-architecture.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent-architecture](<https://devfeed.tech/tags/ai-agent-architecture.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [autonomous-ai-agents](<https://devfeed.tech/tags/autonomous-ai-agents.md>), [dispatch](<https://devfeed.tech/tags/dispatch.md>), [finite-state-machine](<https://devfeed.tech/tags/finite-state-machine.md>), [human-in-the-loop](<https://devfeed.tech/tags/human-in-the-loop.md>), [llm](<https://devfeed.tech/tags/llm.md>), [proptech](<https://devfeed.tech/tags/proptech.md>), [state-machines](<https://devfeed.tech/tags/state-machines.md>)

## AI overview

For coordinating a tenant, plumber, and landlord who may reply late or change their minds, the article recommends a deterministic finite state machine (FSM) that stores job state in a database and controls transitions and actions. The LLM translates incoming messages into defined inputs, including `UNCLEAR`, and renders code-determined messages in natural language; it does not decide the next step or own the workflow state. This keeps approvals, scheduling, and follow-ups governed by readable rules even when human replies are delayed or ambiguous. The excerpt describes the design and a leaking-sink scenario, but does not specify the nine states or detail the surrounding structures for handling unreliable human inputs.

## Source excerpt

Most human-in-the-loop designs assume the human is an employee. Here is an FSM design where an LLM coordinates tenants, contractors, and landlords instead.