Packs / forms-and-surveys-public
survey-results-rollup
Summarise survey answers: counts per option and average ratings per question, then export
Install
logicpacks pack use forms-and-surveys-public/survey-results-rollupget_pack forms-and-surveys-public/survey-results-rollupThe 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-referenceformbricks - 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
Summarise survey answers: counts per option and average ratings per question, then 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
- Load answers as one row per response x question (Formbricks CSV export reshaped).
- Counts per option for choice questions; averages for rating questions.
- Export for the report.
Edge cases
- Multi-select answers: one row per selected option.
Don'ts
- Don't report a percentage without the n.
Check
lp pack check forms-and-surveys/survey-results-rollup runs outcome/checks.yaml.