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
- Use the Download button on this page to get the workflow file.
- Open n8n editor where user wants to add the workflow.
- Click “Import from File” in n8n, then select the downloaded workflow.
Configure Credentials and IDs
- Add all required API credentials like LINE Messaging API token, OpenRouter API key, Microsoft To Do OAuth, Teams permissions, and OneDrive access.
- Update any IDs such as Microsoft To Do list ID, Teams channel ID, or OneDrive folder ID if needed.
- Check JSON bodies or prompts for placeholders and change emails or fields to match user’s data.
Test the Workflow
- Send test messages or images to LINE chat linked to webhook.
- Watch executions in n8n editor to see if all steps run without errors.
- Look in Microsoft To Do and Teams to confirm tasks and messages appear as expected.
Activate the Workflow
- After successful testing, switch the workflow to “Active” mode in n8n.
- 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.

