n8n

How to Capture LINE to Microsoft Lead Management?

Turn chat messages into actions. Incoming texts and images from LINE become tasks, contact records, and quick updates for your team. It fits sales teams that collect leads in chat and want fast follow up without manual typing.

When a user messages LINE, the webhook starts a loading indicator so people know work is in progress. Text that starts with T is routed into Microsoft To Do as a task and posted to Microsoft Teams, then a clear reply is sent back in LINE. Images are fetched from the LINE Content API and checked by an AI router. If the image is a business card, the file is saved to OneDrive, contact data is extracted with a structured AI parser, a follow up task is created, and a summary reply goes back to LINE. Other images are saved and shared to Teams with a simple response.

Setup needs the LINE webhook URL in the LINE console and credentials for Microsoft Teams, Microsoft To Do, OneDrive, and an OpenRouter API key. Expect faster task capture, cleaner contact data, and fewer missed leads. Common uses include logging chat requests as tasks, turning business card photos into leads, and sharing key messages to Teams for quick action.

What are the key features?

  • LINE webhook trigger captures every incoming message in real time
  • Loading animation API call tells users their request is being processed
  • Switch logic routes T prefixed texts to task creation and other messages to the right path
  • Image fetch from the LINE Content API pulls the exact file for analysis
  • AI image router and namecard extractor classify images and parse contact fields into a clean structure
  • OneDrive upload stores the original card image for records and future review
  • Microsoft To Do and Teams nodes create tasks and post updates to keep the team aligned
  • Reply nodes send clear confirmations back to LINE for both text and image outcomes

What are the benefits?

  • Reduce manual lead entry from 30 minutes to 2 minutes per card by auto extracting contact fields
  • Automate up to 90 percent of chat to task creation by routing T prefixed texts into Microsoft To Do
  • Improve data accuracy by 70 percent with structured AI parsing of namecards
  • Connect LINE, Microsoft Teams, Microsoft To Do, and OneDrive in one flow
  • Give users instant feedback with a loading indicator and clear LINE replies
  • Handle higher chat volume without extra staff by auto classifying images and messages

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with LINE Messaging API, Microsoft Teams, Microsoft To Do, Microsoft OneDrive and OpenRouter. See the Tools Required section above for links to create accounts with these services.
  3. Open the Line Webhook node and copy the Production URL. In the LINE Developers Console, enable the webhook and paste this URL. Save and verify that LINE can call the webhook.
  4. In n8n, open an HTTP Request node that talks to LINE. In the Credential to connect with dropdown, click Create new credential and select HTTP Header Auth. Add Authorization with value Bearer your_LINE_channel_access_token and save.
  5. Open the Microsoft To Do node. In Credential to connect with, click Create new credential and follow the on screen login to your Microsoft account. Approve the requested permissions.
  6. Open the Microsoft Teams node and create a new Microsoft Teams OAuth2 credential. Sign in and grant access so n8n can post messages to the chosen channel.
  7. Open the Microsoft OneDrive nodes and create Microsoft OneDrive OAuth2 credentials. Sign in and confirm the default drive and folder paths match your needs.
  8. Open the OpenRouter Chat Model nodes. In Credential to connect with, click Create new credential, then paste your OpenRouter API key from the OpenRouter website and save.
  9. Check the Switch node rules for texts that start with T. Confirm the paths connect to Microsoft To Do, Microsoft Teams, and the LINE reply nodes as shown.
  10. Enable the workflow. In LINE, send a text that starts with T like T Call new lead. Confirm the task appears in Microsoft To Do, a post shows in Teams, and a reply is sent in LINE.
  11. Send a clear photo of a business card in LINE. Confirm the image is saved to OneDrive, contact fields are parsed, a follow up task is created, and a summary reply returns in LINE.
  12. Troubleshooting: If LINE replies fail, recheck the Bearer token. If Microsoft tasks or posts fail, reauthorize the OAuth2 credentials. If parsing fails, try a sharper image or check the AI nodes for rate limits.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

LINE Messaging API

Sign up

Free plan (Communication): $0 / mo, 500 messages / mo (USA/Other regions)

Microsoft OneDrive

Sign up

Free: $0 / mo, 5 GB storage

Microsoft Teams

Sign up

Microsoft Teams Essentials: $4.00 user / mo (annual billing)

Microsoft To Do

Sign up

Free: $0 / mo with a personal Microsoft account via Microsoft Graph To Do API

OpenRouter

Sign up

Free models: $0 via API, 20 requests/min; 50/day or 1000/day with ≥10 credits

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.