{
  "name": "Send personalized SaaS welcome emails with Stripe, Pinecone, GPT-4o, and Gmail",
  "nodes": [
    {
      "id": "b9c16e96-31ec-4988-871d-7ea15090853a",
      "name": "Amount conversion",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        128
      ]
    },
    {
      "id": "89327a83-5252-4724-b8a7-a469496e7d09",
      "name": "Get user_details",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        128
      ]
    },
    {
      "id": "014f589f-5080-4bc8-898b-ef22ddecc237",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        128
      ]
    },
    {
      "id": "816034a3-854b-4910-a453-1b06d69029a0",
      "name": "Pinecone Tool",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        512,
        272
      ]
    },
    {
      "id": "537e1183-a2a0-4259-be64-13b4f5cdfae5",
      "name": "Parse AI Output",
      "type": "n8n-nodes-base.code",
      "position": [
        816,
        128
      ]
    },
    {
      "id": "216c8d50-7ca4-43f2-890f-5733e7bb59b1",
      "name": "Log customer details",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1200,
        128
      ]
    },
    {
      "id": "75302c0b-e616-4663-9c1f-f1ed10230387",
      "name": "Send Welcome Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        992,
        128
      ]
    },
    {
      "id": "3b0ef4fc-8d57-4e7b-bc1e-6897eb1d5622",
      "name": "GPT-4o",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        416,
        272
      ]
    },
    {
      "id": "36b39931-adf1-46d5-ade1-4c57fc4b82d0",
      "name": "OpenAI Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        464,
        336
      ]
    },
    {
      "id": "56469a95-c10b-4d09-b9a8-ebbb441803ff",
      "name": "Stripe Trigger",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -176,
        128
      ]
    },
    {
      "id": "28fefbbf-2a51-44b9-9eca-9f53d97ec0ac",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -160
      ],
      "parameters": {
        "width": 480,
        "height": 832,
        "content": "**Try It Out!**\n\nThis n8n template automates the entire onboarding experience for a SaaS product with multiple subscription tiers. When a customer completes payment via Stripe, the workflow identifies"
      }
    },
    {
      "id": "0a171bc4-e9a3-4c8c-95d1-0861735d8fcd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -160
      ],
      "parameters": {
        "width": 304,
        "height": 832,
        "content": "**1. Stripe Payment Trigger**"
      }
    },
    {
      "id": "79eccdfe-82ee-40b2-a58c-8a09e689488e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -160
      ],
      "parameters": {
        "width": 208,
        "height": 832,
        "content": "**2. Extract Customer Details**"
      }
    },
    {
      "id": "4a0e6770-d018-4fb2-a6b7-54dbf901492f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -160
      ],
      "parameters": {
        "width": 384,
        "height": 832,
        "content": "**3. AI Email Generation**"
      }
    },
    {
      "id": "5d6df43b-c6a2-438c-ab1c-86016e3cd93b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -160
      ],
      "parameters": {
        "width": 576,
        "height": 832,
        "content": "**4. Send & Log**"
      }
    }
  ],
  "connections": {
    "GPT-4o": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Parse AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Stripe Trigger": {
      "main": [
        [
          {
            "node": "Amount conversion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Output": {
      "main": [
        [
          {
            "node": "Send Welcome Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get user_details": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Amount conversion": {
      "main": [
        [
          {
            "node": "Get user_details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Embeddings": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Tool",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Send Welcome Email": {
      "main": [
        [
          {
            "node": "Log customer details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}