Automate LINE Messages with n8n: Namecard & Task Management

Discover how this n8n workflow automates LINE message processing, extracting namecard info and managing tasks with Microsoft To Do and Teams. Stop wasting time on manual data entry and enjoy seamless message handling.
Webhook
Http Request
Switch
+7
Workflow Identifier: 2182
NODES in Use: Webhook, Http Request, Switch, Sticky Note, Microsoft Teams, Microsoft To Do, agent, lmChatOpenRouter, outputParserStructured, Microsoft OneDrive
Automate LINE messages with n8n and Microsoft

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow listens to messages sent on LINE through a webhook.
It sorts the messages by type like text, images, audio, or task commands.
The workflow extracts contact info from namecard images using AI.
It also makes tasks in Microsoft To Do and posts messages to Microsoft Teams.
Images are uploaded and renamed in OneDrive.
Users get replies in LINE confirming what happens.

Overall, it saves time by automating manual steps and stops mistakes.
It makes sure no important message gets missed or lost.


Who Should Use This Workflow

This is good for people who get many LINE messages at work.
Especially when important contacts or task notes come as images or texts.

If users want to save data without typing it again, and manage tasks easily, this helps.
Also, teams that use Microsoft To Do, Teams and OneDrive will get more value.


Tools and Services Used

  • LINE Messaging API: Receives user messages from LINE chat.
  • OpenRouter API: AI that reads images to find and extract info.
  • Microsoft To Do: Creates and manages task items.
  • Microsoft Teams: Posts messages for team communication.
  • Microsoft OneDrive: Stores and organizes received images.
  • n8n Platform: Runs and connects all automation steps.

Inputs, Processing Steps and Outputs

Inputs

  • Incoming LINE messages via webhook.
  • Message types: text, image, audio, task commands starting with “T “.

Processing Steps

  • Show a loading animation in LINE chat while processing.
  • Switch node to decide message type and route accordingly.
  • If task message, create task in Microsoft To Do.
  • If text message, send content to Microsoft Teams channel.
  • If image, download from LINE, upload to OneDrive, rename it.
  • Use AI agents from OpenRouter to check if image is a namecard or other.
  • If namecard, extract contact info as structured JSON.
  • Create follow-up task for namecard data.
  • Reply to LINE chat with extraction result or confirmations.

Outputs

  • Microsoft To Do tasks with proper titles and details.
  • Microsoft Teams messages showing received texts or image analysis.
  • Stored images on OneDrive named by message ID.
  • LINE chat replies confirming actions or asking to retry unsupported messages.

Beginner Step-by-Step: How to Use This Workflow in n8n

Download and Import Workflow

  1. Use the Download button on this page to get the workflow file.
  2. Open n8n editor where user wants to add the workflow.
  3. Click “Import from File” in n8n, then select the downloaded workflow.

Configure Credentials and IDs

  1. Add all required API credentials like LINE Messaging API token, OpenRouter API key, Microsoft To Do OAuth, Teams permissions, and OneDrive access.
  2. Update any IDs such as Microsoft To Do list ID, Teams channel ID, or OneDrive folder ID if needed.
  3. Check JSON bodies or prompts for placeholders and change emails or fields to match user’s data.

Test the Workflow

  1. Send test messages or images to LINE chat linked to webhook.
  2. Watch executions in n8n editor to see if all steps run without errors.
  3. Look in Microsoft To Do and Teams to confirm tasks and messages appear as expected.

Activate the Workflow

  1. After successful testing, switch the workflow to “Active” mode in n8n.
  2. Now the workflow will run automatically every time a new LINE message arrives.

If running self-host n8n, place this workflow there and keep credentials secured.


Edge Cases and Failure Handling

  • If LINE webhook URL is wrong or does not match, messages will not reach workflow.
  • OpenRouter API failures happen with bad keys or internet loss, so check keys and connection.
  • Microsoft To Do tasks may fail if OAuth expires or task list ID is wrong.
  • Messages with unsupported types reply politely asking user to try another format.

Keeping credentials updated and testing every few weeks reduces risk.


Customization Ideas

  • Add more task prefixes besides “T ” in the Switch node to catch more commands.
  • Improve AI prompt for namecard extraction to detect logos or social links.
  • Change AI agent prompt for multi-language image text extraction beyond English and Thai.
  • Replace OneDrive nodes with Google Drive if preferred for storage.
  • Add audio transcription service nodes to handle voice messages and convert them to tasks.

Summary

✓ This workflow collects LINE messages and processes them intelligently.
✓ It extracts contact info from namecards using AI and creates follow-up tasks.
✓ Messages and extracted data are saved in Microsoft Teams and OneDrive.
✓ Task creation in Microsoft To Do is automatic for easy management.
✓ User is notified in LINE chat with loading animations and confirmations.
✓ Saves time and reduces errors from manual data entry.


Automate LINE messages with n8n and Microsoft

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Make sure the webhook URL from the n8n Webhook node exactly matches the URL set in the LINE Developer Console. Remove any test suffix. Then test again.
Failures happen because of invalid OpenRouter API keys or internet connection issues. Check the API key in n8n credentials and confirm network access.
Check if the Microsoft To Do OAuth credentials are valid. Also, verify the task list ID is correct and active in Microsoft To Do settings.
Yes. Replace Microsoft To Do nodes with Google Tasks nodes and update API credentials accordingly.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.