Telegram + Gmail, handle inbox and scheduling fast
Your inbox isn’t “too full.” It’s just too fragmented. You spot an email, open a tab, copy a detail into another app, then lose 10 minutes getting back into focus.
Telegram Gmail automation helps when you’re moving fast and can’t afford constant context switching. A marketing manager juggling approvals feels it. A busy founder feels it too. Same with an operations lead who lives in follow-ups.
This workflow turns a single Telegram message into coordinated help: inbox actions, scheduling, quick research, and a clean reply back in the same thread. You’ll see what it solves, how it works, and what you need to run it.
How This Automation Works
The full n8n workflow, from trigger to final output:
n8n Workflow Template: Telegram + Gmail, handle inbox and scheduling fast
flowchart LR
subgraph sg0["Telegram Intake Flow"]
direction LR
n0@{ icon: "mdi:wrench", form: "rounded", label: "Compute Tool", pos: "b", h: 48 }
n1@{ icon: "mdi:robot", form: "rounded", label: "Coordinator Agent", pos: "b", h: 48 }
n2@{ icon: "mdi:wrench", form: "rounded", label: "Schedule Workflow Tool", pos: "b", h: 48 }
n3@{ icon: "mdi:wrench", form: "rounded", label: "Email Workflow Tool", pos: "b", h: 48 }
n4@{ icon: "mdi:wrench", form: "rounded", label: "Web Lookup Tool", pos: "b", h: 48 }
n5["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/telegram.svg' width='40' height='40' /></div><br/>Telegram Reply Sender"]
n6["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/telegram.svg' width='40' height='40' /></div><br/>Telegram Intake Trigger"]
n7@{ icon: "mdi:memory", form: "rounded", label: "Session Memory Buffer", pos: "b", h: 48 }
n8@{ icon: "mdi:wrench", form: "rounded", label: "Contact Workflow Tool", pos: "b", h: 48 }
n9@{ icon: "mdi:brain", form: "rounded", label: "OpenRouter Chat Engine", pos: "b", h: 48 }
n10@{ icon: "mdi:wrench", form: "rounded", label: "LinkedIn Comment Tool", pos: "b", h: 48 }
n11@{ icon: "mdi:cog", form: "rounded", label: "Perplexity Insight Tool", pos: "b", h: 48 }
n3 -.-> n1
n1 --> n5
n2 -.-> n1
n8 -.-> n1
n0 -.-> n1
n11 -.-> n1
n4 -.-> n1
n7 -.-> n1
n6 --> n1
n9 -.-> n1
n10 -.-> n1
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n6 trigger
class n1 ai
class n9 aiModel
class n0,n2,n3,n4,n8,n10 ai
class n7 ai
classDef customIcon fill:none,stroke:none
class n5,n6 customIcon
The Problem: Inbox and scheduling chaos lives across tabs
Email isn’t the hard part. The hard part is everything around it. You read a message, then you need to schedule a meeting, look up a detail, calculate a quick number, remember what you promised last week, and send a clean response. That “small” chain happens dozens of times. Each jump between Gmail, Calendar, search, and notes costs attention, not just minutes. And when you’re rushing, you forget the follow-up or send a half-answer that creates even more back-and-forth. Honestly, it’s exhausting.
The friction compounds. Here’s where it breaks down in real life.
- Important requests get buried because you meant to reply “after this one thing” and never came back.
- Scheduling takes longer than it should because you’re checking conflicts, proposing times, then rewriting the same email.
- Quick research turns into a 12-tab rabbit hole, which means your reply gets delayed or diluted.
- You lose thread context, so you repeat questions that were already answered earlier.
The Solution: A Telegram-based AI assistant that routes work to the right tool
This n8n workflow gives you a personal assistant you can message in Telegram. You send one request like “Reply to Sarah, propose 3 times next week, and summarize the last email thread,” or “Find the invoice email and tell me what date it’s due.” The workflow triggers instantly from Telegram, hands your message to a coordinating AI agent, then routes the task to a specialized tool based on intent. Gmail actions go to an email workflow tool, scheduling gets passed to a calendar/scheduling tool, web questions go to a lookup tool, and math gets handled by a calculator tool. The assistant keeps short-term memory, so follow-ups like “OK, book the second option” still make sense. Then it posts the final answer back into Telegram, so you stay in one place.
The workflow starts with a Telegram message. The coordinator agent decides which specialized agent should handle it, using an OpenRouter chat model and a memory buffer to keep context. Finally, the Telegram reply node sends a clean, actionable response back to you.
What You Get: Automation vs. Results
| What This Workflow Automates | Results You’ll Get |
|---|---|
|
|
Example: What This Looks Like
Say you handle 15 email requests a day that each require three extra actions: check Calendar, do a quick search, and write a clean reply. Manually, that’s maybe 10 minutes per request once you include context switching, so about 2.5 hours daily. With this workflow, you send one Telegram message per request (about 1 minute) and wait for the assistant’s response, which usually lands in a couple minutes. You still review before sending anything final, but you can easily get around 2 hours back on a busy day.
What You’ll Need
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Telegram Bot for sending requests and receiving replies
- OpenRouter account to run the coordinating AI chat model
- Google API credentials (get it from Google Cloud Console)
Skill level: Intermediate. You’ll connect accounts, add API keys, and sanity-check permissions for Gmail/Calendar access.
Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).
How It Works
Telegram message kicks it off. You message your bot with what you need, like “Draft a reply and suggest meeting times” or “Summarize the last thread with Alex.” That Telegram trigger starts the workflow immediately.
The coordinator figures out intent. An AI “coordinator agent” reads your request using an OpenRouter chat model. It also checks the session memory buffer so a follow-up like “Use the earlier option” isn’t confusing.
The right specialized tool runs. Email-related tasks are routed to the email workflow tool (Gmail). Scheduling requests go to the schedule workflow tool (Calendar logic). Research questions use the web lookup tool (search/perplexity-style insights), and calculations go to the compute tool.
A single, clear response returns to Telegram. The workflow merges outputs into a final answer and sends it back via Telegram reply sender. No copying between apps, and you keep the conversation trail in one place.
You can easily modify the routing rules to prioritize Gmail over search (or the other way around) based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Telegram Trigger
Set up the workflow entry point so messages from Telegram initiate the orchestration.
- Add the Telegram Intake Trigger node as the trigger.
- Set Updates to
message. - In Additional Fields, set Download to
true. - Credential Required: Connect your
telegramApicredentials for Telegram Intake Trigger.
Step 2: Configure the AI Orchestrator
Define how the agent interprets Telegram messages and orchestrates tool calls.
- Add Coordinator Agent and set Text to
={{ $('Telegram Intake Trigger').item.json.message.text }}. - Set Prompt Type to
defineand keep the system message content as provided. - Connect OpenRouter Chat Engine as the language model and set Model to
openai/gpt-4o. - Credential Required: Connect your
openRouterApicredentials for OpenRouter Chat Engine.
Credential Required: AI tool nodes (Compute Tool, Schedule Workflow Tool, Email Workflow Tool, Web Lookup Tool, Session Memory Buffer, Contact Workflow Tool, LinkedIn Comment Tool, Perplexity Insight Tool) are attached to Coordinator Agent. Add credentials to the parent tool nodes where applicable, not to the agent itself.
Step 3: Attach Memory and Tooling for Orchestration
Enable memory and specialized tools so the agent can complete tasks across systems.
- Connect Session Memory Buffer as AI memory and set Session Key to
={{ $('Telegram Intake Trigger').item.json.message.chat.id }}. - Set Session Id Type to
customKeyand Context Window Length to7in Session Memory Buffer. - Attach Compute Tool to Coordinator Agent for calculations.
- Attach Web Lookup Tool to Coordinator Agent and keep default options.
- Credential Required: Connect your
serpApicredentials for Web Lookup Tool. - Attach Perplexity Insight Tool to Coordinator Agent and set Model to
sonarwith message content={{ $('Telegram Intake Trigger').item.json.message.text }}. - Credential Required: Connect your
perplexityApicredentials for Perplexity Insight Tool.
⚠️ Common Pitfall: If Session Memory Buffer is not connected to Coordinator Agent as AI memory, the agent will not retain conversational context across messages.
Step 4: Configure Workflow Tools for Delegation
Link the agent to specialized sub-workflows for calendar, email, contacts, and LinkedIn tasks.
- In Schedule Workflow Tool, set Name to
Calendarand select the workflow in Workflow ID (replace[YOUR_ID]). - In Email Workflow Tool, set Name to
Gmailand select the workflow in Workflow ID (replace[YOUR_ID]). - In Contact Workflow Tool, set Name to
Contactsand select the workflow in Workflow ID (replace[YOUR_ID]). - In LinkedIn Comment Tool, select the workflow in Workflow ID (replace
[YOUR_ID]) and keep the workflow input query mapping as={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('query', ``, 'string') }}.
[YOUR_ID], the tool cannot call the sub-workflow. Replace each placeholder with the correct workflow.Step 5: Configure the Telegram Response Output
Send the agent’s final response back to the user in Telegram.
- Add Telegram Reply Sender connected from Coordinator Agent.
- Set Text to
={{ $json.output }}. - Set Chat ID to
={{ $('Telegram Intake Trigger').item.json.message.chat.id }}. - In Additional Fields, set Append Attribution to
false. - Credential Required: Connect your
telegramApicredentials for Telegram Reply Sender.
Step 6: Test and Activate Your Workflow
Validate the end-to-end orchestration and then activate the workflow for production use.
- Click Execute Workflow and send a test message to your Telegram bot.
- Confirm Coordinator Agent receives the message and produces
$json.outputfor Telegram Reply Sender. - Verify the reply appears in Telegram with the expected content.
- Once confirmed, toggle the workflow Active to enable continuous processing.
Common Gotchas
- Google credentials can expire or need specific permissions. If things break, check the connected Google account scopes and token status in your n8n credentials first.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- OpenRouter/OpenAI-style prompts can be too generic out of the box. Add a short “how I write” brand voice note early, or you will keep rewriting replies.
Frequently Asked Questions
About 30–60 minutes if your Telegram bot and Google credentials are ready.
No. You’ll mostly paste API keys and connect Google/Telegram accounts in n8n.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenRouter usage (it depends on the model you pick, but expect small per-message costs).
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
Yes, and it’s one of the easiest changes. You can adjust the coordinator agent’s routing instructions so “meeting” requests always go to the Schedule Workflow Tool and skip the Email Workflow Tool. Common customizations include limiting web lookup for privacy, adding a stricter reply format (subject line + bullet points), and creating a new agent for a specific process like “client onboarding.”
Usually the bot token is wrong or the bot can’t message you yet because the chat hasn’t been initiated. Double-check the Telegram credentials in n8n, then open Telegram and send a message to the bot so it has permission to reply. If it still fails, confirm you’re using the correct chat ID and that your n8n instance can reach Telegram (some locked-down networks block outbound requests).
Plenty for a personal or small-team assistant: on n8n Cloud it depends on your execution limits, and on self-hosting it mostly depends on your server and your AI provider’s rate limits.
Often, yes. This workflow relies on an agent router plus multiple tools, which is the kind of branching logic that gets clumsy (and pricey) in Zapier/Make when you keep adding paths. n8n is also easier to self-host, which matters if you plan to run this all day without watching task counts. The tradeoff is setup responsibility: you will manage credentials and permissions, and you’ll want to test a few real requests to tune the routing. If you just need “Telegram message → send an email,” Zapier might be faster. Talk to an automation expert if you want help choosing.
This is the kind of assistant that pays for itself in saved attention. Set it up once, keep the conversation in Telegram, and let the workflow handle the repetitive glue work.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.