Segment Typeform NPS into MailerLite, alert detractors in Slack
Every new NPS response lands in MailerLite with the right promoter, passive, or detractor group, and your CS team gets a same-day Slack ping for detractors.
Build a code workflow that routes every new Typeform NPS or feedback survey response into MailerLite with deterministic segmentation, and pings a Slack channel for any detractor.
Trigger: Typeform webhook. Use Typeform's Create or Update Webhook operation to register the workflow's incoming URL against the survey form, so the workflow runs whenever a new response is submitted.
From the webhook payload, extract three things: the respondent email, the NPS score (the numeric answer), and the free-text comment (the follow-up text answer). Also capture the response submitted_at timestamp as the survey date.
Step 1. Call MailerLite's Create or Update Subscriber with the email. Pass custom fields for nps_score, nps_comment, and survey_date. This upserts on email, so repeat respondents update in place instead of duplicating.
Step 2. Bucket the score deterministically: 9 or 10 is promoter, 7 or 8 is passive, 6 or below is detractor. Then call MailerLite's Assign Subscriber to Group with the matching group ID so downstream MailerLite automations (thank-you for promoters, win-back for detractors) fire correctly. The three group IDs should be configurable inputs on the workflow.
Step 3. If the bucket is detractor, call Slack's Send a Message into a customer success channel. The message should include the email, the score, and the verbatim comment, formatted clearly so a CSM can read it at a glance and reach out the same day. The Slack channel ID should also be a configurable input.
Promoters and passives should not produce a Slack message; they are handled entirely by the MailerLite automations attached to their group.
Keep the code path strictly deterministic: no LLM calls, no scoring agent. The score-to-bucket mapping, the field mapping, and the routing rule are all fixed logic.
Additional information
What does this prompt do?
- Watches your Typeform NPS or feedback survey and runs the moment a new response is submitted.
- Saves the respondent in MailerLite with their NPS score, written comment, and survey date attached to their profile.
- Drops them into the right group automatically: promoter for 9 or 10, passive for 7 or 8, detractor for 6 and below, so your existing follow-up campaigns fire correctly.
- Sends a Slack message to your customer success channel for every detractor with their email, score, and comment so someone can reach out the same day.
What do I need to use this?
- A Typeform account with an NPS or feedback survey already running.
- A MailerLite account, with three subscriber groups set up for promoters, passives, and detractors.
- A Slack workspace and the channel you want detractor alerts to land in.
How can I customize it?
- Change the score buckets if you use a different rubric, for example splitting passives or only alerting on scores of 0 to 3.
- Swap the Slack channel, or send a direct message to a specific CSM instead of posting to a shared channel.
- Add or rename the custom fields saved in MailerLite, for example mapping a verbatim quote, source, or campaign name from your form.
Frequently asked questions
Does this work for any Typeform survey, or only NPS?
What happens if the same person fills out the survey twice?
Do my existing MailerLite automations still run?
How do I change which Slack channel gets the detractor alerts?
Will passives or promoters trigger a Slack message too?
Stop letting NPS detractors sit in a spreadsheet for a week.
Connect Typeform, MailerLite, and Slack once, and every response routes itself into the right group with a same-day alert for anyone unhappy.