AutomationMart
Home/Browse/OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template
n8n

OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template

n8nn8n78 modulesv1.0
GmailOpenAIGoogle DriveTelegramGoogle CalendarLinkedInGeminiPerplexity

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 complex tasks. I've described my basic idea in this video. VERY IMPORTANT: By adapting the system prompt, inserting subworkflows or mcp servers and adjusting with webhooks many of the [workflows I have developed on this page](

At a glance

OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Gmail, OpenAI, Google Drive, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, OpenAI, Google Drive, Telegram, Google Calendar, LinkedIn
Modules
78
Price
Free
Version
v1.0
OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template workflow diagram

About this workflow

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 complex tasks. I've described my basic idea in this video. VERY IMPORTANT: By adapting the system prompt, inserting subworkflows or mcp servers and adjusting with webhooks many of the workflows I have developed on this page it is possible to potentially extend the template infinitely. The agent can autonomously decide which tools to use to complete the request. It has access to multiple integrations, including: Gmail (read, send, reply, draft emails) Google Calendar (create, delete, check availability) Google Drive, Docs, Sheets, and Slides Web search and web scraping tools RAG (Retrieval-Augmented Generation) using a vector database Here how set up Image and video analysis tools Mathematical calculator tools Custom sub-workflows and MCP integrations The system also includes persistent chat memory stored in PostgreSQL, allowing the AI to remember previous interactions and maintain conversation context. Finally, the workflow generates a response and sends it back to the user via Telegram. If the input was voice-based, the response can also be converted into audio and returned as a voice message. An escalation mechanism allows the system to transfer the conversation to a human operator when needed. --- Key Advantages 1. βœ… Multimodal Interaction The workflow supports text, voice, and image inputs, allowing users to interact with the system naturally. 2. βœ… AI-Powered Automation The integrated AI agent can autonomously decide which tools to use to solve tasks, reducing manual intervention and enabling intelligent automation. 3.βœ… Deep Integration with Google Workspace The workflow can manage emails, documents, spreadsheets, presentations, and calendar events directly through AI commands. 4. βœ… Retrieval-Augmented Knowledge (RAG) The system can access external knowledge sources through a vector database, improving response accuracy and enabling knowledge-based answers. 5. βœ… Persistent Memory Conversation history is stored in PostgreSQL, allowing the agent to maintain context and provide more relevant responses over time. 6. βœ… Web Intelligence Built-in web search and scraping capabilities allow the agent to gather real-time information from the internet. 7. βœ… Voice Response Capability The system can generate audio responses, creating a more natural conversational experience. 8. βœ… Modular and Scalable Architecture The workflow is highly modular, allowing new tools, agents, and services to be added easily. 9. βœ… Human Escalation When automation is not sufficient, the system can escalate the conversation to a human operator. 10. βœ… Fully Automated Digital Assistant Overall, the workflow acts as a fully autonomous AI assistant capable of performing complex operational tasks across multiple platforms. --- How it works This workflow is a comprehensive Telegram-based AI orchestrator that simulates an OpenClaw-style multi-agent architecture. When a user sends a message to the Telegram bot, the workflow: 1. Receives and authorizes the message through a Telegram trigger, checking if the user ID matches an authorized user (configured in the Code node) 2. Routes different content types using a Switch node that detects whether the incoming message contains text, voice, or images: - Text messages: Directly passed to the orchestrator - Voice messages: Downloaded and transcribed using OpenAI's audio transcription - Images: Downloaded, uploaded to an FTP server, and transformed into a URL for processing 3. Feeds the processed input (text, transcribed voice, or image URL with caption) into the "OpenClaw Agents" node - an AI agent configured with Gemini as the language model and Postgres for chat memory 4. Orchestrates specialized sub-agents through the main AI agent, which can delegate tasks to multiple tools: - Research and web search (Perplexity AI) - Web scraping (ScrapeGraphAI) - Google services (Gmail, Drive, Docs, Sheets, Slides, Calendar) - RAG (Qdrant vector store with Cohere reranker) - Image/Video generation (via sub-workflow) - Calculator - Telegram communication tools 5. Handles response delivery based on the original message type: - If the original message was voice, the workflow generates an audio response using OpenAI TTS and sends it back as audio - Otherwise, sends a text response via Telegram 6. Includes escalation capabilities through a human-in-the-loop tool for situations requiring human intervention --- Set up steps 1. Configure Telegram Bot - Create a Telegram bot via BotFather to get a bot token - Set up Telegram credentials in n8n - Replace XXX in the Code node with your authorized Telegram user ID 2. Set up API Keys and Credentials - OpenAI: API key for audio transcription and text-to-speech - Google Gemini: API key for the main language model - Google Cloud: OAuth2 credentials for all Google services (Gmail, Drive, Calendar, Docs, Sheets, Slides) - Perplexity AI: API key for research and web search - ScrapeGraphAI: API key for web scraping - Cohere: API key for reranker functionality - PostgreSQL: Database connection for chat memory 3. Configure External Services - Qdrant: Set up vector database for RAG functionality - FTP Server: Configure FTP credentials and path (replace /XXX/ in Upload image node with actual path and domain in Set Image Url node) 4. Configure Webhooks and Endpoints - Set the Telegram webhook URL to point to your n8n instance - The workflow includes multiple MCP endpoints that need proper configuration 5. Review and Adjust Parameters - Check all nodes with placeholder values (marked with XXX) - Verify language settings (Italian is set for transcription) - Review the system prompt in the OpenClaw Agents node and customize if needed - Ensure all tool descriptions match your use case 6. Test and Activate - Run the workflow in inactive mode first to test with sample inputs - Check that all connections between nodes are correct - Activate the workflow when everything is verified --- πŸ‘‰ Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n. []( --- Need help customizing? Contact me for consulting and support or add me on Linkedin.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Generate concert ticket PDFs with QR codes using PDF Generator API

Generate personalized concert ticket PDFs with QR codes using PDF Generator API, then email them to attendees, log sales to Google Sheets, and notify organizers via Slack β€” all triggered from a simple web form. Who is this for Event organizers, ticketing teams, and developers who need an automated pipeline to issue branded PDF concert tickets with unique QR codes for venue entry β€” without building a custom backend. How it works 1. An attendee fills out a web form with their name, email, event de

Free

AI YouTube playlist & video analyst chatbot

AI YouTube Playlist & Video Analyst Chatbot This n8n workflow transforms entire YouTube playlists or single videos into interactive knowledge bases you can chat with. Ask questions and get summaries without needing to watch hours of content. 🌟 How it Works 1. πŸ”— Provide a Link: Start by giving the workflow a URL for a YouTube playlist or a single video. 2. πŸ“„ Content Retrieval: The workflow automatically fetches the video details and transcripts for the provided link. For playlists, it can process

Free

Filter rows in Google Sheets and create social media posts with ChatGPT and Buffer

Periodically filter Google Sheets rows, generate engaging social media content with OpenAI, and schedule posts via Buffer for streamlined content management.

Free

Identify buying-intent leads on Twitter and Instagram with Slack and Notion CRM

Description This workflow enables on-demand social lead discovery using a chat-based interface. When a user submits a lead discovery query, the workflow searches Twitter and Instagram for posts where people are actively asking for tools, recommendations, or help solving real problems. An AI agent filters out spam and promotions, extracts only genuine buying-intent posts, and classifies each lead as Low, Medium, or High intent. Qualified leads are converted into two outputs: a human-readable

Free

Send Gmail messages for new incomplete tasks in Todoist

Retrieve incomplete tasks in Todoist and send an e-mail in Gmail.

Free

Send new emails to OpenAI for content generation and send data via HTTP

Automatically send new email content to ChatGPT for generation, then transmit the data via HTTP for streamlined content creation and delivery.

Free

Triage video bug support tickets using WayinVideo and GPT-4o-mini to Google Sheets

Submit a screen recording URL, customer name, and bug type through a simple web form. The workflow automatically scans the recording using WayinVideo AI to pinpoint the exact moment the bug occurs, then uses GPT-4o-mini to write a structured support ticket with priority, steps to reproduce, and a fix suggestion. The completed ticket is saved instantly as a new row in your Google Sheet β€” ready for your dev team. Built for support agents, QA teams, and SaaS companies who want to triage bugs faster

Free

Monitor CRM hiring spikes and send Slack alerts with HubSpot and PredictLeads

Monitor CRM accounts for hiring spikes by enriching HubSpot companies with PredictLeads job data and alerting your team via Slack. This workflow pulls all companies from your HubSpot CRM, checks each one against the PredictLeads Job Openings API for target roles (sales, engineering, marketing, product, data), compares the current count to historical data stored in Google Sheets, and flags any company where hiring jumped more than 50%. Flagged companies get updated in HubSpot with a hiring signa

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free