# Ultimate AI assistant: Automate email, calendar, webSearch: n8n workflow

> Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets, Notion and two others.

Source: https://millionrounds.com/workflow/ultimate-ai-assistant-automate-email-calendar-websearch (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Ultimate AI assistant: Automate email, calendar, webSearch

Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets, Notion and two others. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 31 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fultimate-ai-assistant-automate-email-calendar-websearch)

**31 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**6** Services it connects to

## The flow

Starts it 1 Model 9 Logic 4 Service 17

The steps in the order they run, from what starts it.

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 3 **Window Buffer Memory** Memory Buffer Window *Model*
- 4 **Think** Tool Think *Model*
- 5 **Send Email** Gmail Tool *Service*
- 6 **Get Emails** Gmail Tool *Service*
- 7 **Create Draft** Gmail Tool *Service*
- 8 **Email Reply** Gmail Tool *Service*
- 9 **Get Labels** Gmail Tool *Service*
- 10 **Label Emails** Gmail Tool *Service*
- 11 **Create Event with Attendee** Google Calendar Tool *Service*
- 12 **Create Event** Google Calendar Tool *Service*
- 13 **Get Events** Google Calendar Tool *Service*
- 14 **Delete Event** Google Calendar Tool *Service*
- 15 **Update Event** Google Calendar Tool *Service*
- 16 **Get Contact** Google Sheets Tool *Service*
- 17 **Add Contact** Google Sheets Tool *Service*
- 18 **Tavily WebSearch** Tool Http Request *Model*
- 19 **Post to X** Twitter Tool *Service*
- 20 **Take notes in Notion** Notion Tool *Service*
- 21 **GPT** Lm Chat Open Ai *Model*
- 22 **Switch** Switch *Logic*
- 23 **Pinecone Vector Store** Vector Store Pinecone *Model*
- 24 **AI Agent** Agent *Model*
- 25 **Edit Fields_Text** Set *Logic*
- 26 **DownloadAudio** Telegram *Service*
- 27 **OpenAI1** Open Ai *Model*
- 28 **Telegram** Telegram *Service*
- 29 **OpenAI** Open Ai *Model*
- 30 **Edit Fields_Image** Set *Logic*
- 31 **Edit Fields_Audio** Set *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 31, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Calendar, Google Sheets, Notion, Pinecone, Telegram
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar, Google Sheets, Notion, Pinecone and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fultimate-ai-assistant-automate-email-calendar-websearch)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**AI secretary for scheduling with WhatsApp and Telegram** 31 steps · calls a model · Google Calendar, Redis](https://millionrounds.com/workflow/ai-secretary-for-scheduling-with-whatsapp-and-telegram)
- [**Calendar Management & RAG Agent with OpenAI and OpenRouter** 31 steps · calls a model · Google Calendar, n8n data table](https://millionrounds.com/workflow/calendar-management-and-rag-agent-with-openai-and-openrouter)
- [**Validate property compliance risk and orchestrate actions** 31 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/validate-property-compliance-risk-and-orchestrate-actions)
- [**Route missed roofing calls to a Retell AI agent with Twilio** 31 steps · Google Calendar, Google Sheets](https://millionrounds.com/workflow/route-missed-roofing-calls-to-a-retell-ai-agent-with-twilio)
- [**Automate email & calendar management with Gmail** 32 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-email-and-calendar-management-with-gmail)
- [**Automate pet grooming posts & bookings with Facebook** 32 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/automate-pet-grooming-posts-and-bookings-with-facebook)
