Templates / Extract business card contacts from LINE with Google Gemini and Notion

Extract business card contacts from LINE with Google Gemini and Notion

Ready for 3.0

by Yasutaka Toshima ✓ · 2 views · created 2026-07-20 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Extract Message Data (Edit Fields (Set)): sets 4 fields: messageType, imageId, userId…
  2. Check If Image (Switch): routes items into 1 branches
  3. Download Image from LINE (HTTP Request): calls an HTTP API
  4. Convert Image to Base (Code): runs custom JavaScript code
  5. Classify Business Card with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
  6. Parse AI Response (Edit Fields (Set)): sets 6 fields: is_business_card, name, company…
  7. Is Business Card? (If): checks a condition and branches into true / false
  8. Save to Notion (Notion): work with database page
  9. Notify Not Business Card (HTTP Request): calls api.line.me (POST)
  10. Reply Success to LINE (HTTP Request): calls api.line.me (POST)

Services it uses

Notion

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)

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.…

Excerpt from Yasutaka Toshima's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.