{
  "author": "Voodflow",
  "license": "MIT",
  "description": "Set Variable: Store computed values and use them downstream",
  "version": "1.0.0",
  "nodes": [
    {
      "id": "manual_trigger-sv-ex-000",
      "type": "manual_trigger_node",
      "position": { "x": -1100, "y": -50 },
      "data": {
        "label": "Manual Trigger",
        "description": "Run workflow manually",
        "icon": "heroicon-o-play",
        "iconType": "heroicon",
        "color": "amber",
        "display_name": "Manual Trigger",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "Manual Trigger",
          "test_payload": "{}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 300 }
    },
    {
      "id": "dummy_data_node-sv-ex-001",
      "type": "dummy_data_node",
      "position": { "x": -550, "y": -50 },
      "data": {
        "label": "Order Data",
        "description": "Sample order",
        "data_type": "json",
        "content": "{\n  \"product\": \"Widget Pro\",\n  \"quantity\": 3,\n  \"unit_price\": 29.99,\n  \"customer\": \"Alice\"\n}",
        "icon": "heroicon-o-document-arrow-down",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Dummy Data",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "Order Data",
          "data_type": "json",
          "content": "{\n  \"product\": \"Widget Pro\",\n  \"quantity\": 3,\n  \"unit_price\": 29.99,\n  \"customer\": \"Alice\"\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 350 }
    },
    {
      "id": "set_variable_node-sv-ex-002",
      "type": "set_variable_node",
      "position": { "x": 50, "y": -50 },
      "data": {
        "label": "Compute Totals",
        "description": "Calculate order total and tax",
        "variables": [
          { "name": "order_total", "value": "{{quantity}} * {{unit_price}}", "scope": "local", "mode": "overwrite" },
          { "name": "order_summary", "value": "\"Order for \" ~ {{customer}} ~ \": \" ~ {{quantity}} ~ \"x \" ~ {{product}}", "scope": "local", "mode": "overwrite" }
        ],
        "icon": "heroicon-o-tag",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Set Variable",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Compute Totals",
          "description": "Calculate order total and tax",
          "variables": [
            { "name": "order_total", "value": "{{quantity}} * {{unit_price}}", "scope": "local", "mode": "overwrite" },
            { "name": "order_summary", "value": "\"Order for \" ~ {{customer}} ~ \": \" ~ {{quantity}} ~ \"x \" ~ {{product}}", "scope": "local", "mode": "overwrite" }
          ],
          "isExpanded": true
        }
      },
      "measured": { "width": 500, "height": 400 }
    },
    {
      "id": "system_notification-sv-ex-003",
      "type": "system_notification",
      "position": { "x": 650, "y": -50 },
      "data": {
        "label": "Order Notification",
        "description": "Notify admin about the order",
        "title": "New Order: ${{order_total}}",
        "body": "{{order_summary}}",
        "status": "success",
        "icon_name": "",
        "icon_color": "",
        "duration_ms": null,
        "channels": ["database"],
        "dispatch_database_event": true,
        "recipient_user_id": "1",
        "icon": "heroicon-o-bell",
        "iconType": "heroicon",
        "color": "indigo",
        "display_name": "System Notification",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Order Notification",
          "description": "Notify admin about the order",
          "title": "New Order: ${{order_total}}",
          "body": "{{order_summary}}",
          "status": "success",
          "icon_name": "",
          "icon_color": "",
          "duration_ms": null,
          "channels": ["database"],
          "dispatch_database_event": true,
          "recipient_user_id": "1",
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 400 }
    }
  ],
  "edges": [
    {
      "id": "edge-trigger-to-dummy",
      "source": "manual_trigger-sv-ex-000",
      "target": "dummy_data_node-sv-ex-001",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-dummy-to-setvar",
      "source": "dummy_data_node-sv-ex-001",
      "target": "set_variable_node-sv-ex-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-setvar-to-notification",
      "source": "set_variable_node-sv-ex-002",
      "target": "system_notification-sv-ex-003",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 800, "y": 300, "zoom": 0.6 },
  "exportedAt": "2026-04-01T16:30:00.000Z",
  "voodflowVersion": "1.0.0"
}
