Automation library · Lead generation

Save business card contacts from LINE photos to Google Sheets

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to Gemini. 17 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

17 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 4Model 2Logic 5Service 6

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

  1. 1Set Configuration ParametersSetLogic
  2. 2When LINE Event ReceivedWebhookStarts it
  3. 3Setup Gemini for Card DataLm Chat Google GeminiModel
  4. 4If Image MessageIfLogic
  5. 5Fetch Image from LINE APIHttp RequestService
  6. 6Respond Not Image to LINERespond To WebhookStarts it
  7. 7Encode Image as Base64CodeLogic
  8. 8Extract Card Info with GeminiChain LlmModel
  9. 9Parse Gemini Output DataCodeLogic
  10. 10Read Contacts from SheetsGoogle SheetsService
  11. 11If Contact ExistsIfLogic
  12. 12Send Duplicate Reply via LINEHttp RequestService
  13. 13Append Contact to SheetsGoogle SheetsService
  14. 14Acknowledge Duplicate WebhookRespond To WebhookStarts it
  15. 15Post New Contact to SlackHttp RequestService
  16. 16Send Success Reply via LINEHttp RequestService
  17. 17Acknowledge OK WebhookRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
17, with 2 branches
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

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