Automation library · Chat assistants

Personal knowledgebase AI agent with Gemini and Google Sheets

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to Gemini. 19 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: Gemini

19 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 6Logic 3Service 8

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

  1. 1Google Gemini Chat Model1Lm Chat Google GeminiModel
  2. 2Google Gemini Chat Model2Lm Chat Google GeminiModel
  3. 3Telegram TriggerTelegram triggerStarts it
  4. 4Google Gemini Chat ModelLm Chat Google GeminiModel
  5. 5Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  6. 6Google Sheets TriggerGoogle Sheets triggerStarts it
  7. 7Information ExtractorInformation ExtractorModel
  8. 8Information Extractor1Information ExtractorModel
  9. 9AI AgentAgentModel
  10. 10FilterFilterLogic
  11. 11Append row in sheet1Google SheetsService
  12. 12Append row in sheetGoogle SheetsService
  13. 13Send a text messageTelegramService
  14. 14IfIfLogic
  15. 15Append or update row in sheetGoogle SheetsService
  16. 16Append or update row in sheet2Google SheetsService
  17. 17HTTP RequestHttp RequestService
  18. 18HTTP Request1Http RequestService
  19. 19MarkdownMarkdownLogic

How it's built

Starts on
An incoming Telegram message
Steps
19, with 1 branch
Size
Medium: a working afternoon
Connects to
Google Sheets, Telegram
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 steps before you point it at anything that matters.