{
  "snapi_template": 1,
  "name": "Expense Approval",
  "description": "Expenses pile up in inboxes and spreadsheets. Give employees a form, put each claim on a board, and let a manager approve — the decision flows straight back to your workflow to reimburse or reject.",
  "app": "$f1",
  "root": "$f1",
  "forms": [
    {
      "token": "$f1",
      "name": "Expense Approval",
      "description": "Expense Approval — submit and work the queue",
      "icon": "fas fa-receipt",
      "color": "#2551ed",
      "is_public": false,
      "auth_required": false,
      "is_app": true,
      "success_message": "Submitted successfully.",
      "config": {
        "fields": [
          {
            "name": "hub_title",
            "label": "Expense Approval",
            "type": "title"
          },
          {
            "name": "hub_intro",
            "label": "Submit a expense, or open the board to work the queue. Moving a card fires a webhook back to your automation.",
            "type": "subtitle"
          },
          {
            "name": "new_item",
            "label": "Submit an expense",
            "type": "button",
            "buttonActionType": "navigate",
            "buttonTargetKind": "form",
            "buttonTargetEntityId": "$f2",
            "buttonIcon": "fas fa-plus",
            "buttonStyle": "primary"
          },
          {
            "name": "board_link",
            "label": "Expense board",
            "type": "link",
            "linkAction": "navigate",
            "linkTargetKind": "board",
            "linkTargetBoardId": "$b1",
            "linkIcon": "fas fa-columns"
          }
        ]
      }
    },
    {
      "token": "$f2",
      "name": "Expense",
      "description": "A expense",
      "icon": "fas fa-receipt",
      "color": "#0ea5e9",
      "is_public": true,
      "auth_required": false,
      "is_app": false,
      "success_message": "Submitted — it's now in the queue.",
      "default_board": "$b1",
      "default_column": "$c1",
      "config": {
        "fields": [
          {
            "name": "ref_no",
            "label": "Ref #",
            "type": "sequence",
            "sequenceId": "$s1",
            "sequenceEditable": false
          },
          {
            "name": "what",
            "label": "What was it for?",
            "type": "text",
            "required": true
          },
          {
            "name": "amount",
            "label": "Amount ($)",
            "type": "number",
            "required": true
          },
          {
            "name": "category",
            "label": "Category",
            "type": "select",
            "options": [
              "Travel",
              "Meals",
              "Software",
              "Equipment",
              "Other"
            ]
          },
          {
            "name": "submitted_by",
            "label": "Your name",
            "type": "text",
            "required": true
          }
        ]
      }
    }
  ],
  "boards": [
    {
      "token": "$b1",
      "name": "Expense Approval Queue",
      "description": "New items land in Pending. Drag a card to Approved — that move fires the form's post-webhook so your automation can continue.",
      "nav_items": [
        {
          "name": "nav_new",
          "label": "Submit an expense",
          "type": "button",
          "buttonActionType": "navigate",
          "buttonTargetKind": "form",
          "buttonTargetEntityId": "$f2",
          "buttonIcon": "fas fa-plus",
          "buttonStyle": "primary"
        }
      ],
      "columns": [
        {
          "token": "$c1",
          "name": "Pending",
          "color": "#f59e0b",
          "position": 0
        },
        {
          "token": "$c2",
          "name": "Approved",
          "color": "#10b981",
          "position": 1
        },
        {
          "token": "$c3",
          "name": "Rejected",
          "color": "#ef4444",
          "position": 2
        }
      ]
    }
  ],
  "sequences": [
    {
      "token": "$s1",
      "name": "expense_approval",
      "prefix": "EXP-",
      "padding": 4,
      "reset_period": null
    }
  ]
}
