{
  "name": "Summarize your emails with A.I. (via Openrouter) and send to Line messenger",
  "nodes": [
    {
      "id": "33cb4970-014e-454c-81c4-0511bfae69cd",
      "name": "Read emails (IMAP)",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        280,
        220
      ]
    },
    {
      "id": "7180288e-8260-4707-b714-73be852a0755",
      "name": "Send summarized content to messenger",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1380,
        200
      ]
    },
    {
      "id": "d1ca1fc2-f4ff-49da-9c2b-f945e090192d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -40
      ],
      "parameters": {
        "width": 361,
        "height": 90,
        "content": "## Summarize emails with A.I.\nYou can find out more about the [use case](https://rumjahn.com/how-a-i-saved-my-kids-school-life-and-my-marriage/)"
      }
    },
    {
      "id": "8cef000e-458a-4408-961b-70bd3e69aa0e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        120
      ],
      "parameters": {
        "width": 229,
        "height": 280,
        "content": "Find your email server's IMAP Settings. \n- Link for [gmail](https://www.getmailspring.com/setup/access-gmail-via-imap-smtp)"
      }
    },
    {
      "id": "379fe17a-40ee-4174-8e8e-98d9ce7a7bbb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -40
      ],
      "parameters": {
        "width": 365,
        "height": 442,
        "content": "For the A.I. you can use Openrouter.ai. \n- Set up a free account\n- The A.I. model selected is FREE to use.\n## Credentials\n- Use header auth\n- Username: Authorization\n- Password: Bearer {insert your AP"
      }
    },
    {
      "id": "d88115fb-89ad-4f8f-9e50-2602c658692e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -60
      ],
      "parameters": {
        "width": 307,
        "height": 439,
        "content": "Don't use the official Line node. It's outdated.\n## Credentials\n- Use header auth\n- Username: Authorization\n- Password: Bearer {channel access token}\n\nYou can find your channel access token at the [Li"
      }
    },
    {
      "id": "d4985708-c87e-4b0a-9e72-c87ca07f261d",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        560,
        220
      ]
    },
    {
      "id": "534d65d9-0d44-4af2-9f69-c7deb46e2556",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        540,
        420
      ]
    },
    {
      "id": "d133ab53-71da-462d-9a9e-8427967b1dbb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        720,
        420
      ]
    },
    {
      "id": "4eb2bbd0-7fa1-44b1-abfa-0e424e42c93f",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1000,
        220
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Send summarized content to messenger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read emails (IMAP)": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}