// defined_action_framework v1.2.0

Build agentic
workflows.
In JSON.

An open standard to define LLM driven processes. Steps, actions, loops, all in a portable JSON file. Run with Prism or your own executor.

$ npm install daf-sdk
or prismrun.ai to run in browser
tech_newsletter_daf.json
{
  "dafVersion": "1.2.0",
  "variables": {
    "EMAIL": "you@example.com"
  },
  "processes": [{
    "name": "Newsletter",
    "steps": [
      {"type": "prompt", "content":
        "Scrape tech news"},
      {"type": "prompt", "content":
        "Write summary"},
      {"type": "prompt", "content":
        "Email to $EMAIL"}
    ]
  }]
}
/* CORE CONCEPTS */
processes
Sequences of prompt steps that guide the LLM through a task
actions
JSON triggers in LLM output that fire real world operations
variables
Named values injected into prompts at runtime via $VAR syntax
loops
Iterate steps N times or stop on a keyword from the model
/* HOW ACTIONS WORK */
01
LLM receives prompt
Your step's prompt is sent to the model as a user message in the conversation.
02
Model outputs action JSON
When ready to act, the model includes {"type":"action","variant":"..."} in its response.
03
Action fires
The framework detects the JSON and executes it. A web scrape, an email send, a database write.
04
Result returns to dialogue
Action output feeds back into the conversation. Next step begins. The LLM keeps full context.
/* WHY NOT THE ALTERNATIVES */
ready_made_apps
- prompts hidden
- no customization
- vendor lock in
code_from_scratch
- complex setup
- slow iteration
- high maintenance
daf_standard
+ fully transparent
+ portable JSON format
+ run anywhere
/* EXAMPLE DAF FILES */
Tech Newsletter
Scrapes deal news from European tech sites and emails a formatted summary.
> scrape websites in a loop
> follow article links
> compose newsletter
> send via email action
Company Research
Investigates a company across 6 aspects and produces a concise one pager.
> loop 6 research aspects
> web search per aspect
> follow up 3 result links
> summarize and email
Latent Morning Post
Fully automated AI newspaper. Researches, writes, and publishes daily.
> gather global news
> write articles
> publish to website
> send digest email
Custom Process
Start from scratch and define any multistep LLM driven workflow.
> define your steps
> add variables
> choose actions
> run on Prism or your own executor
start building →
// get started

The standard is open.
Clone it. Extend it. Ship it.

$ npm install daf-sdk run_on_prism() →