{
  "name": "AI Sales Follow-Up Engine",
  "tags": [],
  "nodes": [
    {
      "id": "7eefaae3-a1a5-480d-b5f6-12dd6e29079a",
      "name": "📝 Set Sample Data",
      "type": "n8n-nodes-base.set",
      "position": [
        20,
        0
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "contact_name",
              "value": "John Doe"
            },
            {
              "name": "context",
              "value": "had a product demo yesterday and showed strong interest in our enterprise features"
            },
            {
              "name": "Email",
              "value": "user@example.com"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "e095c44e-2662-4f1a-913b-f30d66ef199a",
      "name": "💬 Slack Reminder",
      "type": "n8n-nodes-base.slack",
      "position": [
        836,
        -200
      ],
      "parameters": {
        "text": "=📞 Follow-up Reminder\n\n**Contact:** {{ $('📝 Set Sample Data').item.json.contact_name }}\n**Context:** {{ $('📝 Set Sample Data').item.json.context }}\n\n**Suggested Message:**\n{{ $json.output }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SLACK_CHANNEL_ID"
        },
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure slackApi in n8n"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "69316064-2c3b-480a-83ce-4a71d8266b1c",
      "name": "🤖 Generate Follow-up Message",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        460,
        0
      ],
      "parameters": {
        "text": "=Generate a short, professional follow-up message for {{ $json.properties.firstname }} {{ $json.properties.lastname }}, who {{ $('📝 Set Sample Data').item.json.context }}.\n\nThe tone should be friendly, personalized, and reference the previous interaction.\n\nClearly suggest relevant next steps (e.g., scheduling a call, sharing resources, or continuing the discussion).\n\nKeep it under 150 words.\n\nAt the end of the message, include this signature block exactly as written (no placeholders):\n\nBest regards,  \n[Your Name]  \n[Your Title] | [Your Company]  \n📧 [your.email@company.com]\n\nReturn only the final message, fully ready to send, with no extra notes or placeholders.",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "084edea7-d5d0-43d8-942a-4bdd97cfc739",
      "name": "🔗 HubSpot Contact Lookup",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        240,
        -100
      ],
      "parameters": {
        "operation": "search",
        "returnAll": true,
        "authentication": "appToken",
        "filterGroupsUi": {
          "filterGroupsValues": [
            {
              "filtersUi": {
                "filterValues": [
                  {
                    "value": "={{ $json.Email }}",
                    "propertyName": "email|string"
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure hubspotAppToken in n8n"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "4b7440f8-585e-48f8-afee-4733ed368b52",
      "name": "🤖 AI Language Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        548,
        220
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure openAiApi in n8n"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f9059d28-3467-4c03-b201-19582cd2b1ac",
      "name": "📋 Monday Contact Fetch",
      "type": "n8n-nodes-base.mondayCom",
      "disabled": true,
      "position": [
        240,
        100
      ],
      "parameters": {
        "boardId": "YOUR_MONDAY_BOARD_ID",
        "operation": "get"
      },
      "credentials": {
        "mondayComApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure mondayComApi in n8n"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "08f85001-7652-4e37-ba34-dfbb59825552",
      "name": "💬 Telegram Reminder",
      "type": "n8n-nodes-base.telegram",
      "position": [
        836,
        0
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure telegramApi in n8n"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6c0ac7d9-8abe-4551-8de6-091b09cd7159",
      "name": "💬 Teams Reminder",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        836,
        200
      ],
      "parameters": {
        "teamId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_TEAMS_ID"
        },
        "message": "={{ $json.output }}",
        "options": {},
        "resource": "channelMessage",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SLACK_CHANNEL_ID"
        }
      },
      "credentials": {
        "microsoftTeamsOAuth2Api": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Configure microsoftTeamsOAuth2Api in n8n"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "6b267854-a2bf-4ce6-8244-415ee4aad6de",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -340
      ],
      "parameters": {
        "color": 3,
        "width": 440,
        "height": 700,
        "content": "### 📹 Input & Context Setup\n\n*The workflow begins with a Schedule Trigger and a Set Sample Data node.\n\nThis stage is responsible for defining the contact's name, email, and context of the last interaction (e.g., demo, interest in features).\n\nThese details act as the base input for HubSpot search and AI generation.*"
      },
      "typeVersion": 1
    },
    {
      "id": "c234e7c1-afa6-4611-bc78-551906a21ffa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -340
      ],
      "parameters": {
        "color": 2,
        "width": 220,
        "height": 700,
        "content": "### 📹 Contact Enrichment (HubSpot & CRM)\n\n*The HubSpot Contact Lookup node searches CRM records by email.\n\n(Optional/Disabled) Monday.com Contact Fetch could be used.*"
      },
      "typeVersion": 1
    },
    {
      "id": "14774cbd-54aa-4c19-af32-f96c3c74343d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -340
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 700,
        "content": "### 📹 AI Follow-Up Message Generation\n\n*AI Language Model (OpenAI) provides the underlying model.\n\nGenerate Follow-Up Message node creates a short, professional, and personalized sales follow-up email.\n\nThe AI references past interactions (from context) and includes a predefined signature block for consistency.*"
      },
      "typeVersion": 1
    },
    {
      "id": "6c868150-c30c-4ad8-aaa6-9ac07139b773",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -340
      ],
      "parameters": {
        "color": 5,
        "width": 300,
        "height": 700,
        "content": "### 📹 Multi-Channel Communication\n\n*The generated message is shared via Slack, Telegram, and Teams, ensuring cross-platform visibility and no missed follow-ups*"
      },
      "typeVersion": 1
    },
    {
      "id": "0ea76191-a7e0-46b4-8af6-ac3583f9bc8e",
      "name": "🕐 Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -200,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "💬 Slack Reminder": {
      "main": [
        []
      ]
    },
    "📝 Set Sample Data": {
      "main": [
        [
          {
            "node": "🔗 HubSpot Contact Lookup",
            "type": "main",
            "index": 0
          },
          {
            "node": "📋 Monday Contact Fetch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🕐 Schedule Trigger": {
      "main": [
        [
          {
            "node": "📝 Set Sample Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Language Model": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 Generate Follow-up Message",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "📋 Monday Contact Fetch": {
      "main": [
        [
          {
            "node": "🤖 Generate Follow-up Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔗 HubSpot Contact Lookup": {
      "main": [
        [
          {
            "node": "🤖 Generate Follow-up Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 Generate Follow-up Message": {
      "main": [
        [
          {
            "node": "💬 Slack Reminder",
            "type": "main",
            "index": 0
          },
          {
            "node": "💬 Telegram Reminder",
            "type": "main",
            "index": 0
          },
          {
            "node": "💬 Teams Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
