# 5 ways to process images & PDFs with Gemini: n8n workflow

> 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.

Source: https://millionrounds.com/workflow/5-ways-to-process-images-and-pdfs-with-gemini (Millionrounds; every figure on the page links to its filing or article)

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

# 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.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2F5-ways-to-process-images-and-pdfs-with-gemini)

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

**0** Branches: places the flow splits

**1** Loop or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 4 Logic 6 Service 11

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **Define URLs And Prompts** Set *Logic*
- 5 **Define Multiple Image URLs** Set *Logic*
- 6 **Get PDF file** Http Request *Service*
- 7 **Get image from unsplash** Http Request *Service*
- 8 **Get image from unsplash4** Http Request *Service*
- 9 **AI Agent** Agent *Model*
- 10 **AI Agent2** Agent *Model*
- 11 **Split Out** Split Out *Logic*
- 12 **Split Out to multiple items** Split Out *Logic*
- 13 **Transform to base64 (pdf)** Extract From File *Service*
- 14 **Transform to base64 (image)** Extract From File *Service*
- 15 **Loop Over Items** Split In Batches *Logic*
- 16 **Filter (optional)** Filter *Logic*
- 17 **Get image from unsplash3** Http Request *Service*
- 18 **Call Gemini API with PDF** Http Request *Service*
- 19 **Call Gemini API with Image** Http Request *Service*
- 20 **Get image from unsplash2** Http Request *Service*
- 21 **Transform to base** Extract From File *Service*
- 22 **Call Gemini API1** Http Request *Service*

## 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.

## 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%2F5-ways-to-process-images-and-pdfs-with-gemini)
- **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.

## Workflows like it

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

- [**Automated project kickoff with Dropbox MCP and OpenAI** 22 steps · calls a model · Gmail](https://millionrounds.com/workflow/automated-project-kickoff-with-dropbox-mcp-and-openai)
- [**Automatic email categorization and organization with Outlook** 22 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-email-categorization-and-organization-with-outlook)
- [**Build a cost engineering RAG with Google Drive and OpenAI** 22 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/build-a-cost-engineering-rag-with-google-drive-and-openai)
- [**Convert websites to Instagram Reels with Gemini and OpenAI TTS** 22 steps · calls a model](https://millionrounds.com/workflow/convert-websites-to-instagram-reels-with-gemini-and-openai-t)
- [**Create AI news digests from RSS feeds with Groq and Gmail** 22 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/create-ai-news-digests-from-rss-feeds-with-groq-and-gmail)
- [**Create playlists and control your Spotify player with OpenAI** 22 steps · calls a model](https://millionrounds.com/workflow/create-playlists-and-control-your-spotify-player-with-openai)
