Automation library · Setup and learning

Build a Pipedrive MCP server with Gemini

Started by an incoming Telegram message, and works across Gmail and Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

25 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 4Service 19

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

  1. 1On new messageTelegram triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4MCP ClientMcp Client ToolModel
  5. 5Create Organization DealPipedrive ToolService
  6. 6Create Person DealPipedrive ToolService
  7. 7Update DealPipedrive ToolService
  8. 8Search & Return DealsPipedrive ToolService
  9. 9Create Person LeadPipedrive ToolService
  10. 10Get LeadPipedrive ToolService
  11. 11Get DealPipedrive ToolService
  12. 12Update LeadPipedrive ToolService
  13. 13Return Many LeadsPipedrive ToolService
  14. 14Create PersonPipedrive ToolService
  15. 15Get PersonPipedrive ToolService
  16. 16Search PersonPipedrive ToolService
  17. 17Update PersonPipedrive ToolService
  18. 18Create OrganizationPipedrive ToolService
  19. 19Get Organization DataPipedrive ToolService
  20. 20Search & Return OrganizationsPipedrive ToolService
  21. 21Update an OrganizationPipedrive ToolService
  22. 22Create Organization LeadPipedrive ToolService
  23. 23AI AgentAgentModel
  24. 24MCP Server TriggerMcp triggerStarts it
  25. 25Send summaryGmailService

How it's built

Starts on
An incoming Telegram message
Steps
25
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Telegram
Model
Gemini
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 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. 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 25 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 25 steps before you point it at anything that matters.