Automation library · Documents and files

Organize handwritten memos from LINE with Gemini and Drive

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

MediumCalls a model: Gemini

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

The flow

Starts it 1Model 2Logic 8Service 9

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

  1. 1LINE_Receive_WebhookWebhookStarts it
  2. 2AI_Model_GeminiLm Chat Google GeminiModel
  3. 3Config_Set_EnvironmentSetLogic
  4. 4AI_OCR_Analyze_ImageChain LlmModel
  5. 5LINE_Check_MessageTypeIfLogic
  6. 6Data_Parse_OCR_JSONCodeLogic
  7. 7LINE_Reply_ProcessingHttp RequestService
  8. 8LINE_Reply_NoImageHttp RequestService
  9. 9AI_Check_OCR_FailureIfLogic
  10. 10LINE_Download_ImageContentHttp RequestService
  11. 11LINE_Push_NoSummaryHttp RequestService
  12. 12Sheets_Get_MetadataHttp RequestService
  13. 13Drive_Upload_ImageGoogle DriveService
  14. 14Sheets_Check_Category_ExistsCodeLogic
  15. 15Binary_Restore_From_LINECodeLogic
  16. 16Sheets_Branch_CategoryIfLogic
  17. 17Sheets_Append_RowGoogle SheetsService
  18. 18Sheets_Create_CategoryGoogle SheetsService
  19. 19LINE_Push_Completion_MessageHttp RequestService
  20. 20Data_Prepare_Sheet_RowSetLogic

How it's built

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

Questions

What does it need to run?

An n8n account, plus your own Google Drive 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 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. 20 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 20 steps before you point it at anything that matters.