The AgentivUse cases

Customer service · An afternoon · Thailand

Ask which LINE chats are waiting

An MCP server that lets Claude work your LINE OA Manager inbox the way an admin does: which chats are waiting, what the customer wrote, what the payment slip shows, and a drafted reply that goes out only after the staff member says OK

The problem

LINE's Messaging API is built for bots: it cannot see the chats already in LINE OA Manager, their history, or search them, so most AI add ons replace the admin with an auto reply instead of helping the admin. Meanwhile the admin scrolls the chat list to find who is still waiting, opens chats one by one to see whether anyone else reported the same problem, and opens every payment slip by hand.

Architecture

  1. Channel
    • LINE OA Manager inbox
  2. Agent
    • Claude with lineoa-cs tools
    • Summary and drafted reply
  3. Tools
    • Console JSON API, own session
    • Local search index (SQLite)
    • Slip returned as an image
  4. Human
    • Admin says OK before each send

Where the data stays: The server runs next to the CS person with their own LINE session; chats and slips go to the AI app's provider for the summary, the search index and attachments stay on that machine, and sends go out as the staff member.

Design flow

  1. Admin asks which chats are waiting for a reply
  2. Server reads chats, profiles and slips from the console
  3. Claude summarizes each chat and drafts a reply
  4. Refund or slip involved? Admin opens the chat linkOnly sometimes
  5. Admin says OK per draft, or edits itHuman checkpoint
  6. Reply sent as the staff member, attempt logged

Setup

Total time: 1 h 50 min our estimate

  1. 20 min

    Done when: Following START.th.md, Node 22.13 or newer is installed, the setup command (or start-mac.command) reports the server added to Claude Desktop in read only mode, and Claude Desktop has been fully quit and reopened.

  2. 10 min

    The author says the LINE session lasts about a day, so plan for a login at the start of each day or shift.

    Done when: The login command opened Chrome or Edge, you logged in to LINE OA Manager in that window, the terminal shows Logged in as with the list of OAs you can reach, and nobody typed a LINE password anywhere else.

  3. 30 min

    Done when: Each morning the admin asks which chats are waiting, summarize this chat and has anyone mentioned a refund, and keeps a tally of waiting chats found, slips read correctly, and answers that were wrong or incomplete.

  4. 20 min

    Done when: It is written down which replies may be sent from the AI app after the admin's OK (order status, opening hours, thank you for the slip) and which always stay with a person (refunds, complaints, anything about money that is not on the slip).

  5. 30 min

    Done when: Setup was rerun with allow send, a chat allowlist and the daily limit are set in the server env, Claude asked before the first send and showed the dry run, the test went to a test OA and is in the audit log. Nobody clicked Always allow.

Ticks are saved on this browser.

Download the kit (zip)

Starter prompt

Written from how the use case works and its sources. Replace the parts in square brackets.

You are helping me work our LINE Official Account inbox through the lineoa-cs tools. First list the chats waiting for a reply (needs_reply) in [OA name], newest first, one line each: customer name, what they asked, and whether they sent a slip or a photo. For any chat that mentions [refund, delivery delay, wrong item], open it and summarize the history in three lines. If a customer sent a payment slip, read the image and tell me the amount, date and bank you can see, and say clearly that you have not verified it. Then draft a polite Thai reply for each waiting chat and show all drafts to me together. Do not send anything: I will say OK per chat, and only then use send_message with a dry run first.

Risks and data

Data

Everything the admin can see in LINE OA Manager, Claude can now read and send to its provider: names, notes, tags and slips with account details. The author kept the server local with one person's session and no password stored; keep it that way, do not run it as a shared service, and tell staff that customer messages are untrusted input the tools already mark as such.

How it goes wrong

The LINE session expires about daily, so an unanswered morning question usually means log in again. Search covers only the 50 most recent chats, so an old complaint is invisible; the console endpoints are unofficial and can change; a send whose result is unknown is reported as uncertain rather than retried, and a slip read by the model is a reading, not a payment check. You notice when drafts repeat stale information or the audit log and the chat disagree; keep the OK per send with a person and never click Always allow.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Chat messages, customer names, profile notes and payment slips (with the sender's name and account details) leave LINE OA Manager and go to the AI app's provider for the summary; they are personal data under Thailand's PDPA. Keep the server on the CS person's own machine as the author designed it, limit the OA login to staff who already read these chats, and read your AI provider's data terms and LINE's terms before the first real run.

How the agent works

  1. It starts

    The CS person logs in to LINE OA Manager themselves in the browser window that the login command opens (email, QR or 2FA); the server keeps only the session cookie and never sees a password.

  2. The agent works

    From Claude Desktop or Claude Code the admin asks in plain words: which chats are waiting for a reply, summarize this customer's chat, has anyone mentioned a refund. The server answers through the console's own JSON API: the chat list filtered to needs reply, a chat's messages, a substring search that works for Thai over a local index of the 50 most recent chats and 200 messages each, the customer's profile with tags and notes, and the attachment a customer sent, returned as an image so Claude can read a payment slip or a screenshot. Claude gives a summary and a drafted reply, and every result carries a link that opens that chat in LINE OA Manager. Sending is off by default: once the team switches it on, a reply goes out as the logged in staff member only after a dry run and the human's OK in the AI app, limited to an optional chat allowlist and a daily cap of 50 sends, and every attempt is audit logged as length and hash, never the text.

  3. The result

    Reading never marks a chat as read, so a customer never sees read without an answer.

Worked example

This is a practitioner build, not a customer story: the open source repository lineoa-cs-mcp by Putthipong Soongsuwan, the name on the MIT licence (GitHub user Jamamaboy; first release 6 November 2026, latest version 0.2.2, badge status working MVP, built with Claude Code). The README's own framing: ask your AI app in plain words which LINE chats are waiting for a reply, what a customer wrote, or who mentioned a refund, and get a summary and a drafted reply back. Seven tools: auth_status, list_chats (ongoing, unread, needs_reply, all), read_chat, search_messages, get_user_profile, get_attachment (images rotated, shrunk to at most 1568 px and returned as image content so a vision model can read a slip; files over 32 MB refused) and send_message, which does not exist unless LINEOA_ALLOW_SEND is true. The Thai guides START.th.md (about 10 minutes on a Mac, with a double click start-mac.command for non developers) and USAGE.th.md give the questions to type and the tool each one calls. The author is candid: one server process is one staff member's session, the LINE session lasts about a day so the person logs in again each day or shift, sending files is not built, the live OA was used read only during development and sending was tested on the built in mock, and the server holds no LLM key, the AI app does the summarizing. No business is named as running it; treat it as a starting point you try on a test OA first.

The setup script registers the server in Claude Desktop and Claude Code (read only), and that is where the author tested it; it is a stdio MCP server, so other MCP clients may work, but we have not seen it, so none is listed. The LINE side is not the Messaging API but the LINE OA Manager console with the staff member's own session: the author says the endpoints were taken from open source projects and checked against a live OA, and LINE can change them without notice.

Join the Agent OS Club

Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.

Founding offer, ends 31 December 2026 or at member 100

Join the Agent OS Club

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-23

Related use cases

Members pick Video

A second agent checks every support answer

One support agent instead of one per topic: it works out the issue from hundreds of topics, loads the team's playbooks from a repository, drafts the answer, a peer review agent checks it is grounded in approved sources before the customer sees it, and anything that fails goes to an engineer with notes

Customer serviceEffort: A project
Copilot StudioDynamics 365 Customer ServiceAzure DevOps

A support team that builds one bot per topic ends up with a dozen narrow agents, each needing its own build and update, and a customer whose problem sits between two topics gets routed badly. The same team cannot afford a person to read every automated answer before it goes out, so either the bot answers unchecked or it answers almost nothing.

Members pick

Three chats at once, nothing dropped

An assistant inside a text support line that suggests vetted resources mid conversation and writes the handoff summary when a counselor's shift ends, with the counselor sending every message

Customer serviceEffort: A project
OpenAIAlso works with:ClaudeGemini

On a text line, a support desk or a member chat, each person needs the right resource for their situation and a clean handover when the shift changes. Staff lose minutes hunting for the link they know exists and writing notes for the next person, so they handle fewer conversations at once and new teammates take longer to get up to speed.

Answers for reps while the customer waits

A manufacturer's multi tab product and process spreadsheets converted to CSV, indexed with Azure AI Search and answered by a Copilot Studio agent, so service reps find the answer while the customer is still on the call instead of researching and calling back

Customer serviceEffort: About a week
Copilot StudioAzure AI SearchExcelAlso works with:ClaudeChatGPT

Service reps answer product and process questions from spreadsheets that have grown for years: many tabs, merged cells, one person who knows where things are. On a call the rep cannot find the row fast enough, promises to check and calls back, and the customer waits twice. AI agents read those spreadsheets badly too, so pointing a chatbot at the files does not fix it.