LINE messages with GPT: Save notes, namecard data and tasks
This workflow template, "Personal Assistant to Note Messages and Extract Namecard Information" is designed to streamline the processing of incoming messages on the LINE messaging platform. It integrates with powerful tools like Microsoft Teams , Microsoft To Do , OneDrive , and OpenRouter.ai to handle tasks such as saving notes, extracting namecard information, and organizing images. Whether you’re managing personal productivity or automating workflows for teams, this template offers a versatile and customizable solution.
By leveraging this workflow, you can automate repetitive tasks, improve collaboration, and enhance efficiency in handling LINE messages.
Who Is This Template For?
This template is ideal for:
- Professionals: Who want to save important messages, extract data from namecards, or organize images automatically.
- Teams: Looking to integrate LINE messages into tools like Microsoft Teams and Microsoft To Do for better collaboration.
- Developers: Seeking to build intelligent workflows that process text, images, and other inputs from LINE.
- Business Owners: Who need to manage customer interactions, follow-ups, and task tracking efficiently.
What Problem Does This Workflow Solve?
Managing incoming messages on LINE can be time-consuming, especially when dealing with diverse input types like text, images, and namecards. This workflow solves that problem by:
- Automatically identifying and routing different message types (text, images, namecards) to appropriate actions.
- Extracting structured data from namecards and saving it for follow-up tasks.
- Uploading images to OneDrive and saving text messages to Microsoft Teams or Microsoft To Do for easy access.
- Sending real-time feedback to users via LINE to confirm that their messages have been processed.
What This Workflow Does
- Receive Messages via LINE Webhook: The workflow is triggered whenever a user sends a message (text, image, or other types) to the LINE bot.
- Display Loading Animation: A loading animation is displayed to reassure the user that their request is being processed. Route Input Types:
The workflow uses a Switch node to determine the type of input:
- Text Starting with "T": Adds the message as a task in Microsoft To Do.
- Plain Text: Saves the message in Microsoft Teams under a designated channel (e.g., "Notes").
- Images: Identifies whether the image is a namecard, handwritten note, or other content, then processes accordingly.
- Unsupported formats trigger a polite response indicating the limitation. Process Namecards:
**Images ** If the image is identified as a namecard, the workflow extracts structured data (e.g., name, email, phone number) using OpenRouter.ai and saves it to Microsoft To Do for follow-up tasks. Save Images to OneDrive:
Images are uploaded to OneDrive, renamed based on their unique message ID, and linked in Microsoft Teams for reference.
Send Feedback via LINE: The workflow replies to the user with confirmation messages, such as "[ Task Created ]" or "[ Message Saved ]."
Setup Guide
Pre-Requisites
- Access to the LINE Developers Console to configure your webhook and bot.
- Accounts for Microsoft Teams , Microsoft To Do, and OneDrive with API access.
- An OpenRouter.ai account with credentials to access models like GPT-4o.
- Basic knowledge of APIs, webhooks, and JSON formatting.
Step-by-Step Setup
- Configure the LINE Webhook:
- Go to the LINE Developers Console and set up a webhook to receive incoming messages.
- Copy the Webhook URL from the Line Webhook node and paste it into the LINE Console.
- Remove any "test" configurations when moving to production.
- Set Up Microsoft Integrations:
- Connect your Microsoft Teams, Microsoft To Do, and OneDrive accounts to the respective nodes in the workflow.
- Set Up OpenRouter.ai:
- Create an account on OpenRouter.ai and obtain your API credentials.
- Connect your credentials to the OpenRouter nodes in the workflow.
Test the Workflow:
- Simulate sending text, images, and namecards to the LINE bot to verify that all actions are processed correctly.
How to Customize This Workflow to Your Needs
- Add More Actions: Extend the workflow to handle additional input types or integrate with other tools.
- Enhance Image Processing: Use advanced OCR tools to improve text extraction from complex images.
- Customize Feedback Messages: Modify the reply format to include emojis, links, or other formatting options.
- Expand Use Cases: Adapt the workflow for specific industries, such as sales or customer support, by tailoring the actions to relevant tasks.
Why Use This Template?
- Versatile Automation: Handles multiple input types (text, images, namecards) with ease.
- Seamless Integration: Connects LINE messages to popular productivity tools like Microsoft Teams and To Do.
- Structured Data Extraction: Extracts and organizes data from namecards, saving time and effort.
- Real-Time Feedback: Keeps users informed about the status of their requests with instant notifications.
n8n Workflow: LINE Message Assistant with GPT, OneDrive, and To Do Integration
This n8n workflow acts as an intelligent assistant for LINE messages, leveraging GPT to understand user intent and then performing actions like saving notes to OneDrive, adding contacts to OneDrive, or creating tasks in Microsoft To Do. It's designed to streamline personal or professional communication by automating common follow-up actions directly from your LINE conversations.
What it does
This workflow automates the following steps:
- Receives LINE Messages: It listens for incoming messages via a webhook, acting as the entry point for the LINE bot.
- Analyzes Message with AI: It uses an AI Agent (powered by a GPT model via OpenRouter) to understand the user's message and extract specific instructions.
- Parses AI Output: A Structured Output Parser extracts the AI's decision on what action to take (e.g., "save_note", "save_namecard", "create_task") and any relevant data.
- Routes Actions Based on Intent: A Switch node then directs the workflow to the appropriate branch based on the AI's identified action.
- Save Note to OneDrive: If the AI determines the message is a note to be saved, it creates a new text file in a specified OneDrive folder.
- Save Namecard/Contact to OneDrive: If the AI identifies contact information (like a "namecard"), it creates a new text file in a different OneDrive folder.
- Create Task in Microsoft To Do: If the AI detects a task, it creates a new task in a specified Microsoft To Do list.
- Default/Unknown Action: If the AI cannot determine a specific action, the message is passed through for potential manual review or a fallback action (not explicitly defined in this JSON, but implied by the default output).
- Responds to LINE (Placeholder): An HTTP Request node is included, likely intended to send a confirmation or response back to the LINE user after an action is completed.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance to host the workflow.
- LINE Account & Bot: A LINE Developers account with a configured LINE Messaging API bot and a webhook URL pointing to this n8n workflow.
- OpenRouter API Key: An API key for OpenRouter to access various language models, which will be used by the AI Agent.
- Microsoft Account with OneDrive & To Do: Credentials for a Microsoft account with access to OneDrive and Microsoft To Do. You will need to configure Microsoft credentials in n8n.
Setup/Usage
- Import the Workflow:
- Download the provided JSON file.
- In your n8n instance, go to "Workflows" and click "New".
- Click the "..." menu in the top right and select "Import from JSON".
- Paste the workflow JSON or upload the file.
- Configure Webhook Trigger:
- Locate the "Webhook" node (Node ID: 47).
- Copy the "Webhook URL".
- Paste this URL into your LINE Developers console as the webhook URL for your LINE bot.
- Configure OpenRouter Chat Model:
- Locate the "OpenRouter Chat Model" node (Node ID: 1281).
- Select or create a new "OpenRouter API" credential.
- Enter your OpenRouter API Key.
- Configure Microsoft OneDrive Credentials:
- Locate the "Microsoft OneDrive" nodes (Node ID: 323, and potentially others if added).
- Select or create a new "Microsoft" credential.
- Authenticate your Microsoft account to grant n8n access to OneDrive.
- Specify OneDrive Folders: In the OneDrive nodes, configure the target folder paths where notes and namecard data should be saved.
- Configure Microsoft To Do Credentials:
- Locate the "Microsoft To Do" node (Node ID: 493).
- Select or create a new "Microsoft" credential (if not already done for OneDrive).
- Authenticate your Microsoft account to grant n8n access to Microsoft To Do.
- Specify To Do List: In the Microsoft To Do node, configure the specific list where new tasks should be created.
- Activate the Workflow:
- Once all credentials and configurations are set, activate the workflow by toggling the "Active" switch in the top right corner of the n8n editor.
Now, when a message is sent to your LINE bot, the workflow will process it, determine the intent using AI, and perform the corresponding action in OneDrive or Microsoft To Do.
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow — reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.