{
  "name": "Generate AI proposals as PDFs with GPT-4, Gmail, Google Drive and Slack",
  "nodes": [
    {
      "id": "247a68af-aa45-45b8-9688-9f000779377f",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2272,
        576
      ]
    },
    {
      "id": "a8171df0-a161-46d9-8fdb-5389c736c598",
      "name": "HTML to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        -944,
        576
      ]
    },
    {
      "id": "cc66c2a0-721a-468e-879f-5c127fd43054",
      "name": "Send Email with PDF Attachment",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -640,
        352
      ]
    },
    {
      "id": "7179c5ac-4341-42bb-8e69-d10feaa45637",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -640,
        576
      ]
    },
    {
      "id": "041e65a0-9879-48b4-9d6a-40ec9935c3f1",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -144,
        560
      ]
    },
    {
      "id": "f89b8bad-4227-4234-9a39-d9a61d4d1976",
      "name": "Define Pricing & Timeline Logic",
      "type": "n8n-nodes-base.set",
      "position": [
        -2016,
        576
      ]
    },
    {
      "id": "036fbcf9-920e-42f4-9399-29e677df46e0",
      "name": "Generate Proposal Content",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1744,
        576
      ]
    },
    {
      "id": "acbf20c9-ba6f-4082-a720-fdb7b0fd5d50",
      "name": "Extract AI Content",
      "type": "n8n-nodes-base.set",
      "position": [
        -1424,
        576
      ]
    },
    {
      "id": "723ee195-bae3-47c7-8e2b-35a0c827f1ac",
      "name": "Generates HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        -1184,
        576
      ]
    },
    {
      "id": "2595a3dc-a03b-4ace-95d6-6dede2e65cc8",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        -640,
        784
      ]
    },
    {
      "id": "aa0a2ec9-b512-48ce-99e4-13e061174d36",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        64,
        576
      ]
    },
    {
      "id": "a02ccb6a-937a-4bf8-9300-9f881d8659d3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2688,
        -112
      ],
      "parameters": {
        "width": 336,
        "height": 880,
        "content": "### How It Works\nThis workflow automates proposal generation for freelancers and agencies. When a client submits their project details through the webhook, the workflow processes their budget range an"
      }
    },
    {
      "id": "37178ef0-bf1d-47f5-b35a-c1dd24a73683",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2304,
        464
      ],
      "parameters": {
        "width": 448,
        "height": 288,
        "content": "## Input & Configuration\nReceives client project details via webhook and calculates pricing, timeline, and proposal metadata."
      }
    },
    {
      "id": "d3c4c0e9-0966-4f86-b045-6d1b7145a57a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        480
      ],
      "parameters": {
        "width": 736,
        "height": 272,
        "content": "## AI Content Generation\nUses OpenAI GPT-4 to write a customized proposal, then formats it into a professional HTML document."
      }
    },
    {
      "id": "5454ef8b-e2c8-4258-bdd8-46e893013fde",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        256
      ],
      "parameters": {
        "width": 480,
        "height": 688,
        "content": "## PDF Creation & Distribution\nConverts HTML to PDF and delivers via email, Google Drive storage, and Slack team notification."
      }
    },
    {
      "id": "17737ea2-7eee-4ac8-acfa-30eddefe717d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        464
      ],
      "parameters": {
        "width": 464,
        "height": 288,
        "content": "## Completion\nMerges all execution paths and returns a structured JSON success response to the caller."
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Define Pricing & Timeline Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML to PDF": {
      "main": [
        [
          {
            "node": "Send Email with PDF Attachment",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generates HTML": {
      "main": [
        [
          {
            "node": "HTML to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Extract AI Content": {
      "main": [
        [
          {
            "node": "Generates HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Proposal Content": {
      "main": [
        [
          {
            "node": "Extract AI Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email with PDF Attachment": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Pricing & Timeline Logic": {
      "main": [
        [
          {
            "node": "Generate Proposal Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}