Automation library · Money admin

Negotiate car purchase quotes with Gemini and Gmail

Started by someone submitting a form, and works across Gmail and Google Sheets. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 16 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: GeminiRetrieval

16 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 6Logic 5Service 4

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

  1. 1Parse Structured OutputOutput Parser StructuredModel
  2. 2Calculate Offer ToolTool CodeModel
  3. 3Fetch Vehicle Details ToolTool CodeModel
  4. 4Redis Chat MemoryMemory Redis ChatModel
  5. 5Gemini Flash-Lite ModelLm Chat Google GeminiModel
  6. 6When Customer Form SubmittedForm triggerStarts it
  7. 7Car Sales AI AgentAgentModel
  8. 8Normalize Form InputSetLogic
  9. 9If Valid QueryIfLogic
  10. 10Set Dealer ConfigurationSetLogic
  11. 11Append or Update Lead in SheetsGoogle SheetsService
  12. 12Read Inventory from SheetsGoogle SheetsService
  13. 13Send Customer Reply EmailGmailService
  14. 14If Vehicle FoundIfLogic
  15. 15Prepare Deal DataSetLogic
  16. 16Send Car Not Found EmailGmailService

How it's built

Starts on
Someone submitting a form
Steps
16, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
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 Google Sheets accounts, and a key for Gemini. 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 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?

Plan an afternoon. 16 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 16 steps before you point it at anything that matters.