Automation library · Lead generation

Create Gmail drafts from business cards with Google Drive

Started by an event in a connected app, and works across Discord, Gmail, Google Drive and Slack. It hands the judgement calls to Gemini. 19 steps, 3 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

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

The flow

Starts it 1Model 1Logic 8Service 9

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

  1. 1When clicking 'Execute workflow'Manual triggerStarts it
  2. 2SettingsSetLogic
  3. 3Search Business CardsGoogle DriveService
  4. 4Download Card ImageGoogle DriveService
  5. 5Extract Card Data with GeminiGoogle GeminiModel
  6. 6Parse OCR ResultCodeLogic
  7. 7Has Valid Email?IfLogic
  8. 8Build Email ContentSetLogic
  9. 9Build Review MessageSetLogic
  10. 10Attach a File?IfLogic
  11. 11Route Notification ChannelSwitchLogic
  12. 12Download Attachment from DriveGoogle DriveService
  13. 13Create Draft without AttachmentGmailService
  14. 14Notify SlackSlackService
  15. 15Notify DiscordDiscordService
  16. 16Notify ChatworkHttp RequestService
  17. 17Create Draft with AttachmentGmailService
  18. 18Move Card to Processed FolderGoogle DriveService
  19. 19Build Success MessageSetLogic

How it's built

Starts on
An event in a connected app
Steps
19, with 3 branches
Size
Medium: a working afternoon
Connects to
Discord, Gmail, Google Drive, Slack
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Discord, Gmail, Google Drive and Slack accounts, 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?

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