Skip to content

Playbooks AI Playbooks AI

Playbooks AI — Natural Language Programs, Verifiable Control, Multi-Agent

Playbooks AI introduces a programming paradigm where you define AI agent behavior through clear, human-readable instructions, crafted in plain English inside markdown “playbooks” that look like recipes, and are fully executable. Playbooks AI is a software stack for the Software 3.0 era that seamlessly combines traditional code (Software 1.0), data-trained models (Software 2.0) and behavior defined directly in plain English, executed by LLMs as if they were CPUs (Software 3.0).

This isn't just prompting and hoping the LLM does the right thing - it’s Natural Language Programming. Business users can read, tweak, and approve the specification directly; while developers benefit from consistency, auditability, and full visibility into execution paths.

Playbooks program example

Natural Language Playbooks program (support.pb)

VS Code debugger showing step-by-step execution

Step debugging compiled program (support.pbasm)

How It Works

  • Hybrid stack of English + Python: Seamlessly combine high-level natural-language steps with embedded Python logic (e.g., for system integration, data processing) and execute on a unified call stack.
  • Event-driven triggers: Define reactive workflows using natural-language conditions (like “when X happens, run Y playbook”), radically simplifying the specification of complex workflows. See Triggers.
  • Reliability + Flexibility: Every execution is trackable - variables, call stacks, decisions, runtime flow - ensuring compliance, reproducibility, and confidence in agent behavior. At the same time, using LLMs as CPUs means programs are executed intelligently with common sense and high-level instructions.
  • Multi-agent: Build systems of collaborating agents with public playbooks and messaging, simply by asking agents to do things or getting agents to participate in multi-party meetings. See Agents.
  • Dynamic generation of playbooks: Let agents reason over context and objectives, then create new playbooks on the fly to tackle novel tasks. Thanks to the Playbooks Runtime, execution of these dynamically generated playbooks is fully trackable and auditable. Learn more in Dynamic Playbook Generation.
  • Observer agents: Specialized overseers that monitor other agents step-by-step, catching deviations before any action takes effect, and steering them back on course for injectable governance over multi-agent systems. See Observer Agents.

Why It Matters

Participant Benefit
Business Users Can author and refine playbooks in natural language. Transparency and control sit at the specification level.
Developers & Engineers Gain a reliable runtime instead of black box LLM prompt execution, with observability, testability, triggers, multi-agent coordination, and audit-ready outputs.
Governance & Compliance Teams Source is English-readable, version-controlled, and verifiable—ideal for reviews, sign-offs, and traceability.
Product Strategy Empowers rapid iteration - tune behaviors by editing .pb files, experiment safely, reuse logic, and scale confidently.

Under the hood, Playbooks provides a Common Language Specification (CLS) and a Common Language Runtime (CLR) - the “LLMOS” that validates and supervises program execution.

Get started:
pip install playbooks

Quickstart Tutorials Guides Language

Quick example

# Customer support agent
A demo customer support agent for Playbooks AI

## Greet the user
In this playbook, the customer support agent welcomes the user
### Triggers
- At the beginning
### Steps
- Tell user about yourself
- Ask the user for their name
- Say hello to the user by name
- Welcome user to Playbooks AI and say goodbye
- End program

Run it

Save the example as support.pb, then run:

pip install playbooks
playbooks run support.pb

Pick your path

Choose your starting point - each tile is a direct jump into docs with just enough context to know it’s right for you.

  • Explore Playbooks Language
    Write and refine agent behavior in plain English that anyone can understand and update.
    Get started →

  • Build with Python
    Add integrations, custom logic, or optimized computation—bridge English specs with code.
    Learn how →

  • Design Multi-Agent Systems
    Create agents that collaborate, share context, and run public or exported playbooks.
    See patterns →

  • Automate with Triggers
    Run playbooks automatically on schedules, events, or user actions.
    Set up triggers →

  • Gain Full Observability
    Inspect every step, replay runs, debug deterministically, and keep audit-ready logs.
    View tools →

  • Control Autonomy & Safety
    Set guardrails, approvals, and per-step autonomy to keep agents aligned with intent.
    Configure controls →