{
  "name": "Stripe Payments to Google Sheets + Slack",
  "nodes": [
    {
      "parameters": {
        "content": "## Stripe Payments Logged to Google Sheets + Slack Alert\n\nA live revenue ledger you own - every successful Stripe charge lands in a spreadsheet and pings your team channel the moment it happens.\n\n**Setup time:** 10 minutes  ·  **Level:** Beginner\n\n**You'll need accounts/credentials for:** Stripe, Google Sheets, Slack\n\n**Replace these before running:**\n- `REPLACE_WITH_YOUR_SPREADSHEET`\n- `REPLACE_WITH_CHANNEL`\n\n**Setup steps:**\n1. Connect your Stripe account in the trigger node (restricted API key with webhook read is enough).\n2. Connect Google Sheets and select a spreadsheet with columns: Timestamp, Amount, Currency, Customer, Description.\n3. Connect Slack and pick your #revenue channel.\n4. Activate the workflow, then run a $1 test charge (or use Stripe's test mode webhook) to see the row and alert.\n\nFree templates and updates: navkhan103.github.io",
        "height": 618,
        "width": 400,
        "color": 4
      },
      "id": "sticky-setup",
      "name": "Setup — read me first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -440,
        -40
      ]
    },
    {
      "parameters": {
        "content": "### How it runs\n\nStarts from **Successful Charge**.\n\n1. A Stripe Trigger subscribes to charge.succeeded events on your account.\n2. A Set node extracts the fields that matter: amount, currency, customer email, description, and a timestamp.\n3. A Google Sheets node appends the payment as a new row.\n4. A Slack node posts a short alert with the amount and customer so the team feels every sale.",
        "height": 348,
        "width": 400,
        "color": 7
      },
      "id": "sticky-how",
      "name": "How it runs",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -440,
        618
      ]
    },
    {
      "parameters": {
        "content": "### If something breaks\n\nThe read and AI nodes here **retry 3× automatically** (5s apart), which absorbs rate limits and brief timeouts.\n\nNodes that **send or write deliberately do not retry** — a send that reached the far end but lost its response would otherwise fire twice, so you'd get duplicate messages or duplicate rows.\n\nTo be told when one of those fails, build a workflow starting with an **Error Trigger** node that posts to Slack or email, then set it under **three-dot menu > Settings > Error Workflow**. Do it once and point every workflow at it.",
        "height": 400,
        "width": 400,
        "color": 3
      },
      "id": "sticky-fail",
      "name": "If something breaks",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -440,
        1006
      ]
    },
    {
      "parameters": {
        "events": [
          "charge.succeeded"
        ]
      },
      "id": "d5e6f7a8-0001-4000-8000-000000000001",
      "name": "Successful Charge",
      "type": "n8n-nodes-base.stripeTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "s1",
              "name": "timestamp",
              "value": "={{ $now.toISO() }}",
              "type": "string"
            },
            {
              "id": "s2",
              "name": "amount",
              "value": "={{ $json.data.object.amount / 100 }}",
              "type": "number"
            },
            {
              "id": "s3",
              "name": "currency",
              "value": "={{ $json.data.object.currency.toUpperCase() }}",
              "type": "string"
            },
            {
              "id": "s4",
              "name": "customer",
              "value": "={{ $json.data.object.billing_details?.email || $json.data.object.receipt_email || 'unknown' }}",
              "type": "string"
            },
            {
              "id": "s5",
              "name": "description",
              "value": "={{ $json.data.object.description || '' }}",
              "type": "string"
            }
          ]
        }
      },
      "id": "d5e6f7a8-0002-4000-8000-000000000002",
      "name": "Extract Payment Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "REPLACE_WITH_YOUR_SPREADSHEET"
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "Sheet1"
        },
        "columns": {
          "mappingMode": "autoMapInputData"
        }
      },
      "id": "d5e6f7a8-0003-4000-8000-000000000003",
      "name": "Append to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "REPLACE_WITH_CHANNEL"
        },
        "text": "=:moneybag: *{{ $json.amount }} {{ $json.currency }}* from {{ $json.customer }}{{ $json.description ? ' - ' + $json.description : '' }}",
        "otherOptions": {}
      },
      "id": "d5e6f7a8-0004-4000-8000-000000000004",
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Successful Charge": {
      "main": [
        [
          {
            "node": "Extract Payment Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Payment Fields": {
      "main": [
        [
          {
            "node": "Append to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append to Google Sheets": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}