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
- Channel
- LINE OA Manager inbox
- Agent
- Claude with lineoa-cs tools
- Summary and drafted reply
- Tools
- Console JSON API, own session
- Local search index (SQLite)
- Slip returned as an image
- 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
- Admin asks which chats are waiting for a reply
- Server reads chats, profiles and slips from the console
- Claude summarizes each chat and drafts a reply
- Refund or slip involved? Admin opens the chat linkOnly sometimes
- Admin says OK per draft, or edits itHuman checkpoint
- Reply sent as the staff member, attempt logged
Setup
Total time: 1 h 50 min our estimate
- 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.
- 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.
- 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.
- 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).
- 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.
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.
How the agent works
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.
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.
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 ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://github.com/Jamamaboy/lineoa-cs-mcp
- https://raw.githubusercontent.com/Jamamaboy/lineoa-cs-mcp/main/README.md
- https://raw.githubusercontent.com/Jamamaboy/lineoa-cs-mcp/main/docs/USAGE.th.md
- https://raw.githubusercontent.com/Jamamaboy/lineoa-cs-mcp/main/docs/START.th.md
- https://raw.githubusercontent.com/Jamamaboy/lineoa-cs-mcp/main/LICENSE
Published: 2026-11-23