{
  "name": "Smart email auto-responder template using AI",
  "nodes": [
    {
      "id": "e563eef6-39c4-4859-b23a-db096e7f8717",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -1300,
        -60
      ]
    },
    {
      "id": "068c250f-84b0-41e4-b48a-6a5260b7a24a",
      "name": "Text Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        -660,
        0
      ]
    },
    {
      "id": "036d86c2-0375-4f44-a14f-4f20d17eb048",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -640,
        200
      ]
    },
    {
      "id": "6ca6adeb-fdf4-4e4c-83f2-e2b28548b33e",
      "name": "GuestPost Inquiry",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -80,
        -180
      ]
    },
    {
      "id": "41f06728-3bac-4fc2-ab20-d16f3fd9a936",
      "name": "Youtube Video Inquiry",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -80,
        0
      ]
    },
    {
      "id": "e42754e8-a594-4ea8-b9a8-9e47ffdacd72",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -80,
        180
      ]
    },
    {
      "id": "a12e47bb-540b-4d42-b4fa-d27237964022",
      "name": "Mark as Read",
      "type": "n8n-nodes-base.gmail",
      "position": [
        360,
        0
      ]
    },
    {
      "id": "06deb7fa-0169-46c3-b673-f35b476ef6a5",
      "name": "Apply Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        660,
        200
      ]
    },
    {
      "id": "a3a38697-87ff-4954-aafe-c548425a84eb",
      "name": "Create Contact in Brevo",
      "type": "n8n-nodes-base.sendInBlue",
      "position": [
        640,
        -140
      ]
    },
    {
      "id": "99d8d741-4c7b-4795-958b-18116f9f7f96",
      "name": "Emails from Existing Contracts",
      "type": "n8n-nodes-base.if",
      "position": [
        -1120,
        -60
      ]
    },
    {
      "id": "538b53ef-05cd-4f08-83d7-5218b8492036",
      "name": "Reply",
      "type": "n8n-nodes-base.if",
      "position": [
        -980,
        100
      ]
    },
    {
      "id": "28f5e0eb-e3ad-4d34-89c6-c1571521f283",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2060,
        -300
      ],
      "parameters": {
        "width": 715,
        "height": 716,
        "content": "## Developed by Amjid Ali\n\nThank you for using this workflow template. It has taken me countless hours of hard work, research, and dedication to develop, and I sincerely hope it adds value to your wor"
      }
    },
    {
      "id": "8c105698-d989-44c3-ad8e-4bdda5c01715",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1320,
        -300
      ],
      "parameters": {
        "width": 520,
        "height": 720,
        "content": "## Get the and Validate  New Email"
      }
    },
    {
      "id": "cbb2e328-35b3-4ec9-9470-254666e40400",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -780,
        -300
      ],
      "parameters": {
        "width": 520,
        "height": 720,
        "content": "## Classify the Email"
      }
    },
    {
      "id": "0b5584cb-1002-46f5-9ac0-bcd816998534",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -300
      ],
      "parameters": {
        "width": 520,
        "height": 720,
        "content": "## Email Templates for Services"
      }
    },
    {
      "id": "406f5793-6b54-4008-89e5-0b878aef9806",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -300
      ],
      "parameters": {
        "width": 520,
        "height": 720,
        "content": "## mark as read, apply label and add to contact\n"
      }
    }
  ],
  "connections": {
    "Reply": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        [
          {
            "node": "Mark as Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Read": {
      "main": [
        [
          {
            "node": "Apply Label",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Contact in Brevo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Emails from Existing Contracts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "GuestPost Inquiry",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Youtube Video Inquiry",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GuestPost Inquiry": {
      "main": [
        [
          {
            "node": "Mark as Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Youtube Video Inquiry": {
      "main": [
        [
          {
            "node": "Mark as Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Emails from Existing Contracts": {
      "main": [
        [],
        [
          {
            "node": "Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}