What it does
Typeform collects the 0 to 10 answers well, but the score itself is arithmetic you do in a spreadsheet: promoters minus detractors, as percentages, over a window that has to stay the same every time. And the reasons sit in a follow-up question nobody reads in bulk.
Every Monday the agent reads the last 30 days of completed responses, works out NPS, and groups the detractors' comments into a few themes with an example of each. Founders get the number and its direction, product and support leads get the reasons behind it.
How it works
1Find the NPS question
Call
GET https://api.typeform.com/forms/{form_id}and find the field withtype: "nps"(or a 0 to 10opinion_scale), plus the follow-uplong_textfield that asks why. Keep both field IDs.2Read 30 days of responses
Call
GET /forms/{form_id}/responseswithsinceset to 30 days ago,page_size=1000andresponse_type=completed, paging withbefore. Each answer to the NPS field hastype: "number"and anumberfrom 0 to 10.- 3
3Work out the score
Promoters answered 9 or 10, passives 7 or 8, detractors 0 to 6. NPS is the percentage of promoters minus the percentage of detractors, from -100 to 100. Save each Monday's score so the tile has 8 weeks of history.
- 4
4Read what detractors said
Group the detractors' follow-up answers into 3 to 5 themes, count each, and quote one short example per theme without names or emails.
Post it to the board
With
BRIEFKIN_TOKENset, the agent sends the result as one card that updates in place every run. Without it, you get the report in the chat.
Install and run it
Pick your agent, where the data comes from and how to schedule it; the commands below follow.
Install the skill
One command. It puts the SKILL.md in ~/.claude/skills and in ~/.agents/skills, which Codex, Cursor, Gemini CLI, Copilot CLI and OpenCode read too.
shell
curl -fsSL https://briefkin.dev/skills/typeform-nps-score/install | shRun it
Ask Claude Code:
prompt
Run the typeform-nps-score skillOr paste the prompt instead of installing:
prompt
Using the Typeform Responses API for form <form_id>, read completed responses from the last 30 days. From the 0 to 10 NPS question, count promoters (9-10), passives (7-8) and detractors (0-6) and work out NPS (percent promoters minus percent detractors). Group the detractors' answers to the follow-up question into 3 to 5 themes with a count and one short anonymous quote each. Compare with last week's score if you have it, and end with the theme to act on first.Put it on a schedule
Mondays at 9:00, from cron on any machine where Claude Code is signed in:
crontab
0 9 * * 1 claude -p "Run the typeform-nps-score skill"Add it with
crontab -e. A laptop asleep at that time runs it when it wakes if you use launchd or Task Scheduler instead; GitHub Actions works for the API route.Send it to your board
Connect Briefkin once with
curl -fsSL https://briefkin.dev/install | shand every run lands on your board as a stat tile. How setup works
View the SKILL.mdRaw file
SKILL.md---
name: typeform-nps-score
description: "Every Monday: your NPS from the last 30 days of Typeform responses, the split of promoters and detractors, and what the detractors said. Use when the user asks for this, or when it runs on a schedule."
---
# Typeform NPS score
Every Monday: your NPS from the last 30 days of Typeform responses, the split of promoters and detractors, and what the detractors said.
Typeform collects the 0 to 10 answers well, but the score itself is arithmetic you do in a spreadsheet: promoters minus detractors, as percentages, over a window that has to stay the same every time. And the reasons sit in a follow-up question nobody reads in bulk.
Every Monday the agent reads the last 30 days of completed responses, works out NPS, and groups the detractors' comments into a few themes with an example of each. Founders get the number and its direction, product and support leads get the reasons behind it.
## Two ways to get the data
Use the API or MCP route when you have an MCP server, a CLI or an API token for the app. Otherwise, if you can drive a browser the user is signed in to (Claude in Chrome, a Playwright or Chrome DevTools MCP server), use the browser route. Say which one you used.
## Route A: API or MCP server
### What you need
- A Typeform personal access token with `forms:read` and `responses:read` in `TYPEFORM_TOKEN`.
- The form ID (from the form's URL), and which question is the NPS one if the form has several scales.
If something is missing, say what and stop; do not invent numbers.
### Steps
1. **Find the NPS question** (Typeform): Call `GET https://api.typeform.com/forms/{form_id}` and find the field with `type: "nps"` (or a 0 to 10 `opinion_scale`), plus the follow-up `long_text` field that asks why. Keep both field IDs.
2. **Read 30 days of responses** (Typeform): Call `GET /forms/{form_id}/responses` with `since` set to 30 days ago, `page_size=1000` and `response_type=completed`, paging with `before`. Each answer to the NPS field has `type: "number"` and a `number` from 0 to 10.
3. **Work out the score**: Promoters answered 9 or 10, passives 7 or 8, detractors 0 to 6. NPS is the percentage of promoters minus the percentage of detractors, from -100 to 100. Save each Monday's score so the tile has 8 weeks of history.
4. **Read what detractors said**: Group the detractors' follow-up answers into 3 to 5 themes, count each, and quote one short example per theme without names or emails.
## Route B: the browser
### What you need
- Signed in to Typeform as the form owner or a workspace member who can see results; a viewer who can only edit the form will not see the Responses tab.
If something is missing, say what and stop; do not invent numbers.
### Steps
Start at https://admin.typeform.com/. The user is signed in already; never type passwords or codes, and ask if a sign-in page appears.
1. **Open the form's results**: Pick the workspace, open the NPS form and click **Results** at the top, then the **Summary** tab. Use the date filter above the summary and set it to the last 30 days.
2. **Read the score**: Scroll to the Net Promoter Score question. The summary shows the score and the split of promoters, passives and detractors with their counts. Note all four and the number of responses.
3. **Read what detractors said**: Open the **Responses** tab with the same 30-day range and filter to completed responses. Sort or scan by the NPS answer and read the follow-up answer of every response scored 0 to 6.
4. **Export when there are many**: If the table holds more than a hundred responses, use **Download** to get a CSV of the filtered responses and read the score and follow-up columns from it instead.
5. **Group the reasons**: Sort the detractors' comments into 3 to 5 themes with a count each and one short quote per theme, without names or emails. Compare the score with last week's if you saved it.
Note: The Summary tab counts completed responses by default; the Responses tab can also show partial ones, so keep its filter on completed. If the score question is an opinion scale rather than Typeform's NPS question type, the summary shows a distribution instead of a score and you work it out from the 0 to 10 counts.
## The report
- **NPS** over the last 30 days, with the change on last week and an 8-week trend.
- **Promoters, passives and detractors** as percentages and counts.
- **Detractor themes**, each with a count and one short quote.
- One line on the theme to act on first.
## Post it to Briefkin
When `BRIEFKIN_TOKEN` is set, or `~/.config/briefkin/env` exists (the installer from https://briefkin.dev/docs writes it), also send the result to the user's Briefkin board as one card. Keep the `item_key` the same on every run so the card updates in place, use a new `event_id` per run, and put today's real numbers in place of the example ones. If the request fails, say so once and carry on.
```bash
[ -n "${BRIEFKIN_TOKEN:-}" ] || . ~/.config/briefkin/env
curl -sS -X POST "${BRIEFKIN_URL:-https://briefkin.dev}/v1/events" \
-H "authorization: Bearer $BRIEFKIN_TOKEN" \
-H "content-type: application/json" \
-d @- <<'JSON'
{
"v": 1,
"event_id": "typeform-nps-score/<date of this run, e.g. 2026-10-16>",
"item_key": "typeform-nps-score",
"project": "Acme",
"source": "Typeform NPS score skill",
"kind": "metric",
"title": "NPS 42 over the last 30 days",
"metric": {
"label": "NPS (30 days)",
"value": 42,
"better": "higher",
"period_start": "<start of the period, ISO 8601>",
"period_end": "<end of the period, ISO 8601>"
},
"glance": [
{
"type": "Grid",
"props": {
"columns": 4
},
"children": [
{
"type": "Stat",
"props": {
"label": "Promoters",
"value": 54,
"unit": "%",
"tone": "ok"
}
},
{
"type": "Stat",
"props": {
"label": "Passives",
"value": 34,
"unit": "%"
}
},
{
"type": "Stat",
"props": {
"label": "Detractors",
"value": 12,
"unit": "%",
"tone": "bad"
}
},
{
"type": "Stat",
"props": {
"label": "Responses",
"value": 250
}
}
]
}
],
"widget": [
{
"type": "Table",
"props": {
"columns": [
"Detractor theme",
"Count",
"Example"
],
"align": [
"left",
"right",
"left"
],
"rows": [
[
"Slow support replies",
11,
"\"Waited three days for an answer about billing.\""
],
[
"Missing integrations",
8,
"\"No way to sync with our accounting tool.\""
],
[
"Price after the increase",
7,
"\"Too expensive for a team of four now.\""
],
[
"Other",
4,
""
]
]
}
},
{
"type": "Callout",
"props": {
"text": "NPS slipped 2 points from last week's 44. Slow support replies is the biggest detractor theme, 11 of 30.",
"tone": "warn"
}
}
],
"size": "md"
}
JSON
```
Widgets come from the Briefkin catalog (https://briefkin.dev/v1/catalog). Without a token, just give the user the report.
Set `period_start` and `period_end` to the window the number covers: the tile names it from them ("Last 7 days", "Today", "This month"). For a count right now (open items, a balance), send `"period_label": ""` so no period shows; for another name, send it as `period_label` (at most 24 characters).
## Run it on a schedule
Suggested: Mondays at 9:00 (`0 9 * * 1`). From cron, with the agent signed in on that machine:
```bash
0 9 * * 1 claude -p "Run the typeform-nps-score skill"
# Codex: codex exec, Gemini CLI: gemini -p, Copilot CLI: copilot -p, OpenCode: opencode run
```
Or use the agent's own scheduler (Claude Code routines, Codex automations, Claude or ChatGPT scheduled tasks): https://briefkin.dev/skills/typeform-nps-score#schedule
Source: https://briefkin.dev/skills/typeform-nps-score
What your agent needs
A Typeform personal access token with
forms:readandresponses:readinTYPEFORM_TOKEN.The form ID (from the form's URL), and which question is the NPS one if the form has several scales.
Connecting Typeform
- Typeform MCP server, Typeform's official remote server at
https://api.typeform.com/mcp(streamable HTTP only), signed in with OAuth. Typeform offers it as a connector in Claude and ChatGPT; in Claude Code,claude mcp add --transport http typeform https://api.typeform.com/mcp, and the same URL in Codex and Cursor. Its tools cover forms, automations, contacts and insights (insights-public_aggregate,insights-public_timeseriesand others, which needinsights:read). Full response rows and exports aren't available over MCP, so use the API for those, and EU-hosted accounts use different endpoints (docs). - API with a personal access token. In Typeform, open Account > Personal tokens, generate a token with
forms:readandresponses:read, store it inTYPEFORM_TOKEN, and send it asAuthorization: Bearer.
Those two read scopes cover every report here; leave out the write scopes, which can change forms or delete responses.
Questions
Why a 30-day window and not just this week?
NPS from a few dozen answers swings by ten points on luck alone. A rolling 30 days, reported weekly, smooths that out while still moving when something really changes. If you get hundreds of responses a week, ask for a 7-day window instead and keep it fixed.
Are partial responses counted?
No. The skill asks for completed responses only, so someone who answered the score but abandoned the form is left out. Typeform can also take a few minutes to make the newest responses available, which doesn't matter for a 30-day score.
Do I need Briefkin to use the Typeform NPS score skill?
No. The skill runs with your own agent and gives you the report in the chat. With a Briefkin token set, each run also posts it to your board as a stat tile, so you can glance at it instead of asking again.
Which agents can run it?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, Windsurf and Amp all read SKILL.md files. The install command puts it in ~/.claude/skills and ~/.agents/skills, where they look. ChatGPT, the Claude app and Grok take the prompt instead. Pick your agent under "Install and run it" and the commands change to match.
Can it work without an API or MCP server, from my browser?
Yes. Switch the data source to "Your browser" and the steps change to the Typeform pages themselves: the agent opens admin.typeform.com in a browser you are signed in to and reads the numbers off the page. Claude Code, Codex, Cursor, Claude app and ChatGPT can drive a browser out of the box; Gemini CLI, Copilot CLI and OpenCode need a Playwright or Chrome DevTools MCP server first. It is slower than the API and needs you signed in, so it suits a report you run by hand or from a scheduler on your own computer.