Packs / helpdesk-and-support-public
ticket-flow
Run a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export
Install
logicpacks pack use helpdesk-and-support-public/ticket-flowget_pack helpdesk-and-support-public/ticket-flowThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
stdlib-referencezammad-or-chatwootsaas - Checks: 2 in
outcome/checks.yaml - Code:
refflow.pyschema.json - Tools: python3, docker
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Run a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export. Our reference flow (code/refflow.py, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.
Steps
- Model the ticket in
code/schema.json: channels, priorities, statuses and the allowed transitions. - Run
python3 code/refflow.py scenario code/schema.json outcome/fixtures/scenario.json: create, reject bad input, assign, solve, list, SLA, export. - Mirror the same statuses and SLA targets (urgent 1 h, high 4 h, normal 8 h, low 24 h first response) in Zammad/Chatwoot.
- Export weekly:
refflow.py export ... csvor the app's report export; check rows = tickets in the period.
Edge cases
- A solved ticket can be reopened; a closed one cannot (create a follow-up).
- SLA counts wall-clock hours; business-hours SLAs need a calendar.
Don'ts
- Don't put customer phone numbers or emails in exports that leave the desk.
- Don't skip states (open -> closed); the audit trail needs them.
Check
lp pack check helpdesk-and-support/ticket-flow runs outcome/checks.yaml.