Run a self-hosted multi-channel AI assistant with Claude, Gemini and Gmail — n8n Workflow

High complexity Trigger79 nodes🏷️ Personal Productivityby Shabbir Noor

Overview

n8nClaw — Self-Hosted AI Assistant

A lightweight, self-hosted AI assistant built entirely in n8n. Multi-channel messaging (Telegram, WhatsApp, Gmail), persistent memory, task management, and autonomous work — all in a single visual workflow.

Inspired by OpenClaw.

What It Does

n8nClaw is a personal AI assistant that lives inside n8n. It connects to your messaging apps, remembers past conversations, manages tasks, and can work autonomously on your behalf.

Core capabilities: Multi-channel mess

Nodes used

PostgresTelegramAI AgentBasic LLM ChainEmbeddings OpenAISimple MemoryStructured Output ParserWikipediaSupabase Vector StoreDefault Data LoaderPostgres Chat MemoryOpenRouter Chat ModelGoogle GeminiAI Agent Tool

Workflow Preview

💾 Long-Term Memory Pipeline
A scheduled flow that runs periodically to build persis
1. Pull new chat history from Postgres
2. Aggregate messages into conversation chunks
3. Su
📺 Video Walkthrough
@youtube
🔌 Triggers & Input Processing
Four input channels feed into the agent:
- Telegram Trigger — text, voice, images, documents
- WhatsApp Webhook — text messages via Evolution API
- Gmail Tri
🧠 Core AI Agent — n8nClaw
The central orchestrator. Uses Claude Sonnet 4.5 (via O
Receives normalized input from all channels and d
🛠️ Tools (Data Tables & Vector Store)
Direct tools available to the n8nClaw agent:
- Get/Upsert Tasks — task management via n8n data table
- Get/Upsert Subtasks — subtask tracking linked b
🤖 Sub-Agents
Specialized agents that the core n8nClaw agent can dele
- Research Agent (Gemini 3 Flash) — web research via Ta
- Email Manager (Haiku 4.5) — Gmail CRU
📤 Output Routing
A Switch node routes the agent's response back to the o
- Telegram — Send text message via Telegram Bot API
- WhatsApp — Send text via Evolution API
🎙️ Media Handling (Telegram)
Voice, images, and documents sent via Telegram are rout
- Voice → Gemini 2.5 Flash transcription
- Ima
tooltooltooltooltoolmemorytoolmemorymemorymemorymemorymemorytooltooltooltooltooltooltooltooltoolembedembeddocmemorymodeltoolmodelmodelmodelmodelmodelmodelmodeltooltoolparsertooltooltooltooltooltooltooltooltooltooltooltooltool
T
Telegram Trigger
OpenRouter Chat Model
G
Get row(s)
F
Filter
E
Edit Fields
S
Switch
Send a text message
n8nClaw
G
Get Tasks
G
Get Subtasks
U
Upsert Subtask
U
Upsert Task
I
Initialization - Update …
Postgres Chat Memory
Execute a SQL query
G
Get row(s)1
Supabase Vector Store
Embeddings OpenAI
Default Data Loader
U
Update row(s)
Supabase Vector Store1
Embeddings OpenAI1
W
Webhook
G
Get row(s)2
F
Filter1
E
Edit Fields1
E
Enviar texto
OpenRouter Chat Model1
Simple Memory
S
Search in Tavily
Wikipedia
H
Hourly heartbeat
G
Get row(s)3
E
Edit Fields2
Research Agent
G
Gmail Trigger
G
Get row(s)4
E
Edit Fields3
Email Manager
OpenRouter Chat Model2
Simple Memory1
S
Send a message in Gmail
Document Manager
Simple Memory2
OpenRouter Chat Model3
S
Switch1
Analyze document
Get a file
Get a file1
Get a file2
Transcribe a recording
Analyze an image
D
Data Loader
Basic LLM Chain
A
Aggregate
OpenRouter Chat Model4
Structured Output Parser
U
Update User and Heartbeat
D
Delete a message in Gmail
G
Get a message in Gmail
G
Get many messages in Gmail
R
Reply to a message in Gm…
C
Create a document in Goo…
G
Get a document in Google…
U
Update a document in Goo…
D
Delete a file in Google …
C
Create folder in Google …
M
Move file in Google Drive
S
Search files and folders…
OpenRouter Chat Model5
Worker Agent 1
Simple Memory3
OpenRouter Chat Model6
Simple Memory4
OpenRouter Chat Model7
Simple Memory5
Worker Agent 3
Worker Agent 2
M
Mark a message as read i…
79 nodes83 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 79 nodes, connecting @tavily/n8n-nodes-tavily.tavilytool, agent, agenttool.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (79)

PO

Postgres

postgres

#1
TE

Telegram

telegram

#2
AI

AI Agent

n8n-nodes-langchain.agent

#3
BA

Basic LLM Chain

n8n-nodes-langchain.chainLlm

#4
EM

Embeddings OpenAI

n8n-nodes-langchain.embeddingsOpenAi

#5
SI

Simple Memory

n8n-nodes-langchain.memoryBufferWindow

#6
ST

Structured Output Parser

n8n-nodes-langchain.outputParserStructured

#7
WI

Wikipedia

n8n-nodes-langchain.toolWikipedia

#8
SU

Supabase Vector Store

n8n-nodes-langchain.vectorStoreSupabase

#9
DE

Default Data Loader

n8n-nodes-langchain.documentDefaultDataLoader

#10
PO

Postgres Chat Memory

n8n-nodes-langchain.memoryPostgresChat

#11
OP

OpenRouter Chat Model

n8n-nodes-langchain.lmChatOpenRouter

#12
GO

Google Gemini

n8n-nodes-langchain.googleGemini

#13
AI

AI Agent Tool

n8n-nodes-langchain.agentTool

#14

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded run-a-self-hosted-multi-channel-ai-assistant-with-claude-gemini-and-gmail file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Run a self-hosted multi-channel AI assistant with Claude, Gemini and Gmail", "nodes": [...], ...}

Integrations

@tavily/n8n-nodes-tavily.tavilytoolagentagenttoolaggregatechainllmdatatabledatatabletooldocumentdefaultdataloaderembeddingsopenaifiltergmailtoolgmailtriggergoogledocstoolgoogledrivetoolgooglegeminilmchatopenroutermemorybufferwindowmemorypostgreschatn8n-nodes-evolution-api.evolutionapioutputparserstructured

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes79
Complexityhigh
Triggertrigger

Created by

Shabbir Noor

Shabbir Noor

@shabbirun

Tags

@tavily/n8n-nodes-tavily.tavilytoolagentagenttoolaggregatechainllmdatatabledatatabletooldocumentdefaultdataloaderembeddingsopenaifilter

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Personal Productivity Workflows

CODIFIHT+8
high

Automate Epic Games Freebie Alerts via Discord & Puppeteer

Never miss a premium title again with this advanced n8n automation designed to track the Epic Games Store's rotating free game catalog. This workflow leverages the power of the Puppeteer community node to perform headless browser scraping, bypassing traditional static HTML limitations to detect real-time changes in the store's interface. By monitoring specific DOM containers, the automation identifies new releases, processes game metadata through custom JavaScript logic, and formats the data into professional Discord embeds. Beyond simple notifications, this flow incorporates robust error handling and looping mechanisms to ensure delivery even if a specific request fails. For community managers or gaming enthusiasts, this replaces the manual chore of daily store checks with a high-performance, set-and-forget monitoring system. It effectively demonstrates how to combine web scraping, data transformation, and third-party API integrations into a cohesive, production-ready automation pipeline. **Common Use Cases:** - Community Engagement for Gaming Servers - Automated Content Sourcing for Gaming News Portals - Real-time Price and Promotion Monitoring for Digital Goods

Scheduled·20 nodes
AIGOGOHT+5
high

Automate Forex News Alerts: Telegram & Google Sheets n8n Flow

Bridge the gap between economic data releases and trade execution with this sophisticated n8n automation. This workflow monitors Forex Factory and MyFxBook in real-time, instantly pushing critical news data and live price fluctuations for affected currency pairs directly to Telegram and Google Sheets. By automating the data capture process, traders eliminate the manual lag of refreshing browser tabs during high-volatility events. The flow systematically parses 'Actual' vs. 'Forecast' figures, calculates market impact, and logs the live price at the exact moment of the release for backtesting accuracy. Whether you are scaling a proprietary trading desk or managing personal capital, this template ensures you never miss a high-impact news event. It utilizes advanced conditional logic to filter relevant currency pairs and Airtop integration for seamless data extraction, providing a professional-grade infrastructure for algorithmic or semi-automated trading strategies. **Common Use Cases:** - Real-time sentiment analysis by syncing economic surprises to a centralized trading dashboard. - Automated journal logging for backtesting the correlation between news deviations and price slippage. - Telegram-based trade signal triggers that bridge economic calendar events to MetaTrader 4 execution.

Trigger·34 nodes
CHGMGOIF+6
high

AI Meeting Briefing Automation: n8n, OpenAI & Slack Guide

Stop walking into meetings unprepared. This advanced n8n workflow acts as an automated executive assistant, delivering comprehensive attendee intelligence directly to your Slack workspace. Instead of manually digging through old threads, the automation triggers hourly to scan your Google Calendar for upcoming appointments. Once a meeting is detected, the flow initiates a deep search across Gmail to extract the most recent correspondence and activity history for every participant. By leveraging OpenAI’s Large Language Models (LLMs) and LangChain integration, the workflow synthesizes disparate data points into a concise, high-value briefing. It identifies key talking points, previous blockers, and the current relationship status with each stakeholder. This ensures you have the full context needed to drive decisions without the pre-meeting administrative burden. Perfect for high-volume sales teams, account managers, and executives, this template transforms how you prepare for calls by replacing manual research with instant, AI-generated insights delivered precisely when they are most relevant. **Common Use Cases:** - High-Stakes Sales Discovery: Automatically briefing Account Executives on a prospect's recent support tickets and email inquiries before a demo. - Client Relationship Management: Equipping Account Managers with a summary of the last three months of cross-departmental communication before a quarterly business review. - Executive Leadership Syncs: Providing CEOs with rapid context on internal stakeholders' recent project updates and Slack mentions prior to board or department meetings.

Scheduled·18 nodes
AGCOGOGO+6
medium

AI Assistant for Finding Nearby Workspaces via n8n & Slack

Maximize your billable hours and productivity with this intelligent AI-driven workflow designed to turn schedule gaps into efficient work sessions. This automation acts as a personal concierge for mobile professionals and digital nomads. By proactively monitoring your Google Calendar, the system identifies upcoming free periods between appointments. It then utilizes OpenRouter AI and Google Maps API to scout nearby cafes or coworking spaces that match your specific preferences. Unlike manual searching, this workflow analyzes your current location and travel time to ensure you never waste a moment. Once a prime location is identified, the workflow pushes a detailed notification to Slack, including navigation links and venue details. This eliminates decision fatigue and the stress of finding reliable Wi-Fi or a quiet environment on the fly. From a technical perspective, the flow triggers on a schedule, scrapes calendar data, processes spatial logic via custom Code nodes, and leverages an LLM agent to make qualitative recommendations based on live data, ultimately logging your visits in Google Sheets for future reference. **Common Use Cases:** - Field Sales Optimization: Automatically suggesting quiet cafes for account managers to update CRM records between client on-site visits. - Executive Assistant Automation: Providing traveling executives with curated 'third-space' options for impromptu deep-work sessions without manual research. - Digital Nomad Productivity: Syncing with a dynamic travel schedule to identify the best-rated workspaces with high-speed internet in new cities.

Scheduled·12 nodes
AGEMFIGO+7
high

Automate Excel to Google Calendar Sync with AI Summaries

Stop manually copying spreadsheets into your schedule. This advanced n8n automation streamlines event management by transforming static Excel files into dynamic Google Calendar entries using GPT-4o-mini. The workflow monitors your Google Drive for new schedules, extracts raw data, and utilizes a dual-layer AI analysis to validate dates and categorize events with high precision. Unlike basic sync tools, this logic includes a structured output parser to ensure data integrity and a smart enrichment phase that adds context to every calendar invite. Once the calendar is updated, the system generates a human-readable executive summary of the week's agenda and distributes it via email automatically. This is a game-changer for professionals managing high-volume scheduling tasks where human error is a risk. By integrating OpenAI’s LLMs directly into the data pipeline, the workflow handles inconsistent formatting and complex project timelines that traditional automation tools often fail to process. It effectively acts as an AI executive assistant, ensuring your team stays synchronized without a single manual click. **Common Use Cases:** - Academic Term Scheduling: Automatically syncing university lecture timetables from faculty spreadsheets to student-facing calendars. - Project Milestone Tracking: Converting complex Excel project trackers into visual deadlines for cross-functional engineering teams. - Shift Management for Healthcare: Transforming weekly staff rosters into individual calendar invites with automated shift summaries sent to personnel.

Scheduled·17 nodes
AGAGCODA+9
high

AI Agent: Auto-Sync Gmail/Outlook to Google Tasks & To Do

Stop losing critical action items in your overflowing inbox. This advanced n8n workflow leverages a sophisticated multi-agent AI system powered by Mistral Large to intelligently bridge the gap between your communication and project management. Unlike simple triggers, this flow uses an autonomous Orchestrator Agent that analyzes the context of incoming emails from both Gmail and Microsoft Outlook. It determines if an email is truly actionable, extracts the core requirement, and assigns it to the appropriate platform—be it Google Tasks or Microsoft To Do. The automation executes a multi-step logic sequence: first, it fetches unread messages through specialized integrations; second, it utilizes a memory-buffered Mistral AI agent to structure the data into high-quality task descriptions; and finally, it employs sub-agents to handle rate-limiting and platform-specific API calls. This ensures a seamless, error-free transfer of data without manual intervention. By centralizing your cross-platform tasks into a single source of truth, you eliminate context switching and ensure that high-priority client requests or internal directives are never overlooked. It is the ultimate productivity engine for professionals managing hybrid ecosystems. **Common Use Cases:** - Executive Assistant Automation: Automatically triaging executive inboxes and converting stakeholder requests into prioritized task lists. - Project Management Sync: Converting client feedback received via email into actionable tickets within a team's shared Microsoft To Do or Google environment. - Freelance Workflow Optimization: Managing multiple client communication channels by consolidating all 'next steps' into a unified personal dashboard.

Scheduled·26 nodes