The problem
The owner opens two seller centres every morning, exports two spreadsheets and adds them up by hand to learn what sold, which SKUs are running low and which orders are still waiting to ship. On a busy day the check is skipped and a ready to ship order sits past the deadline.
Architecture
- Channel
- 07:00 daily run
- Shopee and Lazada APIs
- Agent
- Read only order agent
- Claude writes the summary
- Tools
- Google Sheet with summary tab
- Team LINE group
- Human
- Owner ships and restocks
Where the data stays: Only order ID, SKU, quantity, amount and status go to your sheet; buyer details stay in the seller centres.
Design flow
- 07:00 pull the last 24 hours of orders
- One row per order line in Google Sheets
- List orders still Ready to Ship
- Flag SKUs whose 7 day sales exceed stockOnly sometimes
- Summary posted to the team's LINE group
- Owner ships and restocks in the seller centresHuman checkpoint
Setup
Total time: 7 h 25 min our estimate
- 3 h
Shopee's route: developer authority, authentication, an app, testing, then seller authority. Lazada access tokens expire, so store the refresh token and renew it.
Done when: You hold a Shopee partner ID and key, a Lazada app key and secret, and the shop has authorised both apps.
- 20 min
Done when: One orders tab with marketplace, order ID, SKU, quantity, amount and status, a daily summary tab, and your stock count per SKU.
- 1 h 30 min
The pyshopee client shows get_order_list with a create time window and get_order_by_status for READY_TO_SHIP.
Done when: The last 24 hours of Shopee orders land one row per order line and the count matches the seller centre.
- 1 h 30 min
The lazada-php SDK shows GetOrders with created_after and status filters, and GetOrderItems for the lines, in the th region.
Done when: Lazada orders created after the same cut off appear in the same columns and match the Lazada seller centre.
- 45 min
Done when: The team's LINE group or Slack gets one message listing orders still Ready to Ship and SKUs whose seven day sales exceed stock, with no buyer details.
- 20 min
Done when: Seven mornings in a row the summary arrives and its totals match both seller centres.
Ticks are saved on this browser.
Risks and data
Data
Order data includes buyer names, phone numbers and addresses. Write only order ID, SKU, quantity, amount and status to the sheet, keep the API keys and tokens out of the sheet and the chat, and give the agent read access only.
How it goes wrong
An expired Lazada token or a changed API returns no orders, and a cut off in the wrong time zone drops or doubles a day. The summary then shows zero or totals that do not match the seller centres, so compare the counts for the first week, and treat a missing morning message as a failed run.
How the agent works
It starts
At 07:00 the agent calls the Shopee Open Platform order list for the last 24 hours and the Lazada Open Platform orders created after the same cut off, using the shop's own API credentials.
The agent works
It normalises both into one row per order line (marketplace, order ID, SKU, quantity, amount, status) and appends them to a Google Sheet that has a daily summary tab. It then lists orders still in Ready to Ship on either platform and any SKU whose seven day sales exceed the stock count the owner keeps in the sheet, and posts that summary to the team's LINE group or Slack.
The result
The agent only reads from the marketplaces; stock and price changes stay with the owner in the seller centres.
Worked example
Both marketplaces have open source clients that show the calls: the pyshopee Python client exposes get_order_list with a create time window and get_order_by_status for READY_TO_SHIP, SHIPPED and COMPLETED, and the lazada-php SDK exposes GetOrders with created_after and status filters and supports the th and sg regions. A newer MCP server for Shopee sellers, sellabot-mcp, adds a read only mode and previews any high impact action for the seller's explicit approval. None of these publishes sales figures, so the numbers are yours to collect.
The sources cover the Shopee and Lazada APIs, not the model, so OpenAI or Gemini can write the messages as well as Claude.
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/erickong0505/python-shopee
- https://github.com/EcomPHP/lazada-php
- https://github.com/RextonWong/sellabot-mcp
Published: 2026-10-16