{
  "name": "Create and send AI sales proposals using Gemini, Google Docs & Gmail",
  "nodes": [
    {
      "id": "a775b2d8-00fd-4136-b948-dcad03b719fe",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        13328,
        4272
      ]
    },
    {
      "id": "91ee46c5-9e8f-47f3-8425-88cbe1d7b777",
      "name": "Create or update a contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        13904,
        4272
      ]
    },
    {
      "id": "49538d25-7891-4016-b209-88500e02042b",
      "name": "Copy file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        14128,
        4272
      ]
    },
    {
      "id": "32163cef-cd7b-4892-908f-d789557728ca",
      "name": "Update a document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        14352,
        4272
      ]
    },
    {
      "id": "01ce8811-eda1-4e23-a164-52b1f270db10",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        14576,
        4272
      ]
    },
    {
      "id": "5f9cd328-150e-42aa-a3f2-e79f142b3245",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        14800,
        4352
      ]
    },
    {
      "id": "aa256e93-8af3-4b47-90a6-731d3438e0af",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        12880,
        4352
      ]
    },
    {
      "id": "e1f030c5-c8f0-442f-bdb8-221bc1d5f3fe",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        13104,
        4352
      ]
    },
    {
      "id": "cd05a023-5af6-45aa-a70e-2fe03192b8b2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11440,
        3728
      ],
      "parameters": {
        "width": 1392,
        "height": 1424,
        "content": "# AI Proposal Automation Overview\n\nThis workflow automates the full sales proposal process from lead capture to delivery. It uses AI to generate tailored proposals, updates CRM records, creates docume"
      }
    },
    {
      "id": "573af401-8e9a-4fbf-8dfc-b9175649b9a3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12864,
        3728
      ],
      "parameters": {
        "width": 912,
        "height": 1424,
        "content": "## AI Processing & CRM\n\nGenerates proposal content and syncs lead data to HubSpot."
      }
    },
    {
      "id": "8dc084a5-b842-462b-927a-85be259fafa4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        13792,
        3728
      ],
      "parameters": {
        "width": 912,
        "height": 1424,
        "content": "## Document Generation\n\nCreates proposal, replaces placeholders, and exports PDF."
      }
    },
    {
      "id": "bafd6368-b405-4114-a95a-848020fbeac5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        14720,
        3728
      ],
      "parameters": {
        "width": 384,
        "height": 1424,
        "content": "## Delivery & Loop\n\nSends proposal via email and handles multiple submissions."
      }
    },
    {
      "id": "f7e3185f-b4e3-41c3-9b3c-4e83759df231",
      "name": "Code in JavaScript2",
      "type": "n8n-nodes-base.code",
      "position": [
        13680,
        4272
      ]
    }
  ],
  "connections": {
    "Copy file": {
      "main": [
        [
          {
            "node": "Update a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Code in JavaScript2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a document": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript2": {
      "main": [
        [
          {
            "node": "Create or update a contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create or update a contact": {
      "main": [
        [
          {
            "node": "Copy file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}