The AgentivUse cases

Operations · An afternoon · Thailand

Run your LINE Shopping store from a chat

An agent that watches your LINE Shopping orders, prints parcel labels, marks cash on delivery as paid and sends checkout links in chat, from Claude through an MCP server

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

  1. Channel
    • MyShop orders, polled
    • Customer chat on LINE
  2. Agent
    • LINE OA MCP Ultimate
    • Claude Cowork scheduled task
  3. Tools
    • Parcel labels and tracking
    • Settlement after fees
    • Checkout links
  4. 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

  1. Scheduled check lists new paid orders
  2. Agent posts order number, items and amount
  3. Owner checks the tracking number and says shipHuman checkpoint
  4. Label printed, order shipped, LINE tells buyer
  5. COD: marked paid once the cash arrivesOnly sometimes

Setup

Total time: 1 h 30 min our estimate

  1. 10 min

    Done when: You have a long lived token from the Messaging API tab in the LINE Developers Console, stored like a password.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Download the kit (zip)

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.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Orders carry customer names, addresses and phone numbers. The MCP server runs on your own computer or server, so keep the MyShop API key out of chats, code and git as the guide says, do not paste order details into other tools, and tell customers in the shop's privacy notice that order handling is assisted by software.

How the agent works

  1. 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.

  2. 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.

  3. 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 Club

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

Sources

Published: 2026-11-05

Related use cases

Part numbers for 1,000 products, one afternoon

ChatGPT builds the part numbering system for an 86 year old salvage yard's more than 1,000 products in one afternoon, exports it to Excel as part number and category ID per row, and answers specification and material questions while the customer waits at the counter

OperationsEffort: An afternoon
ChatGPTExcelAlso works with:ClaudeGemini

A yard, a workshop or a shop that grew over decades has more than a thousand items that everyone knows by sight and nobody can find on paper. A proper numbering system has been on the list for years and keeps being postponed, because it looks like weeks of work, so quotes, stock counts and reorders all run on memory.

Every crop since 1971, searchable

ChatGPT as the farm's field notebook: a handwritten crop ledger kept since 1971 digitized and made searchable, loads logged by voice from the combine, a stressed plant diagnosed from a photo, and the owner confirming anything that matters with her father

OperationsEffort: An afternoon
ChatGPTAlso works with:Claude

In a family business the operating record lives in the founder's handwriting: a ledger of every crop, field and season, and a lifetime of judgment about what went wrong and why. The next generation taking over cannot search it, and the day to day log of loads, repairs and water use is kept on scraps or not at all, because hands are on a steering wheel.

Your whole day in one morning report

A ChatGPT report template employees run first thing in the morning that pulls their day from Gmail, Google Calendar, Sheets, Drive, Asana, Slack and QuickBooks

OperationsEffort: An afternoon
ChatGPTGmailGoogle Calendar+3Also works with:Claude

A small team starts every day by opening the inbox, the calendar, the task board, Slack and the accounting app, and stitching the picture together by hand. The gathering takes the first hour, the picture is never complete, and the thing that mattered most is often in the one tool nobody opened.