{
  "name": "Automatically save Kindle handwritten notes to Google Drive with DeepSeek AI",
  "nodes": [
    {
      "id": "b7a9b0e3-bb4a-4f19-8c25-db1980c8d783",
      "name": "DeepSeek Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        336,
        272
      ]
    },
    {
      "id": "e347e4b8-b8fc-4676-b1db-476b3d0c67c6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -272
      ],
      "parameters": {
        "width": 416,
        "height": 480,
        "content": "## Step #1: Emails\n\n1. Configure your Amazon Kindle (in the settings of the device itself) to send exports to your gmail address.\n2. Now, configure your gmail node to react to specific emails from a s"
      }
    },
    {
      "id": "b3c9d3ab-bf67-456d-afe2-2112433f6ec9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -864
      ],
      "parameters": {
        "width": 2000,
        "height": 512,
        "content": "## Kindle Note Export Automation: PDF Retrieval\n\n### The Challenge\n\nKindle devices that support handwritten notes, such as the Kindle Scribe, offer an option to export notes (notebooks) as PDF files. "
      }
    },
    {
      "id": "005f2d08-896b-4eea-b4b8-56773f1fc10f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -272
      ],
      "parameters": {
        "width": 320,
        "height": 480,
        "content": "## Step #2: Convert to HTML\n\n1. Convert the incoming email to HTML to simplify the URL extraction"
      }
    },
    {
      "id": "24b03c4b-e7c6-4b61-957d-404322b29bd5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -272
      ],
      "parameters": {
        "width": 320,
        "height": 704,
        "content": "## Step #3: Extract the URL using DeepSeek\n\n1. Instruct the LLM to find that dynamic URL; in theory, you could do that with regex but I am not good at it plus I wanted to test out DeepSeek.\n2. The age"
      }
    },
    {
      "id": "370bdefe-ecd9-41c9-a457-1706e46a7b6e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -272
      ],
      "parameters": {
        "width": 320,
        "height": 704,
        "content": "## Step #4: Make a request to download those notes\n\n1. Use your extracted URL to grab the .pdf file."
      }
    },
    {
      "id": "8007b8d1-8b98-498b-91b4-44c3f06f275c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -272
      ],
      "parameters": {
        "width": 560,
        "height": 704,
        "content": "## Step #5: Upload the .pdf to my GDrive folder for notes\n\n1. Upload the .pdf to my GDrive folder for Kindle Notes.\n2. Inform me by email when the workflow succeeded (last step should only work if eve"
      }
    },
    {
      "id": "6a6fbcaf-4c30-4ae1-894d-2dad3c4b03a9",
      "name": "AI Agent - Link Extraction",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        272,
        0
      ]
    },
    {
      "id": "972b53cc-040f-4604-afb8-c2bdd395e938",
      "name": "File upload - Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        960,
        0
      ]
    },
    {
      "id": "7a4ef25d-0853-4fd2-afd1-2b940ca2e517",
      "name": "Success notification - Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1200,
        0
      ]
    },
    {
      "id": "c65a26c5-8a73-4c4d-b242-b22cea9e882f",
      "name": "PDF retrieval - HTTP request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        672,
        0
      ]
    },
    {
      "id": "d64c5a49-cf78-4e56-96ae-448a05da2cec",
      "name": "Link extraction: HTML parser",
      "type": "n8n-nodes-base.html",
      "position": [
        -32,
        0
      ]
    },
    {
      "id": "c547b8c4-d321-49e0-a823-03108a12c7ac",
      "name": "Email ingestion: Gmail trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -336,
        0
      ]
    }
  ],
  "connections": {
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent - Link Extraction",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent - Link Extraction": {
      "main": [
        [
          {
            "node": "PDF retrieval - HTTP request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File upload - Google Drive": {
      "main": [
        [
          {
            "node": "Success notification - Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Link extraction: HTML parser": {
      "main": [
        [
          {
            "node": "AI Agent - Link Extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF retrieval - HTTP request": {
      "main": [
        [
          {
            "node": "File upload - Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email ingestion: Gmail trigger": {
      "main": [
        [
          {
            "node": "Link extraction: HTML parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}