{
  "name": "Auto-send PDF invoices with Stripe payment triggers and Gmail",
  "nodes": [
    {
      "id": "3c9c65d5-e8ef-472b-994f-14d67bf92479",
      "name": "Setup Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 280,
        "height": 200,
        "content": "💰 **SETUP REQUIRED:**\n\n1. **Stripe Webhook:**\n   - Go to Stripe Dashboard → Webhooks\n   - Add endpoint with webhook URL below\n   - Select event: payment_intent.succeeded\n\n2. **Gmail Setup:**\n   - Conn"
      }
    },
    {
      "id": "9d2296bf-2617-4b8c-9d5b-ff87e3cf8360",
      "name": "Stripe Payment Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        224
      ]
    },
    {
      "id": "25314ce6-fbec-41b1-9328-2e075eb658a2",
      "name": "Normalize Payment Data",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        224
      ]
    },
    {
      "id": "8439384c-a885-4ad5-bc5d-e587b667fe61",
      "name": "Generate Invoice HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        400,
        224
      ]
    },
    {
      "id": "7cb20e9e-dec4-4c7b-9029-05f3ddd5ef0a",
      "name": "Send Invoice Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        608,
        224
      ]
    }
  ],
  "connections": {
    "Generate Invoice HTML": {
      "main": [
        [
          {
            "node": "Send Invoice Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Payment Data": {
      "main": [
        [
          {
            "node": "Generate Invoice HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stripe Payment Webhook": {
      "main": [
        [
          {
            "node": "Normalize Payment Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}