{
  "name": "Quick Expense Logger",
  "description": "A fast little in-page form to log an expense straight into Airtable — capture spending the moment it happens.",
  "tags": [
    "expenses",
    "airtable",
    "budget",
    "logging",
    "quick capture"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "💸 Log an expense in seconds.\n\nPress Run, enter an amount and category, and it's saved as a new record in Airtable. Connect Airtable and pick your base + table the first time."
      },
      "type": "stickyNote",
      "width": 340,
      "height": 170
    },
    {
      "id": "trigger-run",
      "position": {
        "x": 100,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:whenStarted"
        },
        "label": "Run now",
        "inputs": {},
        "parameters": {
          "notes": "Starts the workflow when you press Run."
        }
      },
      "type": "trigger"
    },
    {
      "id": "expense-form",
      "position": {
        "x": 420,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:inPageForm:inPageForm"
        },
        "label": "Log expense",
        "inputs": {
          "title": "Log expense",
          "fields": [
            {
              "name": "amount",
              "label": "Amount",
              "type": "number",
              "required": true
            },
            {
              "name": "category",
              "label": "Category",
              "type": "text"
            }
          ]
        },
        "parameters": {
          "notes": "Shows a small form to capture the amount and category."
        }
      },
      "type": "inPageForm"
    },
    {
      "id": "save-airtable",
      "position": {
        "x": 740,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:airTable"
        },
        "label": "Save to Airtable",
        "inputs": {
          "credential": "",
          "parameters": {
            "resource": "record",
            "operation": "create",
            "baseId": "",
            "tableId": "",
            "fields": {
              "Amount": "{{ $input.amount }}",
              "Category": "{{ $input.category }}"
            }
          }
        },
        "parameters": {
          "notes": "Creates a new Airtable record with the amount and category. Your table should have Amount and Category fields."
        }
      },
      "type": "basic"
    },
    {
      "id": "sticky-airtable",
      "position": {
        "x": 740,
        "y": 460
      },
      "data": {
        "color": "#ffd9b3",
        "content": "Setup needed: connect Airtable and pick the base + table to save into. Give it Amount and Category fields."
      },
      "type": "stickyNote",
      "width": 300,
      "height": 130
    }
  ],
  "edges": [
    {
      "id": "e-run-form",
      "type": "flowEdge",
      "source": "trigger-run",
      "target": "expense-form"
    },
    {
      "id": "e-form-airtable",
      "type": "flowEdge",
      "source": "expense-form",
      "target": "save-airtable"
    }
  ]
}