{
  "name": "Explain This Page Simply",
  "description": "Turn the page you're on into a plain-language explanation anyone can follow — on-device, no account.",
  "tags": [
    "explain",
    "simplify",
    "on-device ai",
    "reading",
    "web page",
    "eli5"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "🧒 Explain this page like I'm five.\n\nPress Run on any page and get a simple, jargon-free explanation. This one uses Chrome's built-in AI — no model download and nothing leaves your device."
      },
      "type": "stickyNote",
      "width": 340,
      "height": 180
    },
    {
      "id": "trigger-run",
      "position": {
        "x": 100,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:whenStarted"
        },
        "label": "Run now",
        "inputs": {},
        "parameters": {
          "notes": "Starts the workflow when you press Run."
        }
      },
      "type": "trigger"
    },
    {
      "id": "get-text",
      "position": {
        "x": 420,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:getAllTextNode"
        },
        "label": "Read the current page",
        "inputs": {
          "outputFieldName": "text",
          "options": {
            "visibleOnly": true
          }
        },
        "parameters": {
          "notes": "Grabs the readable text from the page you're currently viewing."
        }
      },
      "type": "basic"
    },
    {
      "id": "explain",
      "position": {
        "x": 740,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:agent:chrome-ai"
        },
        "label": "Explain it simply",
        "inputs": {
          "prompt": "Explain this simply, in plain everyday language a beginner can follow: {{ $input.text }}",
          "options": {
            "temperature": 0.5,
            "topK": 40
          }
        },
        "parameters": {
          "notes": "Chrome's built-in on-device AI rewrites the page into a simple explanation. No model download needed."
        }
      },
      "type": "agent"
    },
    {
      "id": "show-explanation",
      "position": {
        "x": 1060,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:displayMarkdownNode"
        },
        "label": "Show the explanation",
        "inputs": {
          "title": "In plain words",
          "content": "{{ $input.result }}"
        },
        "parameters": {
          "notes": "Displays the simple explanation."
        }
      },
      "type": "basic"
    },
    {
      "id": "sticky-model",
      "position": {
        "x": 740,
        "y": 500
      },
      "data": {
        "color": "#c9f0d1",
        "content": "No setup: this uses Chrome's built-in AI, so there's no model to pick or download. If your browser doesn't have it enabled, try the Summarize This Page workflow instead."
      },
      "type": "stickyNote",
      "width": 320,
      "height": 130
    }
  ],
  "edges": [
    {
      "id": "e-run-get",
      "type": "flowEdge",
      "source": "trigger-run",
      "target": "get-text"
    },
    {
      "id": "e-get-explain",
      "type": "flowEdge",
      "source": "get-text",
      "target": "explain"
    },
    {
      "id": "e-explain-show",
      "type": "flowEdge",
      "source": "explain",
      "target": "show-explanation"
    }
  ]
}