Workflow n8n

Automatisation Telegram avec n8n : assistance intelligente pour parents

Ce workflow n8n, intitulé 'Parents smart bot', est conçu pour offrir une assistance intelligente aux parents via Telegram. Dans un monde où les parents jonglent entre de nombreuses responsabilités, ce bot permet de simplifier la gestion de leurs tâches quotidiennes. Grâce à l'automatisation n8n, ce système peut répondre à des questions, gérer des calendriers, et même créer des contenus adaptés aux besoins des utilisateurs. Le workflow commence par un déclencheur Telegram qui capte les messages entrants. Ensuite, il utilise un agent d'assistance ultime pour analyser le texte et proposer des réponses pertinentes. Des agents spécialisés, tels que l'Email Agent et le Calendar Agent, sont intégrés pour gérer les communications et les événements. Le workflow inclut également des outils comme le 'Content Creator Agent' pour générer du contenu et le 'Tavily' pour des requêtes HTTP. À chaque étape, des conditions sont vérifiées pour s'assurer que les réponses sont adaptées au contexte. Les bénéfices de cette automatisation sont clairs : les parents peuvent gagner un temps précieux et réduire leur charge mentale tout en ayant accès à des informations et des services personnalisés. En intégrant des outils puissants comme OpenAI et des bases de données, ce workflow n8n offre une valeur ajoutée significative aux utilisateurs, transformant leur expérience de gestion quotidienne.

Tags clés :automatisationTelegramn8nassistance parentaleworkflow
Catégorie: Webhook · Tags: automatisation, Telegram, n8n, assistance parentale, workflow0

Workflow n8n Telegram, assistance parentale : vue d'ensemble

Schéma des nœuds et connexions de ce workflow n8n, généré à partir du JSON n8n.

Workflow n8n Telegram, assistance parentale : détail des nœuds

  • Telegram Trigger

    Ce noeud déclenche le workflow lorsqu'un message est reçu sur Telegram.

  • Ultimate Assistant

    Ce noeud agit comme un assistant ultime, traitant des requêtes basées sur un type de prompt donné.

  • Email Agent

    Ce noeud envoie des données à un agent par e-mail en utilisant un workflow prédéfini.

  • Contact Agent

    Ce noeud envoie des données à un agent de contact via un workflow spécifique.

  • Content Creator Agent

    Ce noeud crée du contenu en utilisant un agent de création de contenu à travers un workflow.

  • Tavily

    Ce noeud effectue une requête HTTP vers un outil externe avec des paramètres spécifiés.

  • Calendar Agent

    Ce noeud envoie des données à un agent de calendrier en utilisant un workflow défini.

  • Download File

    Ce noeud télécharge un fichier depuis Telegram en utilisant un identifiant de fichier.

  • Transcribe

    Ce noeud transcrit des données en utilisant un modèle OpenAI avec des options spécifiées.

  • Calculator1

    Ce noeud effectue des calculs à l'aide d'un outil de calcul.

  • Set 'Text'1

    Ce noeud définit une variable 'Text' avec des valeurs assignées.

  • Switch1

    Ce noeud évalue des conditions et dirige le flux en fonction des résultats.

  • Response1

    Ce noeud envoie une réponse sur Telegram avec un message et des champs supplémentaires.

  • Wikipedia

    Ce noeud interroge Wikipedia pour obtenir des informations sur un sujet donné.

  • Qdrant Vector Store

    Ce noeud interagit avec un magasin de vecteurs Qdrant pour effectuer des opérations spécifiques.

  • Default Data Loader

    Ce noeud charge des données par défaut à partir d'un document au format JSON.

  • Recursive Character Text Splitter

    Ce noeud divise le texte de manière récursive en utilisant un séparateur de caractères.

  • OpenAI Chat Model

    Ce noeud utilise un modèle de chat OpenAI pour générer des réponses basées sur des entrées données.

  • Embeddings OpenAI1

    Ce noeud génère des embeddings à l'aide d'un modèle OpenAI pour le traitement de données.

  • Qdrant Vector Store1

    Ce noeud interagit avec un autre magasin de vecteurs Qdrant pour des opérations de recherche.

  • Embeddings OpenAI

    Ce noeud génère des embeddings à l'aide d'un modèle OpenAI avec des options spécifiées.

  • Window Buffer Memory

    Ce noeud gère la mémoire tampon de fenêtre pour stocker des sessions de données.

  • Download File1

    Ce noeud télécharge un fichier depuis Telegram en utilisant un identifiant de fichier.

  • Code

    Ce noeud exécute un code JavaScript personnalisé pour traiter des données.

  • If

    Ce noeud évalue des conditions et dirige le flux en fonction des résultats.

  • Edit Fields

    Ce noeud modifie des champs de données en fonction des assignations spécifiées.

  • Edit Fields1

    Ce noeud modifie d'autres champs de données selon des assignations définies.

Inscris-toi pour voir l'intégralité du workflow

Inscription gratuite

S'inscrire gratuitementBesoin d'aide ?
{
  "id": "gFI0IHQrprv83RUU",
  "meta": {
    "instanceId": "fe6ecd76466cab7a915757a3c6d3a0bd1630ec8396b6ebc38945ac2ef61f7eb1",
    "templateCredsSetupCompleted": true
  },
  "name": "Parents smart bot",
  "tags": [
    {
      "id": "5oVNN9LitL7XAvBg",
      "name": "Parents bot",
      "createdAt": "2025-04-22T21:45:09.291Z",
      "updatedAt": "2025-04-22T21:45:09.291Z"
    }
  ],
  "nodes": [
    {
      "id": "a1117c0e-8fcc-4de6-b5c3-fe76ea10b975",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -560,
        20
      ],
      "webhookId": "a9b9daf6-4fb2-4c08-a7e3-8dc69a155511",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "FXdJyw1yYOOUGF1m",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b22f36e2-563d-428e-a4dc-41d5135d3174",
      "name": "Ultimate Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1820,
        0
      ],
      "parameters": {
        "text": "={{ $json.text }} {{ $json.fullPrompt }}\n",
        "options": {
          "systemMessage": "=# Overview\nYou are the central brain of a smart personal assistant built especially for busy parents.  \nYour job is to understand the user's intent and delegate the request to the most appropriate specialized agent (tool).  \nYou do not generate content yourself — only orchestrate which tool should do what.\n\nYou’re here to help parents stay organized, reduce cognitive load, and make their lives easier – whether it's managing appointments, messaging people, creating content, or helping with daily logistics.\n\n## Tools\n- Email Agent: Use this tool to take action in email.\n- Calendar Agent: Use this tool to take action in calendar.\n- Contact Agent: Use this to get, update, or add contacts (like the doctor, the teacher, family, etc).\n- Content Creator Agent: Use this for generating any written content — reminders, messages, summaries, posts, etc.\n- Tavily: Use this to search the web and gather quick facts or ideas.\n- Calculator: Use this tool to perform calculations or evaluate numerical expressions when needed\n\n## Rules\n- Never write emails, posts, or summaries yourself. Always delegate to the appropriate Agent.\n- When sending an email or creating an event that involves people, you must first get their contact details via the Contact Agent, then pass them to the relevant tool.\n- When a task involves written communication (like messages, reminders, social posts, or summaries), use the Content Creator Agent. Include in your instruction:\n  - What kind of content is needed\n  - Who it is for (e.g. wife, teacher, LinkedIn)\n  - What the tone should be (supportive, excited, reflective)\n  - That it should be written in Hebrew\n\n- If the request is to \"write a post\" or \"LinkedIn post\", instruct the Content Creator Agent to use **LinkedIn Mode**.\n\n## Special Use Cases\n- Natural language reminders like “Doctor appointment for Maya on Tuesday at 16:00” → use Calendar Agent.\n- Quick tasks like “Send a thank-you message to the kindergarten teacher” → use Contact Agent → then Email Agent.\n- Content requests like “Write a LinkedIn post about parenting and tech” → instruct the Content Creator Agent accordingly.\n\n## Tone\nAlways be warm, calm, and empathetic — like a personal family assistant.  \nUse simple, human language that’s gentle, proactive, and respectful.  \nAssume you’re often speaking to a multitasking parent (especially mom 😅).\n\n## Final Check Before Responding\n- 🔄 **Language**: Ensure your final response is in **Hebrew**. If not, translate it accurately while keeping the tone and meaning.\n- 💬 **Tone**: Ensure the final message is soft, personal, and appropriate for a family context.\n- Do not send robotic or dry messages — always aim for warmth and helpfulness.\n\n---\n\n## Output Structure\nWhenever you delegate a task to the Content Creator Agent, provide it with:\n- A short, clear instruction of what to write\n- Target audience (e.g. my wife, my team, LinkedIn)\n- Desired tone (e.g. friendly, professional, celebratory)\n- Indicate Hebrew as the language\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "f7874c27-c85c-438f-bdef-7ac9fce3b305",
      "name": "Email Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1700,
        440
      ],
      "parameters": {
        "name": "emailAgent",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "MuzLEMDHERvU0CMD",
          "cachedResultName": "Email Agent"
        },
        "description": "Call this tool for any email actions.",
        "workflowInputs": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "4e75c746-beb8-45b6-bfbc-1edf184dc2d4",
      "name": "Contact Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1940,
        440
      ],
      "parameters": {
        "name": "contactAgent",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "IsSUyrla7wc1cDLE",
          "cachedResultName": "🤖Contact Agent"
        },
        "description": "Call this tool for any contact related actions.",
        "workflowInputs": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "63f55d55-1a46-49d2-9113-2db2edf6682a",
      "name": "Content Creator Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2080,
        440
      ],
      "parameters": {
        "name": "contentCreator",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "MTO7R5h1y1XSuN5o",
          "cachedResultName": "Content Agent"
        },
        "description": "Call this tool whenever you need to create any kind of written content for the user.  \nThis includes but is not limited to: reminders, messages, summaries, emails, posts, or even fun or empathetic replies.  \n",
        "workflowInputs": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "cdd8d779-053b-4147-8f0b-85db923711bf",
      "name": "Tavily",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        2200,
        440
      ],
      "parameters": {
        "url": "https://api.tavily.com/search",
        "method": "POST",
        "jsonBody": "{\n    \"api_key\": \"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\",\n    \"query\": \"{searchTerm}\",\n    \"search_depth\": \"basic\",\n    \"include_answer\": true,\n    \"topic\": \"news\",\n    \"include_raw_content\": true,\n    \"max_results\": 3\n} ",
        "sendBody": true,
        "specifyBody": "json",
        "toolDescription": "Use this tool to search the internet",
        "placeholderDefinitions": {
          "values": [
            {
              "name": "searchTerm",
              "type": "string",
              "description": "What the user has requested to search the internet for"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "aabea6d5-06b5-4c70-b140-78a6edc277ca",
      "name": "Calendar Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1820,
        440
      ],
      "parameters": {
        "name": "calendarAgent",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "QbIV4MIEmgQG4nUa",
          "cachedResultName": "Calender Agent"
        },
        "description": "Call this tool for any calendar action.",
        "workflowInputs": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "5dc59107-b53e-47a3-9dc6-cdafe449f8da",
      "name": "Download File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        0,
        -160
      ],
      "webhookId": "83bb7385-33f6-4105-8294-1a91c0ebbee5",
      "parameters": {
        "fileId": "={{ $json.message.voice.file_id }}",
        "resource": "file"
      },
      "credentials": {
        "telegramApi": {
          "id": "FXdJyw1yYOOUGF1m",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9d7d1d10-4266-4b31-9f2f-cc249be68b65",
      "name": "Transcribe",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        200,
        -160
      ],
      "parameters": {
        "options": {},
        "resource": "audio",
        "operation": "transcribe"
      },
      "credentials": {
        "openAiApi": {
          "id": "4dCIIzau81oRIK8h",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.6
    },
    {
      "id": "6ef56cfc-702f-4007-9d7a-d0778805b892",
      "name": "Calculator1",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        2320,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d4ce9e05-bbba-47e7-a23b-8a2aed82dc7b",
      "name": "Set 'Text'1",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        20
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "fe7ecc99-e1e8-4a5e-bdd6-6fce9757b234",
              "name": "text",
              "type": "string",
              "value": "={{ $json.message.text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fde8c340-fcf2-4bc3-a23d-d669ec9a58b0",
      "name": "Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        -240,
        20
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Voice",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "198d228f-dd5a-4a53-9cb9-de6fc2adff2b",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.voice.file_id }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Text",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "8c844924-b2ed-48b0-935c-c66a8fd0c778",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "File",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "42930344-1ca2-4298-aa5e-4e8884602e5f",
                    "operator": {
                      "type": "object",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "",
                    "rightValue": ""
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "f529779d-a9f8-4854-96ec-c8780a90c8ae",
      "name": "Response1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2320,
        0
      ],
      "webhookId": "5dced4b9-5066-4036-a4d4-14fc07edd53c",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "FXdJyw1yYOOUGF1m",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "87dead2c-0287-44cf-9650-78004a35af4a",
      "name": "Wikipedia",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "position": [
        2440,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "40084dad-2aa7-4b51-af93-de38fcd585b5",
      "name": "Qdrant Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        720,
        460
      ],
      "parameters": {
        "mode": "insert",
        "options": {},
        "qdrantCollection": {
          "__rl": true,
          "mode": "list",
          "value": "family-memory",
          "cachedResultName": "family-memory"
        }
      },
      "credentials": {
        "qdrantApi": {
          "id": "8vZ7qiEVfdQtZNeK",
          "name": "QdrantApi account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "91f01d4b-6afc-4698-91c9-83c06fe2a209",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        840,
        660
      ],
      "parameters": {
        "options": {},
        "jsonData": "={{ $json.text }}\n",
        "jsonMode": "expressionData"
      },
      "typeVersion": 1
    },
    {
      "id": "d34f1e08-2521-4fc2-aa06-017f148b57f7",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        860,
        840
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "f0fbf5b5-32bc-4051-b1b1-4741899716e1",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1720,
        160
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-3.5-turbo",
          "cachedResultName": "gpt-3.5-turbo"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4dCIIzau81oRIK8h",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e4b062ff-255f-42e8-b0c1-4c5545e71097",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        700,
        720
      ],
      "parameters": {
        "model": "text-embedding-ada-002",
        "options": {
          "stripNewLines": true
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "4dCIIzau81oRIK8h",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "508156dc-fa2e-41f2-a8bf-633d4cab2a9f",
      "name": "Qdrant Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        2580,
        440
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "topK": 5,
        "options": {},
        "toolName": "memory_store",
        "toolDescription": "Call this tool to Retrieve relevant family information to give context to the assistant's decisions. Includes names, roles, events, and personal preferences.\n",
        "qdrantCollection": {
          "__rl": true,
          "mode": "list",
          "value": "family-memory",
          "cachedResultName": "family-memory"
        }
      },
      "credentials": {
        "qdrantApi": {
          "id": "8vZ7qiEVfdQtZNeK",
          "name": "QdrantApi account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "84db19a0-8eec-4aea-abfd-e94d88905a56",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2560,
        580
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4dCIIzau81oRIK8h",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4b5ea288-2d75-4bb8-91b0-e900c44dda1f",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1860,
        200
      ],
      "parameters": {
        "sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "9c9c0578-d849-4250-9d99-8d500272031f",
      "name": "Download File1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -240,
        280
      ],
      "webhookId": "83bb7385-33f6-4105-8294-1a91c0ebbee5",
      "parameters": {
        "fileId": "={{ $json.message.document.file_id }}\n",
        "resource": "file"
      },
      "credentials": {
        "telegramApi": {
          "id": "FXdJyw1yYOOUGF1m",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b67a9ed8-2095-4402-ab93-c99363e5f496",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "onError": "continueErrorOutput",
      "position": [
        -280,
        560
      ],
      "parameters": {
        "jsCode": "const fileContent = JSON.parse(Buffer.from($input.first().binary.data.data, 'base64').toString());\nreturn fileContent.map(item => ({\n  json: {\n    id: item.id,\n    text: item.text,\n    metadata: item.metadata,\n  }\n}));\n"
      },
      "retryOnFail": true,
      "typeVersion": 2
    },
    {
      "id": "f4fcbe6b-998f-44bb-bbcf-cc7829fc280a",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        460,
        20
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "79412a1a-5b1e-48d9-85c0-f514590d4de6",
              "operator": {
                "type": "string",
                "operation": "regex"
              },
              "leftValue": "={{$json.text}}",
              "rightValue": "/(מיה|שוהם|נוי|גן|חוג|רופא|סבתא|שישי|שלישי|תזכורת|יש|ביום|בעבודה|בבית ספר)/i"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "03ce3bd2-768a-4e08-b985-dad287900fa9",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        260
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e7ce88f3-4e65-46cd-9c10-800ce2f83ae4",
              "name": "text",
              "type": "string",
              "value": "={{ $json.text }}"
            },
            {
              "id": "2e4f47c6-a94d-4d69-b5c0-b366a99914c1",
              "name": "metadata.source",
              "type": "string",
              "value": "\"user_message\""
            },
            {
              "id": "dbfd95ac-3101-4548-a1a1-441d34ee455c",
              "name": "metadata.timestamp",
              "type": "string",
              "value": "={{ $now }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0537e668-1fd9-4b19-9d33-fc4d89fb89f9",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        1260,
        460
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e6fad62f-160d-4bed-bcdf-ba4bcef72e23",
              "name": "fullPrompt",
              "type": "string",
              "value": "={{ $json.text }}{{ $json.pageContent ? '\\n\\nהקשר מזיכרון:\\n' + $json.pageContent + '\\n(נשמר בתאריך: ' + $json.metadata.timestamp + ')' : '' }}\n"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4fe8a9b0-c21f-4441-a479-7cadd57c57a6",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Ultimate Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Ultimate Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tavily": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set 'Text'1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe": {
      "main": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator1": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Agent": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set 'Text'1": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact Agent": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Agent": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download File1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Ultimate Assistant": {
      "main": [
        [
          {
            "node": "Response1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Content Creator Agent": {
      "ai_tool": [
        [
          {
            "node": "Ultimate Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}

Workflow n8n Telegram, assistance parentale : pour qui est ce workflow ?

Ce workflow s'adresse principalement aux parents qui cherchent à optimiser leur gestion quotidienne. Il convient également aux entreprises et organisations souhaitant offrir un support automatisé à leurs clients. Un niveau technique intermédiaire est recommandé pour la personnalisation.

Workflow n8n Telegram, assistance parentale : problème résolu

Ce workflow résout le problème de surcharge d'informations et de gestion des tâches pour les parents. En automatisant les réponses et en intégrant des outils d'assistance, il élimine les frustrations liées à la recherche d'informations et à la gestion des emplois du temps. Les utilisateurs bénéficient ainsi d'une assistance rapide et efficace, leur permettant de se concentrer sur d'autres priorités.

Workflow n8n Telegram, assistance parentale : étapes du workflow

Étape 1 : Le workflow commence avec le déclencheur Telegram qui capte les messages des utilisateurs.

  • Étape 1 : Les messages sont ensuite traités par l'Ultimate Assistant, qui analyse le texte et génère des réponses.
  • Étape 2 : Selon le type de demande, le workflow peut diriger les requêtes vers différents agents, comme l'Email Agent pour les communications ou le Calendar Agent pour la gestion des événements.
  • Étape 3 : Des outils comme le Content Creator Agent et Tavily sont utilisés pour enrichir les réponses et fournir des informations pertinentes.
  • Étape 4 : Des conditions sont appliquées pour personnaliser les réponses en fonction des besoins spécifiques des utilisateurs.
  • Étape 5 : Enfin, les réponses sont envoyées via Telegram, assurant une interaction fluide et efficace.

Workflow n8n Telegram, assistance parentale : guide de personnalisation

Pour personnaliser ce workflow, commencez par ajuster le déclencheur Telegram en modifiant les paramètres de votre bot. Vous pouvez également adapter les agents d'assistance en fonction des besoins spécifiques de votre audience. Par exemple, changez les descriptions et les noms des agents pour mieux refléter votre service. Pour intégrer d'autres outils, explorez les options d'API disponibles dans n8n et modifiez les noeuds correspondants. Assurez-vous de tester chaque modification pour garantir un fonctionnement optimal. Enfin, surveillez les performances du workflow pour identifier d'éventuelles améliorations.