Extract business card contacts from LINE with Google Gemini and Notion
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Notion. It also calls generativelanguage.googleapis.com and api.line.me over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract Message Data (Edit Fields (Set)): sets 4 fields: messageType, imageId, userId…
- Check If Image (Switch): routes items into 1 branches
- Download Image from LINE (HTTP Request): calls an HTTP API
- Convert Image to Base (Code): runs custom JavaScript code
- Classify Business Card with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Parse AI Response (Edit Fields (Set)): sets 6 fields: is_business_card, name, company…
- Is Business Card? (If): checks a condition and branches into true / false
- Save to Notion (Notion): work with database page
- Notify Not Business Card (HTTP Request): calls api.line.me (POST)
- Reply Success to LINE (HTTP Request): calls api.line.me (POST)
Services it uses
HTTP calls to: generativelanguage.googleapis.com, api.line.me
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code
From the author
Quick overview This workflow receives image messages from LINE, downloads the photo, uses Google Gemini to detect and extract business card details, and then saves the contact to a Notion CRM database before replying to the sender in LINE. How it works 1.…