Telegram Contract Ops
Automate Vietnamese contract creation and eID intake via Telegram by parsing inputs, OCRing ID images, generating .docx contracts, and routing workflows by g...
Latest: v1.0.1
Add troubleshooting, Windows/macOS docs, Windows env examples, wrappers, and updated deployment guidance
Telegram Contract Ops
Use this skill for the combined Plan B + Plan C workflow.
What this skill covers
- Parse standardized Telegram text blocks into contract data
- Generate
.docxcontracts from a company template - Run Telegram bot flows for
/mauhopdong,/cccd,/cccd_debug - OCR Vietnamese electronic ID screenshots and convert them into Plan B input blocks
- Route contract behavior by Telegram group
Current design boundary
Plan B
- Input: structured Telegram-style
KEY: VALUEblock - Output:
.docxcontract file
Plan C
- Input: 1 screenshot of Vietnamese electronic ID from app
- OCR output fields:
TENNGAY_SINHCCCDNGAY_CAPTHUONG_TRUCHO_O_HIEN_TAIwhen available
- Hardcode:
NOI_CAP = CTCCS QLHC VTTXH
- User confirms/edits block before final contract generation
Keep these outside the packaged skill
- Telegram bot token
- group chat IDs
.env.telegram.env.telegram.groups- OCR debug session artifacts
- state files and logs
Included references
references/architecture.md- flow overview and routingreferences/deployment.md- migration/install checklistreferences/input-template.md- canonical Telegram input blockreferences/clawhub.md- publish/install/update commands via ClawHubreferences/troubleshooting.md- common runtime and routing issuesreferences/windows.md- Windows-specific guidancereferences/macos.md- macOS-specific guidance
Included assets/scripts
Read these only when needed:
scripts/for generator/parser/bot helpersassets/for original.docxtemplateassets/windows/for Windows example env files and quick-start PowerShell wrapper
