简介
通过 ScanWow iOS 应用将手机高质量 OCR 扫描实时同步至 OpenClaw 智能体工作区,支持安全 API 导出。
原始描述
Sync your OpenClaw agent with the ScanWow iOS app. Receive high-quality OCR scans from your phone directly into your agent's workspace via a secure webhook.
通过你的 Agent 添加
安装目录:scanwow-sync/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: scanwow-sync description: Sync your OpenClaw agent with the ScanWow iOS app. Start an HTTP webhook to receive high-quality OCR scans directly from your phone into your agent's workspace. metadata: {"clawdbot":{"emoji":"📸"}}
ScanWow Sync
Connect your OpenClaw agent to your iPhone's camera using the ScanWow iOS app. Scan documents on your phone, let AI extract the text, and beam it instantly to your agent's workspace using Secure API Export.
Setup Instructions
- Start a Webhook Server on your OpenClaw host (or through a reverse proxy). You can use Python, Node, or netcat. Here is a simple Python webhook to save incoming scans:
# save_scans.py
from http.server import HTTPServer, BaseHTTPRequestHandler
import json
import os
TOKEN = "YOUR_SECRET_TOKEN"
class ScanHandler(BaseHTTPRequestHandler):
def do_POST(self):
auth = self.headers.get("Authorization")
if auth != f"Bearer {TOKEN}":
self.send_response(401)
self.end_headers()
return
content_len = int(self.headers.get('Content-Length', 0))
post_body = self.rfile.read(content_len)
data = json.loads(post_body)
# Save the OCR text
filename = f"scan_{data.get('id', 'doc')}.md"
with open(filename, 'w') as f:
f.write(data.get('text', ''))
print(f"✅ Saved scan: {filename}")
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.end_headers()
self.wfile.write(b'{"success":true}')
print("Listening for ScanWow scans on port 8000...")
HTTPServer(('', 8000), ScanHandler).serve_forever()
-
Run the server:
python3 save_scans.py(Ensure port 8000 is accessible from the internet, e.g., using ngrok, Cloudflare Tunnels, or your public IP) -
Configure the ScanWow App
- Open ScanWow on your iOS device
- Tap the Settings gear ⚙️
- Go to Secure API Export
- Enter your public Endpoint URL (e.g.,
https://your-server.com/api/scan) - Enter your Token (
YOUR_SECRET_TOKEN) - Turn it ON
Payload Format
When you capture a document and save it in ScanWow, it will automatically send a POST request with the following JSON:
{
"id": "uuid-string",
"text": "Extracted document text...",
"confidence": 0.98,
"pages": 1,
"timestamp": 1708531200000,
"isEnhanced": true
}
Now any scan you take on your phone will appear magically in your OpenClaw agent's workspace!
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。