Kỹ năng thương mại (commercial skill) dành cho OpenClaw, dùng để theo dõi hội thoại Pancake/Facebook và nhắc nhở đội sales khi khách hàng đang chờ phản hồi.
- Đọc dữ liệu hội thoại/tin nhắn từ Pancake
- Phát hiện yêu cầu mới nhất của khách hàng
- Kiểm tra xem sales đã trả lời chưa
- Gửi nhắc nhở theo 3 giai đoạn: 20 / 40 / 60 phút
- Chuyển giao giai đoạn 3 bằng cách đổi tag trên Pancake
- Nội dung nhắc nhở bằng tiếng Việt, gắn liền với tin nhắn thực tế của khách
- Đóng gói an toàn, không chứa bí mật hay dữ liệu khách hàng thật
Trước khi triển khai, agent cần yêu cầu các thông tin bắt buộc sau:
page_idcho mỗi trang cần theo dõipage_access_tokenhoặc Pancake API token- Bảng ánh xạ sales:
sale -> tag_id -> tài khoản nhận cảnh báo - Kênh nhận cảnh báo (Telegram / Slack / Discord / chat nội bộ)
- Lịch chạy cron
- Múi giờ hoạt động
Tùy chọn (khuyến nghị):
- Giờ làm việc
- Phong cách thương hiệu / tuỳ chỉnh nội dung nhắc nhở
- Mẫu tin nhắn tự động / nhiễu cần bỏ qua
- Quy tắc nhận diện ý định theo ngành
SKILL.md— hướng dẫn chính cho OpenClawREADME.md— tổng quan trên GitHubinstall.md— hướng dẫn cài đặt/chia sẻONBOARDING_TEMPLATE.md— checklist onboarding khách hàngINPUT_FORM.md— form thông số triển khai bắt buộcRELEASE_NOTES.md— tóm tắt phiên bảnLICENSE— giấy phép MITreferences/— quy tắc nghiệp vụ, kiến trúc, hướng dẫn cài đặt, bảo mật, checklisttemplates/config.pages.example.json— file cấu hình mẫu với placeholdertemplates/pancake_monitor_template.py— template triển khai sạch.gitignore— ngăn commit các file bí mật/trạng thái/log
- Cài đặt/copy skill vào đường dẫn skill của OpenClaw.
- Cho agent OpenClaw đọc
SKILL.md. - Agent sẽ yêu cầu người dùng cung cấp các thông số triển khai còn thiếu.
- Tạo file cấu hình riêng từ
templates/config.pages.example.json. - Mở rộng
templates/pancake_monitor_template.pythành script production. - Chạy test/debug trước, sau đó gắn cron.
{
"pages": {
"example-page": {
"page_id": "YOUR_PAGE_ID",
"page_access_token": "YOUR_PAGE_ACCESS_TOKEN"
}
},
"staff": {
"SALE_A": {
"telegram": "@sale_a",
"tag_id": 101,
"name": "Sale A"
}
}
}- Giữ các bí mật thật bên ngoài repository này.
- Nên sử dụng biến môi trường hoặc secret manager cho production.
- Xem lại
references/setup-guide.mdvàreferences/deployment-checklist.mdtrước khi bàn giao.
Repo này chỉ an toàn để công khai khi không chứa:
- Token Pancake thật
- Page ID thật
- Đoạn hội thoại khách hàng thật
- Log thật
- File trạng thái thật
- ID nhóm/chat nội bộ thật
- Tên tài khoản nội bộ thật (trừ khi được phê duyệt)
GitHub-ready commercial skill for OpenClaw that monitors Pancake/Facebook conversations and reminds sales teams when customers are waiting for a reply.
- Reads Pancake conversation/message data
- Detects the latest customer request
- Checks whether sales already replied
- Sends reminders in 3 sequential stages: 20 / 40 / 60 minutes
- Performs stage-3 handoff by switching Pancake tags
- Uses Vietnamese reminder wording tied to the customer's actual message
- Ships as a public-safe package with no real secrets or customer data
Before deployment, the agent should ask for these required inputs:
page_idfor each monitored pagepage_access_tokenor Pancake API token- sales mapping:
sale -> tag_id -> alert destination account - alert destination (Telegram / Slack / Discord / internal chat)
- cron schedule
- operating timezone
Optional but recommended:
- working hours
- brand voice / reminder wording preferences
- noise / auto-message patterns to ignore
- industry-specific intent rules
SKILL.md— main skill instructions for OpenClawREADME.md— GitHub-facing overviewinstall.md— installation/share flowONBOARDING_TEMPLATE.md— customer onboarding checklist/formINPUT_FORM.md— required deployment parameters formRELEASE_NOTES.md— version summaryLICENSE— MIT licensereferences/— business rules, architecture, setup, security, checklisttemplates/config.pages.example.json— example config with placeholderstemplates/pancake_monitor_template.py— clean implementation template.gitignore— prevents committing secrets/state/logs
This repo is safe to publish only if it does not include:
- real Pancake tokens
- real page IDs
- real customer transcripts
- real logs
- real state files
- real internal group/chat IDs
- real internal usernames (unless explicitly approved)
- Install/copy the skill into an OpenClaw skill path.
- Let the downstream OpenClaw agent read
SKILL.md. - The agent should request the missing deployment inputs from the user.
- Create a private config from
templates/config.pages.example.json. - Extend
templates/pancake_monitor_template.pyinto a production script. - Run tests/debug first, then attach cron.
{
"pages": {
"example-page": {
"page_id": "YOUR_PAGE_ID",
"page_access_token": "YOUR_PAGE_ACCESS_TOKEN"
}
},
"staff": {
"SALE_A": {
"telegram": "@sale_a",
"tag_id": 101,
"name": "Sale A"
}
}
}- Keep real secrets outside this repository.
- Prefer env vars or a secret manager for production.
- Review
references/setup-guide.mdandreferences/deployment-checklist.mdbefore handoff.