# Generate AI-powered lease renewal offers with Ollama LLM: n8n workflow

> Started by someone submitting a form, and works across Gmail, Google Drive and Supabase. It hands the judgement calls to a local model.

Source: https://millionrounds.com/workflow/generate-ai-powered-lease-renewal-offers-with-ollama-llm (Millionrounds; every figure on the page links to its filing or article)

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

# Generate AI-powered lease renewal offers with Ollama LLM

Started by someone submitting a form, and works across Gmail, Google Drive and Supabase. It hands the judgement calls to a local model. 14 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: a local model

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-powered-lease-renewal-offers-with-ollama-llm)

**14 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 2 Service 8

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

- 1 **Ollama Chat Model** Lm Chat Ollama *Model*
- 2 **On form submission** Form trigger *Starts it*
- 3 **Basic LLM Chain-offerLetter** Chain Llm *Model*
- 4 **Basic LLM Chain-email** Chain Llm *Model*
- 5 **Supabase-search_cust** Supabase *Service*
- 6 **Convert to File** Convert To File *Service*
- 7 **Google Drive-get_file** Google Drive *Service*
- 8 **Supabase_cust_info** Supabase *Service*
- 9 **Google Drive-upload** Google Drive *Service*
- 10 **Gmail** Gmail *Service*
- 11 **Edit Fields** Set *Logic*
- 12 **Google Drive-search** Google Drive *Service*
- 13 **If-check_dup** If *Logic*
- 14 **Google Drive-delete_dup** Google Drive *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 14, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Google Drive, Supabase
- **Model:** a local model

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Supabase accounts, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 14 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 14 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%2Fgenerate-ai-powered-lease-renewal-offers-with-ollama-llm)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

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

- [**Anonymize & reformat CVs with Gemini and Google Sheets** 14 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/anonymize-and-reformat-cvs-with-gemini-and-google-sheets)
- [**Automate client communications & management with Notion** 14 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/automate-client-communications-and-management-with-notion)
- [**Automated Image Background Removal & Upscaling** 14 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/automated-image-background-removal-and-upscaling)
- [**Categorize Revolut transactions with OpenAI and Supabase** 14 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/categorize-revolut-transactions-with-openai-and-supabase)
- [**Event Sponsor Matching with Google Sheets and OpenAI** 14 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/event-sponsor-matching-with-google-sheets-and-openai)
- [**Generate AI product marketing photos from Google Sheets** 14 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-ai-product-marketing-photos-from-google-sheets)
