Automation library · AI assistants

5 ways to process images & PDFs with Gemini

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Gemini. 22 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

22 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 4Logic 6Service 11

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Google Gemini Chat Model1Lm Chat Google GeminiModel
  4. 4Define URLs And PromptsSetLogic
  5. 5Define Multiple Image URLsSetLogic
  6. 6Get PDF fileHttp RequestService
  7. 7Get image from unsplashHttp RequestService
  8. 8Get image from unsplash4Http RequestService
  9. 9AI AgentAgentModel
  10. 10AI Agent2AgentModel
  11. 11Split OutSplit OutLogic
  12. 12Split Out to multiple itemsSplit OutLogic
  13. 13Transform to base64 (pdf)Extract From FileService
  14. 14Transform to base64 (image)Extract From FileService
  15. 15Loop Over ItemsSplit In BatchesLogic
  16. 16Filter (optional)FilterLogic
  17. 17Get image from unsplash3Http RequestService
  18. 18Call Gemini API with PDFHttp RequestService
  19. 19Call Gemini API with ImageHttp RequestService
  20. 20Get image from unsplash2Http RequestService
  21. 21Transform to baseExtract From FileService
  22. 22Call Gemini API1Http RequestService

How it's built

Starts on
An event in a connected app
Steps
22, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
Gemini

Questions

What does it need to run?

An n8n account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

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?

Take your time. At 22 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 22 steps before you point it at anything that matters.