The problem
A LINE Shopping (MyShop) seller flips between the OA manager, the order list and the customer chat all day: check who has paid, print a label, paste a tracking number, confirm the cash on delivery, then work out what LINE will actually pay out after fees. Every step is a few taps, and the taps add up to the whole evening.
Architecture
- Channel
- MyShop orders, polled
- Customer chat on LINE
- Agent
- LINE OA MCP Ultimate
- Claude Cowork scheduled task
- Tools
- Parcel labels and tracking
- Settlement after fees
- Checkout links
- Human
- Owner confirms each shipment
- Owner confirms COD cash
Where the data stays: Orders stay in LINE Shopping; the MCP server and both keys sit in the config on your own computer or server.
Design flow
- Scheduled check lists new paid orders
- Agent posts order number, items and amount
- Owner checks the tracking number and says shipHuman checkpoint
- Label printed, order shipped, LINE tells buyer
- COD: marked paid once the cash arrivesOnly sometimes
Setup
Total time: 1 h 30 min our estimate
- 10 min
Done when: You have a long lived token from the Messaging API tab in the LINE Developers Console, stored like a password.
- 10 min
LINE Shopping must be switched on for the OA first. The key is a separate key from the channel token.
Done when: In oaplus.line.biz under Settings, API keys, an Admin has generated a key for the shop.
- 15 min
Settings, Developer, Local MCP servers, Edit Config: add the line entry next to your existing servers with LINE_CHANNEL_ACCESS_TOKEN and LINE_MYSHOP_API_KEY in its env block.
Done when: After a full restart, 'ดูสินค้าทั้งหมดในร้าน' returns your product list.
- 20 min
Done when: A scheduled task with the starter prompt runs every [15] minutes and a test paid order shows up with number, items and amount.
- 20 min
Done when: The label is printed, the order shows shipped with the tracking number you checked, and a COD order closes as completed only after you confirmed the cash.
- 15 min
Done when: The agent creates a link for the right variant ID and quantity, you paste it to the customer, and the paid order appears in the next check.
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 run my LINE Shopping store through the LINE OA MCP tools. Every [15] minutes, list orders with payment status paid since your last check and post the order number, customer name, items and amount. Never ship, cancel, delete or change a price without my explicit yes in this chat. When I write 'ship [order number] tracking [number]', generate the parcel label and mark the order shipped with that tracking number. For cash on delivery orders, mark paid only when I confirm the cash arrived. When I ask for a checkout link, find the variant ID for [product and size], create a link for the quantity I give and show it to me to paste. When I ask what an order pays out, show the settlement amount after fees. If a tool returns an error, show me the message and stop.
Risks and data
Data
Orders carry customer names, addresses and phone numbers, and whoever holds the keys runs your shop. Keep the channel token and MyShop key only in the MCP config, never in code, chats or git; an HTTP setup reachable beyond your own machine needs MCP_HTTP_TOKEN.
How it goes wrong
Shipping sends the customer a LINE message at once, so a wrong tracking number reaches them before you notice; check it before you say ship. Cancelling and deleting cannot be undone, a computer that is off misses the polling, and more than 50 requests a second or 1,000 a minute returns HTTP 429.
How the agent works
It starts
The owner generates a MyShop API key in LINE OA Plus (Settings, API keys, an Admin role is needed) and adds it to the open source LINE OA MCP Ultimate server configured in Claude Cowork or Claude Code; the 14 shopping tools then appear next to the 37 messaging tools.
The agent works
A scheduled task asks the agent every few minutes for orders with payment status paid since the last check (MyShop has no webhook, so the agent polls) and posts the new ones with order number, items and amount. For each one the owner says ship it with the tracking number: the agent generates the parcel label, marks the order shipped with that number, and LINE notifies the customer; for cash on delivery it marks the order paid only after the owner confirms the cash arrived, and the order closes as completed after both steps. Asked what an order pays out, it shows the settlement amount after LINE's commission instead of a guess. When a customer wants to buy in chat, the agent finds the product variant, creates a checkout link for the quantity, the owner pastes it into the chat, and the order is created when the customer pays.
The result
Cancelling an order or deleting a product needs a confirmation from the owner, and the guide tells owners to check the tracking number before confirming because shipping notifies the customer at once.
Worked example
The project's Thai MyShop guide walks through a shop that creates a Cofftail t-shirt at THB 320 with 50 in stock, sets it to on sale, then sells a size M in chat: the agent finds the variant, creates a checkout link for two pieces and the owner sends it to the customer. The README lists 51 tools (37 messaging, 14 shopping), a MyShop rate limit of 50 requests a second and 1,000 a minute, and credits a production field report from a seller whose HTTP setup failed until version 2.2.1 fixed it. The author, Dr. Wasin Treesinthuros, is listed as a LINE Certified Coach 2026; the project states it is not affiliated with LY Corporation. No sales figures are published, so measure your own evening saved.
The flow depends on the open source LINE OA MCP Ultimate server (MIT licence) and a MyShop API key; its README lists Claude Cowork, Claude Desktop, Claude Code, Cursor, Codex and ChatGPT desktop as hosts, so the chat side is interchangeable. The polling for new orders needs a host with scheduled tasks, or a cron job on your own server with the HTTP transport.
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/wasintoh/line-oa-mcp-ultimate
- https://raw.githubusercontent.com/wasintoh/line-oa-mcp-ultimate/main/README.md
- https://raw.githubusercontent.com/wasintoh/line-oa-mcp-ultimate/main/docs/myshop-guide-th.md
Published: 2026-11-05