AutomationFlowsAI & RAG › AI

AI

AI. Uses lmChatOpenAi, toolWorkflow, telegram, telegramTrigger. Event-driven trigger; 27 nodes.

Event trigger★★★★☆ complexityAI-powered27 nodesOpenAI ChatTool WorkflowTelegramTelegram TriggerAgentOpenAIMemory Buffer WindowPinecone Vector Store
AI & RAG Trigger: Event Nodes: 27 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Agent → OpenAI Embeddings recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "AI",
  "nodes": [
    {
      "parameters": {
        "model": "gpt-4o",
        "options": {}
      },
      "id": "0cdf3bc2-39ef-41a9-8e56-5d5071c44b19",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        -1060,
        460
      ]
    },
    {
      "parameters": {
        "name": "Calendar_Agent",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "830c2c73-f110-45b7-9631-c5800aec744b",
      "name": "\ud83e\udd16Calendar_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -1360,
        1000
      ]
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "id": "32a777c1-28a5-4049-be6a-6a534d778252",
      "name": "Respond to Me",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        340,
        60
      ]
    },
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "id": "7ba43605-cab1-4152-b0a8-f3e108470e6e",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.1,
      "position": [
        -2600,
        400
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=<Agentinstructions>\n    <Role>\n        <Name>Personal Assistant</Name>\n        <Description>\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 AI-\u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0439, \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044f \u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438. \u041e\u043d \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.</Description>\n        <currentDate>{{$now}}</currentDate>\n    </Role>\n    <Goal>\n        <Primary>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0439, \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0435\u043c \u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.</Primary>\n    </Goal>\n    <Instructions>\n        <Instruction>\u0414\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Contacts Data\" \u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u043f\u0438\u0441\u044c\u043c\u0430 \u0438\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0438\u0441\u0435\u043c. \n     </Instruction>\n     <Instructions>\n   \u041a\u041e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u0434\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0439\u0442\u0438 \u0441\u0432\u0435\u0436\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u0435\u043c\u0435 \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u0438\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u0442\u043e \u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"AI \u041d\u043e\u0432\u043e\u0441\u0442\u043d\u0438\u043a \u041a\u043e\u043f\u0438\u0440\u0430\u0439\u0442\u0435\u0440\" \u0438 \u0442\u044b \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u0441\u0432\u043e\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.\n        </Instruction>\n        <Instruction>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0439 (\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0430) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Email Agent\".</Instruction>\n\n        <Instruction>\u0414\u043b\u044f \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u0432 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Calendar Agent\". </Instruction>\n\n        <Instruction>\u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Slack \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Send Slack Message\". \u0423\u0442\u043e\u0447\u043d\u044f\u0439 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u043c\u0443 \u0438 \u043a\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c.</Instruction>\n\n        <Instruction>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \"Projects_Agent\". \u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0439 \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.</Instruction>\n\n        <Instruction>\u041f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439, \u043a\u0430\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430.</Instruction>\n\n<Instruction>\n\u0415\u0441\u043b\u0438 \u0443 \u0442\u0435\u0431\u044f \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0446\u0435\u043d\u044b \u043d\u0430 \u043d\u0430\u0448\u0438 \u0443\u0441\u043b\u0443\u0433\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0439\u0441\u044f \u0432 Knowledge_Base \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. </Instruction>\n\n\n        <Instruction>\u0411\u0443\u0434\u044c \u043f\u0440\u043e\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c, \u0442\u043e\u0447\u043d\u044b\u043c \u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0435 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.</Instruction>\n    </Instructions>\n</Agentinstructions>"
        }
      },
      "id": "57170b90-0133-4f50-b55f-b583020f7293",
      "name": "Personal Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.6,
      "position": [
        -740,
        260
      ],
      "retryOnFail": false
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c9d8e573-3830-4e93-9f74-4838b5ff49b5",
              "name": "text",
              "value": "={{ $('Telegram Trigger').item.json.message.text }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -1760,
        240
      ],
      "id": "655aeca3-0f53-4b89-bb72-0ffd6a8346ed",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "resource": "file",
        "fileId": "={{ $('Telegram Trigger').item.json.message.voice.file_id }}"
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        -1860,
        500
      ],
      "id": "e47cad96-b25a-47b5-824b-7ea3189c7a37",
      "name": "Telegram"
    },
    {
      "parameters": {
        "resource": "audio",
        "operation": "transcribe",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        -1660,
        500
      ],
      "id": "27496993-29cd-4ae2-9110-8e9d9505a678",
      "name": "OpenAI"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $('Telegram Trigger').item.json.message.text }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "text"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "ca9cc06c-dcf8-457b-854b-4c03d3d15dcc",
                    "leftValue": "={{ $('Telegram Trigger').item.json.message.voice.file_id }}",
                    "rightValue": "",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "voice"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        -2140,
        400
      ],
      "id": "cf32f666-085f-4faa-814a-1c38c5021792",
      "name": "Switch"
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        -900,
        460
      ],
      "id": "ec062c1a-f4fc-4a37-8861-796ec991c386",
      "name": "Window Buffer Memory"
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "e6bcd191-1781-424d-af31-6ab4479f0f61",
      "name": "\ud83e\udd16YouTube_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -740,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "8364c71b-9670-46c1-86fc-671bc0ed6c18",
      "name": "\ud83e\udd16Instagram_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -1040,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "202df741-52ca-4dd7-8213-df2f3ca2a7c7",
      "name": "\ud83e\udd16Threads_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -880,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "74c46380-83bc-44a8-96e5-eee1be3de325",
      "name": "\ud83e\udd16TikTok_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -580,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "b83e0fba-e2d2-4e13-b6be-415c012049f0",
      "name": "\ud83e\udd16Kontent_Agent1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -440,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "name": "Calendar_Instagram",
        "description": "Call this tool to take actions within Calendar",
        "workflowId": {
          "__rl": true,
          "value": "krNvxEZk4v6jFS7F",
          "mode": "list",
          "cachedResultName": "\u041e\u0442\u0434\u0435\u043b \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0413\u0443\u0433\u043b"
        }
      },
      "id": "c0e19394-a4ec-4859-9006-551f2deea9f2",
      "name": "\ud83e\udd16Voice_Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -280,
        1000
      ],
      "disabled": true
    },
    {
      "parameters": {
        "pineconeIndex": {
          "__rl": true,
          "value": "my-knowledge-base",
          "mode": "list",
          "cachedResultName": "my-knowledge-base"
        },
        "options": {
          "pineconeNamespace": "Test"
        }
      },
      "id": "b99f5679-f85a-483b-817d-d679244f28e3",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "typeVersion": 1,
      "position": [
        180,
        880
      ]
    },
    {
      "parameters": {
        "model": "gpt-4o",
        "options": {}
      },
      "id": "6cebcfea-4552-4567-8bb9-52b40dfc1c38",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        540,
        820
      ]
    },
    {
      "parameters": {
        "model": "text-embedding-3-small",
        "options": {}
      },
      "id": "6fc32c1f-de8c-4f83-8f41-de7a554dfd2a",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "typeVersion": 1,
      "position": [
        240,
        1040
      ]
    },
    {
      "parameters": {
        "name": "Knowledge_Base",
        "description": "Call this tool to get information about the company."
      },
      "id": "7f21daa1-6365-4160-9703-648631c5b648",
      "name": "Knowledge Base",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "typeVersion": 1,
      "position": [
        180,
        720
      ]
    },
    {
      "parameters": {
        "name": "AI_news_content",
        "description": "Call this tool to perform actions in create content based on news",
        "workflowId": {
          "__rl": true,
          "value": "3nmBSBTEDq3WcbQI",
          "mode": "list",
          "cachedResultName": "AI Agent \u041a\u043e\u043f\u0438\u0440\u0430\u0439\u0442\u0435\u0440 \u041d\u043e\u0432\u043e\u0441\u0442\u043d\u0438\u043a (\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435)"
        },
        "specifyInputSchema": true,
        "jsonSchemaExample": "{\n  \"query\": \"{{ $json.query }}\",\n  \"message\": \"{{ $json.message }}\"\n}\n"
      },
      "id": "40c85b1b-47e6-4e4f-8b0f-9eea6a29fa42",
      "name": "\ud83e\udd16AI_news_content",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1.2,
      "position": [
        -1200,
        1000
      ]
    },
    {
      "parameters": {
        "operation": "sendChatAction",
        "chatId": "={{ $json.message.chat.id }}"
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        -2360,
        400
      ],
      "id": "d5423af8-b23c-4e34-9d64-efc01a471db2",
      "name": "Telegram2"
    },
    {
      "parameters": {
        "content": "## \u0421\u0422\u0410\u0420\u0422 \u0418 \u0417\u0410\u041f\u0423\u0421\u041a\n**\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u043c**",
        "height": 560,
        "width": 1380
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2660,
        180
      ],
      "typeVersion": 1,
      "id": "a909ec6e-af2e-4e93-8f84-3128874baed3",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## AI \u0410\u0421\u0421\u0418\u0421\u0422\u0415\u041d\u0422\n**\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0418\u0418 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a**",
        "height": 500,
        "width": 840,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1100,
        200
      ],
      "typeVersion": 1,
      "id": "b5cca767-6c06-40c5-aa8d-b4b778fef1c5",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## \u0418\u0418 \u041f\u041e\u041c\u041e\u0429\u041d\u0418\u041a\u0418 \n**\u041e\u0442\u0434\u0435\u043b\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 (\u0443\u0437\u043a\u043e\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b)**",
        "height": 300,
        "width": 1460,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        900
      ],
      "typeVersion": 1,
      "id": "d1b4c189-173e-4835-822c-d43be3a1a78b",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "## \u0411\u0410\u0417\u0410 \u0417\u041d\u0410\u041d\u0418\u0419\n**\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u0438 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043e\u0432",
        "height": 620,
        "width": 560,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        600
      ],
      "typeVersion": 1,
      "id": "bbdba180-c5ea-49aa-885c-b35a11344b3b",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "content": "## \u0412\u042b\u0425\u041e\u0414\n**\u041e\u0442\u0432\u0435\u0442\u044b, \u0432\u044b\u0445\u043e\u0434 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f**",
        "height": 240,
        "width": 580
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "typeVersion": 1,
      "id": "e3b4887c-170e-4e1f-be13-5b5ee9b0de00",
      "name": "Sticky Note4"
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16Calendar_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Telegram2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Personal Assistant": {
      "main": [
        [
          {
            "node": "Respond to Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "main": [
        [
          {
            "node": "Personal Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Personal Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16Instagram_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16Threads_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16YouTube_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16TikTok_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16Kontent_Agent1": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16Voice_Agent": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_vectorStore": [
        [
          {
            "node": "Knowledge Base",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Knowledge Base",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Knowledge Base": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "\ud83e\udd16AI_news_content": {
      "ai_tool": [
        [
          {
            "node": "Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram2": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "41fa779e-8021-44eb-b104-edac4d7d2754",
  "id": "gtDiiZqdGbtwlW6P",
  "tags": [
    {
      "createdAt": "2025-05-18T14:35:04.758Z",
      "updatedAt": "2025-05-18T14:35:04.758Z",
      "id": "4Uwk4ULSvTYlwIPf",
      "name": "video"
    },
    {
      "createdAt": "2025-05-18T15:19:33.676Z",
      "updatedAt": "2025-05-18T15:19:33.676Z",
      "id": "naJjhtxzTdEq62Pb",
      "name": "\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b"
    }
  ]
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

AI. Uses lmChatOpenAi, toolWorkflow, telegram, telegramTrigger. Event-driven trigger; 27 nodes.

Source: https://github.com/sattva2020/N8N-AI-Starter-Kit/blob/15beec37ad9dee587778f1946c0f8ac00eeb887f/n8n/workflows/examples/example-ai-basic.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow implements an advanced AI automation agent (OpenClaw Agent) that interacts with users through Telegram and integrates multiple AI models, external tools, and cloud services to automate c

Telegram Trigger, Telegram, OpenAI +21
AI & RAG

Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.

Gmail Tool, Google Calendar Tool, Gmail +24
AI & RAG

Your AI workforce is ready. Are you?

Google Sheets Tool, Mcp Trigger, Google Drive +29
AI & RAG

This comprehensive workflow bundle is designed as a powerful starter kit, enabling you to build a multi-functional AI assistant on Telegram. It seamlessly integrates AI-powered voice interactions, an

Telegram Trigger, Telegram, OpenAI +19
AI & RAG

This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending on the category, th

OpenAI, Gmail, Text Classifier +16