srzafkiell@dev
case-studies/customer-success-engine.md -- less

Customer Success Engine

n8n + ClickUp lifecycle automation | Magnetic | internal automation, sanitized

context

Magnetic's customer-success team runs about 1,090 client accounts across four products (SocialGest, Tikket, Quantico and Advocates) as cards in ClickUp: onboarding, follow-ups, quarterly business reviews, renewals and churn. Each card carries the dates and fields the lifecycle depends on: the QBR date, the contract end date, the license type, the account's value tier and the assigned success manager.

problem

Keeping every account on schedule was manual: someone had to notice that a QBR was due or a renewal was 90 days out, write the email, copy the right people, and remember not to send it twice. Status changes had no gate, so an account could be marked on track with a missing contract or an ARR of zero.

what I did

  • Built the lifecycle engine as an n8n workflow (71 nodes in its production version) fed by ten ClickUp automations: date milestones (30, 80, 170, 260 and 330 days after the QBR date; 145, 90 and 60 days before the contract end) and status changes (on track, churn), delivered as webhooks.
  • Made every run re-read the card first, so the decision is taken on fresh data rather than on the webhook payload; a churned account stops everything except its exit survey.
  • Wrote the branch logic in JavaScript: value-tier filters (QBR alerts only for high-value accounts), product and license rules for renewals, product-to-inbox mapping, ARR formatting, and Spanish HTML emails per event with the right success manager, lead and specialist teams in copy.
  • Added an on-track gate: when a card is moved to on track it must have start and end dates, an ARR above zero, the invoice flag set, and the contract and accepted proposal attached; if not, the engine reverts the status and alerts the team with the missing items.
  • Made it idempotent: after each action it writes a marker comment on the card keyed to the current cycle, and checks the markers before acting, so a replayed webhook never resends an email while a new renewal cycle legitimately fires again.
  • Routed operational problems (invalid payloads, unknown events, failed nodes) to one Mattermost channel through an error workflow, with the failing node and a link to the execution.

stack

n8n ClickUp Gmail Mattermost JavaScript webhooks

outcome

  • Ten lifecycle events fire themselves from the cards: the follow-up and four QBR emails, three renewal steps, the on-track gate and the churn survey. People receive email; the ops channel only hears about problems.
  • About 1,090 accounts covered, 119 of them in the value tiers that receive QBR alerts.
  • In production since July 2026; built alone between March and August 2026 as the first automation of my time at Magnetic.

Internal automation, sanitized: no customer names, people, mailboxes, hosts or channel names.