AutomationFlowsAI & RAG › Abhyasika

Abhyasika

Abhyasika. Uses telegramTrigger, httpRequestTool, telegram, agent. Event-driven trigger; 8 nodes.

Event trigger★★★★☆ complexityAI-powered8 nodesTelegram TriggerHTTP Request ToolTelegramAgentGoogle Gemini ChatMemory Buffer Window
AI & RAG Trigger: Event Nodes: 8 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Agent → HTTP Request Tool 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
{
  "updatedAt": "2025-11-27T07:35:59.000Z",
  "createdAt": "2025-11-26T13:36:04.241Z",
  "id": "EwOJwhNHA3ZYLCDl",
  "name": "Abhyasika",
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "download": false
        }
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        -416,
        16
      ],
      "id": "7223f500-e009-4891-ac91-b2e733d117ff",
      "name": "Telegram Trigger",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "toolDescription": "Trained ML Model Invoke method to get prediction for student performance.\nrequired data:\n    Student_Age: Literal[18,19,20,21,22,23,24],\n    Sex: Literal['Male','Female'],\n    High_School_Type: Literal['State','Private','Other'],\n    Scholarship: int (0-100),\n    Additional_Work: Literal['Yes','No'],\n    Sports_activity: Literal['Yes','No'],\n    Transportation: Literal['Private','Bus','Other'],\n    Weekly_Study_Hours: int (0-10),\n    Attendance: Literal['Always','Sometimes','Never'],\n    Reading: Literal['Yes','No'],\n    Notes: Literal['Yes','No'],\n    Listening_in_Class: Literal['Yes','No'],\n    Project_work: Literal['Yes','No']",
        "method": "POST",
        "url": "https://student-performance-analysis.prasadsawant.com/predict",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "Content-Type",
              "value": "application/x-www-form-urlencoded"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "Student_Age",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
            },
            {
              "name": "Sex",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters1_Value', ``, 'string') }}"
            },
            {
              "name": "High_School_Type",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters2_Value', ``, 'string') }}"
            },
            {
              "name": "Scholarship",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters3_Value', ``, 'string') }}"
            },
            {
              "name": "Additional_Work",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters4_Value', ``, 'string') }}"
            },
            {
              "name": "Sports_activity",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters5_Value', ``, 'string') }}"
            },
            {
              "name": "Transportation",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters6_Value', ``, 'string') }}"
            },
            {
              "name": "Weekly_Study_Hours",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters7_Value', ``, 'string') }}"
            },
            {
              "name": "Attendance",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters8_Value', ``, 'string') }}"
            },
            {
              "name": "Reading",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters9_Value', ``, 'string') }}"
            },
            {
              "name": "Notes",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters10_Value', ``, 'string') }}"
            },
            {
              "name": "Listening_in_Class",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters11_Value', ``, 'string') }}"
            },
            {
              "name": "Project_work",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters12_Value', ``, 'string') }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.2,
      "position": [
        64,
        288
      ],
      "id": "56b25816-eaf4-4eb6-8724-da4fceb1ef5a",
      "name": "Predict"
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $json.markdownV2 }}",
        "additionalFields": {
          "parse_mode": "MarkdownV2"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        384,
        16
      ],
      "id": "8a279eab-ea4f-4ace-a202-bedb9b1e6265",
      "name": "Send a text message",
      "retryOnFail": false,
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "You are a helpful assistant to student to collect information required to predict the Grade Student can get using Predict tool.\nBased on the Response of the Predict tool. Give Overview of the predicted score for student and Based on the Suggestion provided by the predict tool provide plan for the student to improve their grade.\n\nMust provide the Response into MarkdownV2"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        -208,
        16
      ],
      "id": "c80af0b5-641e-45cd-9593-77a2b5f17d26",
      "name": "Abhyasika"
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "=Something went  wrong",
        "additionalFields": {
          "parse_mode": "MarkdownV2"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        608,
        160
      ],
      "id": "c996118e-81ce-42e5-998a-d23e1e963755",
      "name": "Error",
      "retryOnFail": false,
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Get the content from the previous node's output\nconst inputText = $json.output;\n\n// Define the list of special characters that must be escaped in MarkdownV2\n// Note: The backslash itself needs to be escaped first.\nconst markdownV2SpecialChars = /([_*\\[\\]()~`>#+\\-=|{}.!])/g;\n\n// Function to escape the characters\n// We use 'replace' to put a backslash before each special character\nconst escapedText = inputText.replace(/\\\\/g, '\\\\\\\\').replace(markdownV2SpecialChars, '\\\\$1');\n\n// Return the cleaned string in a new JSON field\nreturn [{\n  json: {\n    markdownV2: escapedText,\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        144,
        16
      ],
      "id": "c2ca644b-3670-4803-9253-bf2586d5f8d2",
      "name": "Filter the markdown"
    },
    {
      "parameters": {
        "options": {
          "temperature": 0
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        -352,
        272
      ],
      "id": "8b705c25-7d17-4274-8542-842880cc2c99",
      "name": "Brain For Agent",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        -144,
        288
      ],
      "id": "d6d1e0e4-0da2-4e2a-9720-f669d794d1d8",
      "name": "Memory"
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Abhyasika",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Predict": {
      "ai_tool": [
        [
          {
            "node": "Abhyasika",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        [],
        [
          {
            "node": "Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Abhyasika": {
      "main": [
        [
          {
            "node": "Filter the markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter the markdown": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brain For Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Abhyasika",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Abhyasika",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "2e5ab256-1700-4d8d-85d1-a273a836d599",
  "activeVersionId": "2e5ab256-1700-4d8d-85d1-a273a836d599",
  "triggerCount": 1,
  "shared": [
    {
      "updatedAt": "2025-11-26T13:36:04.247Z",
      "createdAt": "2025-11-26T13:36:04.247Z",
      "role": "workflow:owner",
      "workflowId": "EwOJwhNHA3ZYLCDl",
      "projectId": "Y8wSBEGBIlIwgMOi"
    }
  ],
  "activeVersion": {
    "updatedAt": "2025-11-27T07:35:59.424Z",
    "createdAt": "2025-11-27T07:35:59.424Z",
    "versionId": "2e5ab256-1700-4d8d-85d1-a273a836d599",
    "workflowId": "EwOJwhNHA3ZYLCDl",
    "nodes": [
      {
        "parameters": {
          "updates": [
            "message"
          ],
          "additionalFields": {
            "download": false
          }
        },
        "type": "n8n-nodes-base.telegramTrigger",
        "typeVersion": 1.2,
        "position": [
          -416,
          16
        ],
        "id": "7223f500-e009-4891-ac91-b2e733d117ff",
        "name": "Telegram Trigger",
        "webhookId": "18ae30b7-9d16-4f41-aef0-8ed464b42faa",
        "credentials": {
          "telegramApi": {
            "id": "zXaWUx4igOnflYyb",
            "name": "Abhyasika Bot"
          }
        }
      },
      {
        "parameters": {
          "toolDescription": "Trained ML Model Invoke method to get prediction for student performance.\nrequired data:\n    Student_Age: Literal[18,19,20,21,22,23,24],\n    Sex: Literal['Male','Female'],\n    High_School_Type: Literal['State','Private','Other'],\n    Scholarship: int (0-100),\n    Additional_Work: Literal['Yes','No'],\n    Sports_activity: Literal['Yes','No'],\n    Transportation: Literal['Private','Bus','Other'],\n    Weekly_Study_Hours: int (0-10),\n    Attendance: Literal['Always','Sometimes','Never'],\n    Reading: Literal['Yes','No'],\n    Notes: Literal['Yes','No'],\n    Listening_in_Class: Literal['Yes','No'],\n    Project_work: Literal['Yes','No']",
          "method": "POST",
          "url": "https://student-performance-analysis.prasadsawant.com/predict",
          "sendHeaders": true,
          "headerParameters": {
            "parameters": [
              {
                "name": "accept",
                "value": "application/json"
              },
              {
                "name": "Content-Type",
                "value": "application/x-www-form-urlencoded"
              }
            ]
          },
          "sendBody": true,
          "bodyParameters": {
            "parameters": [
              {
                "name": "Student_Age",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
              },
              {
                "name": "Sex",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters1_Value', ``, 'string') }}"
              },
              {
                "name": "High_School_Type",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters2_Value', ``, 'string') }}"
              },
              {
                "name": "Scholarship",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters3_Value', ``, 'string') }}"
              },
              {
                "name": "Additional_Work",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters4_Value', ``, 'string') }}"
              },
              {
                "name": "Sports_activity",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters5_Value', ``, 'string') }}"
              },
              {
                "name": "Transportation",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters6_Value', ``, 'string') }}"
              },
              {
                "name": "Weekly_Study_Hours",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters7_Value', ``, 'string') }}"
              },
              {
                "name": "Attendance",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters8_Value', ``, 'string') }}"
              },
              {
                "name": "Reading",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters9_Value', ``, 'string') }}"
              },
              {
                "name": "Notes",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters10_Value', ``, 'string') }}"
              },
              {
                "name": "Listening_in_Class",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters11_Value', ``, 'string') }}"
              },
              {
                "name": "Project_work",
                "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters12_Value', ``, 'string') }}"
              }
            ]
          },
          "options": {}
        },
        "type": "n8n-nodes-base.httpRequestTool",
        "typeVersion": 4.2,
        "position": [
          64,
          288
        ],
        "id": "56b25816-eaf4-4eb6-8724-da4fceb1ef5a",
        "name": "Predict"
      },
      {
        "parameters": {
          "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
          "text": "={{ $json.markdownV2 }}",
          "additionalFields": {
            "parse_mode": "MarkdownV2"
          }
        },
        "type": "n8n-nodes-base.telegram",
        "typeVersion": 1.2,
        "position": [
          384,
          16
        ],
        "id": "8a279eab-ea4f-4ace-a202-bedb9b1e6265",
        "name": "Send a text message",
        "webhookId": "1f287b19-6fa1-4b2e-a814-3d2185794971",
        "retryOnFail": false,
        "credentials": {
          "telegramApi": {
            "id": "zXaWUx4igOnflYyb",
            "name": "Abhyasika Bot"
          }
        },
        "onError": "continueErrorOutput"
      },
      {
        "parameters": {
          "promptType": "define",
          "text": "={{ $json.message.text }}",
          "options": {
            "systemMessage": "You are a helpful assistant to student to collect information required to predict the Grade Student can get using Predict tool.\nBased on the Response of the Predict tool. Give Overview of the predicted score for student and Based on the Suggestion provided by the predict tool provide plan for the student to improve their grade.\n\nMust provide the Response into MarkdownV2"
          }
        },
        "type": "@n8n/n8n-nodes-langchain.agent",
        "typeVersion": 2.2,
        "position": [
          -208,
          16
        ],
        "id": "c80af0b5-641e-45cd-9593-77a2b5f17d26",
        "name": "Abhyasika"
      },
      {
        "parameters": {
          "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
          "text": "=Something went  wrong",
          "additionalFields": {
            "parse_mode": "MarkdownV2"
          }
        },
        "type": "n8n-nodes-base.telegram",
        "typeVersion": 1.2,
        "position": [
          608,
          160
        ],
        "id": "c996118e-81ce-42e5-998a-d23e1e963755",
        "name": "Error",
        "webhookId": "1f287b19-6fa1-4b2e-a814-3d2185794971",
        "retryOnFail": false,
        "credentials": {
          "telegramApi": {
            "id": "zXaWUx4igOnflYyb",
            "name": "Abhyasika Bot"
          }
        }
      },
      {
        "parameters": {
          "jsCode": "// Get the content from the previous node's output\nconst inputText = $json.output;\n\n// Define the list of special characters that must be escaped in MarkdownV2\n// Note: The backslash itself needs to be escaped first.\nconst markdownV2SpecialChars = /([_*\\[\\]()~`>#+\\-=|{}.!])/g;\n\n// Function to escape the characters\n// We use 'replace' to put a backslash before each special character\nconst escapedText = inputText.replace(/\\\\/g, '\\\\\\\\').replace(markdownV2SpecialChars, '\\\\$1');\n\n// Return the cleaned string in a new JSON field\nreturn [{\n  json: {\n    markdownV2: escapedText,\n  }\n}];"
        },
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          144,
          16
        ],
        "id": "c2ca644b-3670-4803-9253-bf2586d5f8d2",
        "name": "Filter the markdown"
      },
      {
        "parameters": {
          "options": {
            "temperature": 0
          }
        },
        "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
        "typeVersion": 1,
        "position": [
          -352,
          272
        ],
        "id": "8b705c25-7d17-4274-8542-842880cc2c99",
        "name": "Brain For Agent",
        "credentials": {
          "googlePalmApi": {
            "id": "iIYPlVHcjbLEOZ6O",
            "name": "Prajakta Gemini Key"
          }
        }
      },
      {
        "parameters": {
          "sessionIdType": "customKey",
          "sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}"
        },
        "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
        "typeVersion": 1.3,
        "position": [
          -144,
          288
        ],
        "id": "d6d1e0e4-0da2-4e2a-9720-f669d794d1d8",
        "name": "Memory"
      }
    ],
    "connections": {
      "Telegram Trigger": {
        "main": [
          [
            {
              "node": "Abhyasika",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Predict": {
        "ai_tool": [
          [
            {
              "node": "Abhyasika",
              "type": "ai_tool",
              "index": 0
            }
          ]
        ]
      },
      "Send a text message": {
        "main": [
          [],
          [
            {
              "node": "Error",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Abhyasika": {
        "main": [
          [
            {
              "node": "Filter the markdown",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Filter the markdown": {
        "main": [
          [
            {
              "node": "Send a text message",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Brain For Agent": {
        "ai_languageModel": [
          [
            {
              "node": "Abhyasika",
              "type": "ai_languageModel",
              "index": 0
            }
          ]
        ]
      },
      "Memory": {
        "ai_memory": [
          [
            {
              "node": "Abhyasika",
              "type": "ai_memory",
              "index": 0
            }
          ]
        ]
      }
    },
    "authors": "Prajakta Sawant",
    "name": null,
    "description": null,
    "autosaved": false
  },
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

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

About this workflow

Abhyasika. Uses telegramTrigger, httpRequestTool, telegram, agent. Event-driven trigger; 8 nodes.

Source: https://github.com/PrasadRSawant/n8n.prasadsawant.com-backup/blob/049e35f3e5a61b70680a97ef54fd88f64dbe8051/workflows/Abhyasika.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

AI marketing Team Agent. Uses toolWorkflow, telegram, memoryBufferWindow, openAi. Event-driven trigger; 46 nodes.

Tool Workflow, Telegram, Memory Buffer Window +10
AI & RAG

Tired of chasing clients for signed NDAs and contracts? This workflow eliminates the email back-and-forth and lets your clients sign instantly inside Telegram. Faster deal flow → Cut signing time from

HTTP Request Tool, Telegram Trigger, Google Gemini Chat +4
AI & RAG

Are you drowning in daily operational chaos, desperately trying to juggle sales, projects, content, and client communication? Imagine an AI brain that handles it all, freeing you to lead your business

Telegram Trigger, Telegram, OpenAI +13
AI & RAG

Telegram Trigger receives incoming messages (text, voice, photo, document). Switch routes by message type to appropriate processors: Text → forwarded as-is. Voice → downloaded and sent to Transcribe a

Memory Buffer Window, Telegram Trigger, Telegram +12
AI & RAG

Transform your Telegram messenger into a powerful, multi-modal personal or team assistant. This n8n workflow creates an intelligent agent that can understand text, voice, images, and documents, and ta

Memory Buffer Window, Telegram Trigger, Telegram +10