Skip to main content

Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store

Workflow preview

Workflow preview
100%
Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

J.A.R.V.I.S. Multimodal AI assistant on Telegram with OpenAI This workflow transforms your Telegram bot into J.A.R.V.I.S., a powerful, multimodal AI assistant. It can understand and process text, v...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.switch, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by FabioInTech.

Original n8n.io source

1.1 Workflow description

Title
Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store
Workflow name
Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store

J.A.R.V.I.S.

Multimodal AI assistant on Telegram with OpenAI

This workflow transforms your Telegram bot into J.A.R.V.I.S., a powerful, multimodal AI assistant. It can understand and process text, voice messages, images, and documents. The assistant can search the web, scrape websites, generate images, perform calculations, and reference uploaded documents to provide comprehensive and context-aware responses in either text or audio format.

πŸ§‘β€πŸ’» Who’s it for

This workflow is for developers, AI enthusiasts, and businesses who want to create an advanced, interactive AI assistant on Telegram. It’s perfect for automating customer support, creating a personal AI helper, or exploring the capabilities of multimodal large language models (LLMs) in a practical application.

βš™οΈ How it works

The workflow begins when a message is received by your Telegram bot. A Switch node then directs the data based on the message type:

  • Text: The message is formatted and sent directly to the main AI agent.
  • Voice: The audio file is downloaded from Telegram and transcribed into text using the OpenAI API.
  • Image: The image is downloaded and analyzed by an OpenAI vision model to understand its content.
  • Document: The file is downloaded and its content is stored in a temporary vector store, making it searchable for the AI.

The processed input is then passed to the core "J.A.R.V.I.S." Agent node. This agent uses an OpenAI model, conversational memory, and a suite of tools (Google Search, Web Scraper, Image Generator, Calculator, and the document vector store) to formulate a response. Finally, the workflow checks if the initial message was a voice note; if so, it generates an audio response. Otherwise, it sends the answer as a text message back to the user.

πŸ› οΈ How to set up

  1. Telegram:
  • Create a Telegram Bot - Use @BotFather to create a bot and obtain your bot token;
  • Add Telegram API credentials in n8n with your bot token to the Receive Message Trigger node and all other Telegram nodes. In the Receive Message node, enter the chatId of the user or group authorized to interact with the bot.
  1. OpenAI: Add your OpenAI API credentials to all OpenAI, AI Agent, and AI tool nodes.
  2. SerpAPI: Add your SerpAPI credentials to the Basic Google Search node to enable web search functionality.
  3. Jina AI: Add your Jina AI API key to the Setup Node - The API Key is used on the Webpage Scraper node.

βœ… Requirements

  • Telegram Bot API credentials and Bot token.
  • OpenAI API credentials.
  • SerpAPI API credentials.
  • Jina.ai API credentials

🎨 How to customize the workflow

  • Change the AI model: You can select a different OpenAI model in the OpenAI Chat Model node (e.g., switch from gpt-4.1 to gpt-4o) or in the Analyze Image and Transcribe nodes.
  • Modify the AI's personality: Edit the system prompt in the J.A.R.V.I.S. Agent node to change its name, tone, instructions, or default language.
  • Expand its tools: Connect more tools to the J.A.R.V.I.S. Agent node to extend its capabilities, such as connecting to a database or another third-party API.
  • Adjust the response format: Modify the If Audio Response node to change the conditions for sending text or audio messages. For example, you could configure it to always respond with text.

πŸ’¬ Need Help?

Join the Discord or ask in the Forum

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Receive Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 2 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - Get Audio File

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 4 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Analyze Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 6 - Fix File Extension

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Text Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Generate Audio

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 9 - Audio Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Download Image

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Transcribe

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Download Document

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 18 - Format-text-output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - Format-voice-output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Simple Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreInMemory - vectorStoreInMemory
Config choices
Version 1

Block 21 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 22 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 23 - Token Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - textSplitterTokenSplitter
Config choices
Version 1

Block 24 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 48 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store
Complexity advanced
Nodes 48
Categories Support Chatbot, AI Chatbot
Author FabioInTech
Published 01 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6813/6813.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a comprehensive multimodal assistant on Telegram with OpenAI, SERP and Vector Store do?

J.A.R.V.I.S. Multimodal AI assistant on Telegram with OpenAI This workflow transforms your Telegram bot into J.A.R.V.I.S., a powerful, multimodal AI assistant. It can understand and process text, v...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.