Prompt as State Machine
# Class 2 - The prompt as a State Machine | From Chat to Controlled LLM Workflows
> **Learn how to give your LLM a memory and control multi-step conversations.**
>
In this class, we explore how Large Language Models (LLMs) can be modeled as state machines.
By explicitly defining state, input, and transition logic, we can reduce behavioral variance and increase predictability in AI systems.
Understanding prompt-state architecture is fundamental for building deterministic AI workflows.
<div align="center">
[](https://github.com/mindhack03d/SymbolicPrompting)
[](https://github.com/mindhack03d/SymbolicPrompting)
[](https://youtube.com/playlist?list=PLNFL-2KY9QZVqoRwRzVLPN6qmDftpsjg6)
[](https://www.youtube.com/playlist?list=PLNFL-2KY9QZXhGEfGUOrrZtzGdPESwh4l)
[](https://youtube.com/playlist?list=PLNFL-2KY9QZUKlXC_4gnVUHoAJdd4s-AC&si=4N7ROWCD3G46y8t5l)<br>
[](https://opensource.org/licenses/MIT)
[](../Benchmark/benchmark_methodology.md)
[](../Benchmark/symbolic_support_test.md)
[](https://youtu.be/ey4t2T09L9I)
[⬅️ Class 1: What is Symbolic Prompting?](../BLOCK1_Fundamental/01_What_is_Symbolic_Prompting.md) | [🏠 Home](../README.md) | [Class 3: Normal vs. Atomic Tokens ➡️](../BLOCK1_Fundamental/03_Normal_vs_Atomic_Tokens.md)
</div>
---
<div align="center">
<center><img src="02_Prompt_as_State_Machine.png" alt="State machine diagram showing the transition between prompt states" style="width: 60%; height: auto;"></center>
</div>
## What happens BETWEEN one prompt and the next?
If you don’t control the state, you don’t control the system.
**What happens between one PROMPT and the next?** <br>
Artificial Intelligence does not live in a vacuum. Each prompt transforms something. That 'something' is called STATE.when to use it
Community prompt sourced from the open-source GitHub repo mindhack03d/SymbolicPrompting (NOASSERTION). A "Prompt as State Machine" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
mindhack03d/SymbolicPrompting · NOASSERTION
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar