Erlang Solutionsยท
Exploring OTP Patterns for Agentic Workflows
TL;DR
AI workflows need to remember progress across model calls and coordinate results without corrupting their state. This chapter uses one Elixir GenServer per workflow to own that state, track pending tool calls, and build the context sent to the model. The result is a testable coordination skeleton with consistent updates and stopping rules, though tool execution and moving slow model calls out of the owner process remain unfinished.