OpenClaw Create New Skills : LINE - TyphoonOCR - Google Sheets
OpenClaw Create New Skills :
LINE - TyphoonOCR - Google Sheets
ทดลองสร้าง Skills ใหม่ ให้กับ OpenClaw
โจทย์ หรือ ความต้องการ
- ส่งภาพ Slip ใบเสร็จ ผ่าน LINE
- แล้วให้ TyphoonOCR สกัดข้อความออกมา
- เช็คว่าเป็น ใบเสร็จ หรือไม่ ให้ confirm กับผู้ใช้งาน
- Save เข้า Google Sheets
หาข้อมูล ด้วย AI ( ChatGPT )
- ใช้ openclaw channel ด้วย Line messaging api. สร้าง new skill สำหรับ รับรูป จาก chat ทำอย่างไร?
https://chatgpt.com/s/t_6a3c6c7a07c4819191206a2ee0a0252d
- สร้าง Project เต็มพร้อมใช้งานให้เลย
https://chatgpt.com/s/t_6a3c6e2304288191942f5fbd621cf28b
สร้าง Prompt เพื่อ สร้าง Skills ใน OpenClaw
I've created a new skill file for line-receipt-ocr in workspace.
~/workspace/skills/line-receipt-ocr/
├── SKILL.md
├── references/
│ ├── line-api.md
│ └── typhoon-ocr.md
└── scripts/
├── process_receipt.py
└── requirements.txt
Step 1. Create Trigger for receive image from LINE Messaging API
references/line-api.md
Step 2. Use Typhoon OCR API
references/typhoon-ocr.md
Step 3. Analyze OCR text.
Prompt
Classify document type:
1. Receipt
2. Invoice
3. General Image
4. Other
Return JSON only.
{
"document_type":"",
"confidence":0.0
}
result
{
"document_type":"receipt",
"confidence":0.96
}
Step 4. LLM get Test info
Prompt
Extract expense information.
Return JSON only.
{
"store_name":"",
"date":"",
"total_amount":0,
"vat":0,
"payment_method":"",
"category":"",
"items":[]
}
result
{
"store_name":"7-Eleven",
"date":"2026-06-20",
"total_amount":145.00,
"vat":9.49,
"payment_method":"PromptPay",
"category":"Food"
}
Step 5. User approve
Don't write in Google Sheets.
inform me if I found the receipt.
shop : 7-Eleven
date : 20/06/2026
total : 145 บาท
confirm?
[Confirm] [Edit] [Reject]
Step 6. Wait Confirm.
OpenClaw Event for confirm ( 10 min timeout then reject )
Step 7. write Google Sheet
references/google-sheet-schema.md
OpenClaw call Google Sheets API
add
sheet.append_row([
date,
store,
amount,
vat,
category,
ocr_text
])
Step 8. if general image
such as
person
product
Screenshot
Workflow not write in Google Sheet but save image to Google Drive
Step 9. Upload Google Drive
create Folder
Uploads/
2026/
06/
OpenClaw call Google Drive API upload image file and Metadata
{
"filename":"IMG_001.jpg",
"type":"general_image",
"uploaded_by":"user123"
}
Step 10. Confirm to Upload to Drive
Do you want to save in Google Drive or not?
[Confirm Upload] [Cancel]
when Confirm then Upload
Check that step by step to make it work for new skills.
Update to V2
Change GOOGLE_SERVICE_ACCOUNT_JSON to gog skill
ใช้ VS code ดู Code folder ทั้งหมด
refernces/line-api.md
ความคิดเห็น
แสดงความคิดเห็น