{
  "name": "Followup Stripe checkouts with Gmail receipts, internal Slack, and Sheets logs",
  "nodes": [
    {
      "id": "800d597d-57cf-4f90-852a-d2af89bd00fc",
      "name": "Log Transaction",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -16,
        -144
      ]
    },
    {
      "id": "0e4afb98-048a-4041-940c-82f788487fbd",
      "name": "Email Receipt",
      "type": "n8n-nodes-base.gmail",
      "position": [
        608,
        -336
      ]
    },
    {
      "id": "baa333c7-de1d-4715-a347-d1646b5a5038",
      "name": "Invoice Created",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -272,
        192
      ]
    },
    {
      "id": "bce59371-6ffe-423c-9f58-f0856d64d994",
      "name": "Checkout Completed",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -256,
        -144
      ]
    },
    {
      "id": "b7002dce-081a-424e-a2d2-1ca41f719a45",
      "name": "Log Invoice",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -16,
        192
      ]
    },
    {
      "id": "26f150b9-f2b4-49ca-895f-76b157e0df48",
      "name": "Wait for Invoice",
      "type": "n8n-nodes-base.wait",
      "position": [
        272,
        -336
      ]
    },
    {
      "id": "5467970e-5117-46af-a2cb-f74985ff8964",
      "name": "Lookup Invoice",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        448,
        -336
      ]
    },
    {
      "id": "8c40f5f4-8d60-45f8-ae73-e45b24c88d25",
      "name": "Message to RevOps",
      "type": "n8n-nodes-base.slack",
      "position": [
        288,
        0
      ]
    },
    {
      "id": "a92e9140-637f-483b-97c3-a4362685f4e0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -480
      ],
      "parameters": {
        "width": 560,
        "height": 176,
        "content": "## Followup Stripe Checkouts with Gmail Receipts, Internal Slack, and Sheets Logs\n\nThis n8n template demonstrates how to automate the followup when your customer completes a checkout in Stripe by emai"
      }
    },
    {
      "id": "5fc4a0c3-126e-4fc0-9439-f3337203e383",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -288
      ],
      "parameters": {
        "width": 448,
        "height": 288,
        "content": "### Log the checkout transaction \n\nReceive the checkout transaction from Stripe and append the details to a log we are keeping in a Google Sheet."
      }
    },
    {
      "id": "cc164e57-5cd8-446e-adb8-1f0702907c90",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -448
      ],
      "parameters": {
        "width": 592,
        "height": 288,
        "content": "### Email a receipt\n\nWait a few seconds for the invoice to be received from Stripe and logged to the Sheet.  Then look up the link to the PDF and email it out to the customer.\n"
      }
    },
    {
      "id": "8bc08914-53c3-465e-83d4-54db5ea2dd74",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        32
      ],
      "parameters": {
        "width": 448,
        "height": 336,
        "content": "### Log the invoice \n\nReceive the invoice created event from Stripe. This happens separately from the checkout event. Store the invoice details in a Google Sheet log where we can look them up."
      }
    },
    {
      "id": "6f205642-37d0-4dcd-bd94-65c54fd568ea",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -112
      ],
      "parameters": {
        "width": 608,
        "height": 288,
        "content": "### Notify internal users\n\nThe data from the Stripe checkout event is also used to send a notification to the #revops channel for the Sales team.\n"
      }
    }
  ],
  "connections": {
    "Log Invoice": {
      "main": [
        []
      ]
    },
    "Email Receipt": {
      "main": [
        []
      ]
    },
    "Lookup Invoice": {
      "main": [
        [
          {
            "node": "Email Receipt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Invoice Created": {
      "main": [
        [
          {
            "node": "Log Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Transaction": {
      "main": [
        [
          {
            "node": "Message to RevOps",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait for Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Invoice": {
      "main": [
        [
          {
            "node": "Lookup Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checkout Completed": {
      "main": [
        [
          {
            "node": "Log Transaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}