Logo Winback Engine

Winback Engine

Tổ chức
cognyai
winback-engine

Find dormant subscribers, segment by historical value, draft personalized winback emails per tier, and identify suppression candidates

Add to TypingMind

Tổng quan

Nhà phát hànhcognyai
Kho mãclaude-code-marketing-skills
Tên kỹ năngwinback-engine
Sao
111
Bản fork
15
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được cognyai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Winback Engine trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/winback-engine
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git /tmp/claude-code-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-marketing-skills/skills/winback-engine .claude/skills/winback-engine
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Winback Engine trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Winback Engine ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Winback Engine với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Winback Engine

Turn dormant subscribers back into customers. This skill scans your connected ESP for inactive subscribers, segments them by historical value, drafts a personalized winback series per tier, and flags who you should suppress before they tank your deliverability.

Requires: Cogny MCP + a connected ESP. Sign up

The output is a complete, ready-to-run winback campaign — not a report.

Usage

/winback-engine — standard mode (60-day dormancy threshold) /winback-engine aggressive — 30-day threshold (acts earlier, bigger list) /winback-engine conservative — 90-day threshold (only chronic dormants)

Step 0: Is Cogny connected?

If no mcp__cogny__* tools exist (no list_integrations, no cogny_status), print this and stop:

Winback Engine needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect your ESP (Klaviyo, Mailchimp, Rule, Get a Newsletter, Brevo, MailerLite, Drip, Salesforce Marketing Cloud or Braze); Shopify, WooCommerce or Stripe adds purchase value.
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny.

Prerequisites Check

Detect connected ESP (same pattern as subject-line-lab; on Cloud, mcp__cogny__list_integrations). If Cogny is connected but no ESP is, say "connect your ESP in Cogny" and stop. Also note whether a store (Shopify, WooCommerce) or, for SaaS, Stripe is connected — it supplies purchase data for ESPs that have none.

Health check: health_status misses revoked tokens, so make one cheap read per integration before relying on it (e.g. Mailchimp tool_get_account_info, Get a Newsletter tool_list_senders, Klaviyo get_account, Shopify tool_list_customers with a small page, Stripe stripe_api_read GetSubscriptions with limit: 1). A 401, Forbidden or scope error means 🔴 "reconnect in Cogny": name it, don't retry, and continue with what remains.

Missing tool: if a tool named here isn't exposed by the workspace, call mcp__cogny__refresh_mcp_discovery once, use the fallback named next to the tool for this run, mark that source ⚠ "needs reconnect", and tell the user to reconnect the Cogny MCP. Never loop on refresh. Get a Newsletter fallbacks: tool_get_report_have_not_opened → that report's list contacts minus the openers from tool_get_report_opens; tool_get_report_link_clicks → tool_get_report_opens (per-contact click counts) or tool_get_report_clicks (per-link totals); tool_get_report_opens_aggregated → the totals in tool_get_report. Mailchimp tool_get_campaign_content → tool_get_campaign for the headers, and ask the user for the body.

ESP connected but 0 sends in the window: skip it with a one-line note ("Rule: connected, 0 sends in the last days — no engagement to tier; see step 2 for never-mailed contacts").

Works with

ESP (Prefix)Subscribers + engagementPurchase / LTVSuppression write (asks first)Coverage
Klaviyo (Klaviyo)list_profiles, get_profilelist_events (Placed Order metric)unsubscribe_profilesFull
Mailchimp (Mailchimp)tool_list_membersstore jointool_update_memberFull, engagement-tiered
Rule (Rule)tool_list_subscribers, tool_list_suppressionsstore jointool_update_subscriberFull, engagement-tiered
Get a Newsletter (Get_a_Newsletter)tool_list_contacts (no engagement fields) + tool_get_report_opens (paged, per report) to rebuild engagementstore jointool_update_contact / tool_delete_contactPartial: last-engaged is rebuilt from recent reports only, so it can't see engagement older than the reports you page through
Brevo (Brevo)list_contacts (modified_since), get_contact (per-contact statistics with open/click events)store joinupdate_contact (email_blacklisted: true)Full, but last-engaged needs one get_contact per contact — sample if the list is large
MailerLite (MailerLite)list_subscribers (filter_status: "active"): lifetime opens_count, clicks_count, open_rate, subscribed_atstore joinupsert_subscriber (status: "unsubscribed")No last-open date: tier on lifetime rates + tenure, and say so
Drip (Drip)list_subscribers (status: "active", tags)subscriber lifetime_value (when a store integration feeds Drip)unsubscribe_from_allNo per-subscriber last-open date; use lifetime_value + tags
Salesforce Marketing Cloud (Salesforce_Marketing_Cloud)list_data_extensions → get_data_extension_fields → get_data_extension_rows (row_filter) on an engagement or customer data extensionsame, if the data extension holds ordersnone in the MCP; hand over the listOnly if such a data extension exists; rows are PII, fetch only what's needed
Braze (Braze)braze_list_segments → braze_get_segment_details / braze_get_segment_analytics (sizes only)—none in the MCPPartial: sizes existing lapsed segments; can't list users, so tiers and the suppression list are recommendations to build in Braze
Symplify, Drip broadcasts———Symplify has no bulk contact read (only get_contact by id), so winback isn't possible there

Store join (any ESP): mcp__cogny__mcp__Shopify__tool_list_customers returns numberOfOrders and amount_spent per customer email; WooCommerce list_orders (after, status: "completed") gives order history. For SaaS, Stripe stripe_api_read GetSubscriptions (status: "all") gives active vs cancelled customers and GetInvoices (status: "paid") the billed total per customer (LTV); treat cancelled subscribers as past purchasers. Join on lowercased email to turn engagement-only tiers into value tiers. If Stripe's email/customer_email comes back [REDACTED] (a restricted key), skip the Stripe join and say so ("Stripe emails redacted by the restricted key: tiers stay engagement-only"). Page Stripe with limit 20–25 and starting_after (a 100-row page is ~370KB). Name the source ("LTV from Shopify"), use the store currency, and never mix ESP-attributed revenue with store revenue.

Steps

1. Define dormancy thresholds

ModeDormantDeep dormantSuppress candidate
aggressive30+ days no open90+ days no open180+ days no open/click, no purchase
standard60+ days180+ days365+ days no engagement
conservative90+ days270+ days540+ days

2. Pull subscriber data

From the connected ESP, pull every active subscriber with:

  • Subscribe date
  • Last open date + last click date (take max as last_engaged)
  • Total historical opens / clicks
  • Signup source / list
  • Tags / segments
  • Email domain (gmail, yahoo, hotmail, corporate)

Purchase / LTV data — Klaviyo, Drip (lifetime_value), or a connected store. The cogny-mcp-proxy exposes purchase data in Klaviyo (via list_events filtered to the "Placed Order" metric, summing the value field per profile) and Drip. With Shopify or WooCommerce connected, use the store join above for any ESP. Otherwise Mailchimp, Rule, Get a Newsletter, Brevo and MailerLite are engagement-only — they do not expose:

  • Total spend / LTV
  • Order count
  • AOV
  • Last order date

Get a Newsletter engagement rebuild: tool_list_contacts returns no open or click fields. Rebuild them per contact: list the sends in the window with tool_list_sent (each row has subject, send time and report_id), skip test sends (under 10 recipients or "test" in the subject), then page through tool_get_report_opens for each report_id (each row: email, opens, clicks). A contact's last_engaged is the send time of the latest report they appear in; lifetime opens/clicks are the sums. tool_get_report_opens returns only openers, so "mailed but never opened" has to be derived: use tool_get_report_have_not_opened if the workspace exposes it; otherwise take the contacts on the lists that send targeted (tool_get_sent, matched against each contact's lists) whose created is before the send time, minus that report's openers. Cover at least the deep-dormant threshold (e.g. 180 days in standard mode) and state the date range, because engagement older than the oldest report read is invisible.

Last send older than the dormancy threshold: if the ESP's most recent send is older than the dormant threshold, every contact is dormant by default. That says nothing about the people; it means the program stopped sending. Say so up front, tier only contacts who were actually mailed, and treat the cadence gap as the main finding.

Never-mailed contacts: contacts created after the last send (Get a Newsletter: tool_list_contacts with created_gt = last send time), or on lists no send has targeted, have never received an email. They aren't dormant, so keep them out of the tiers and the suppression list: count them separately and route them to /welcome-series.

Per-ESP tool adapter:

ESPSubscriber listPurchase historySuppression write
Klaviyolist_profiles (+ get_profile for detail)list_events with metric="Placed Order" — use value field per profile for LTVunsubscribe_profiles
Mailchimptool_list_members (filter status=subscribed)Not availabletool_update_member (status=unsubscribed)
Ruletool_list_subscribersNot availabletool_update_subscriber / tool_list_suppressions
Get a Newslettertool_list_contacts + tool_get_report_opens (engagement rebuild above)Not availabletool_delete_contact or tool_update_contact
Brevolist_contacts + get_contactNot available (store join)update_contact (email_blacklisted)
MailerLitelist_subscribersNot available (store join)upsert_subscriber (status)
Driplist_subscriberslifetime_value on the subscriberunsubscribe_from_all
SFMCget_data_extension_rowsonly if a data extension holds itnot exposed
Brazesegment sizes onlynot exposed per usernot exposed

3. Segment into tiers

If Klaviyo, Drip with lifetime_value, or any ESP + store join (has purchase data): cross-cut by engagement recency × historical value:

TierCriteriaToneOffer
A — High value dormantDormant + LTV ≥ top quartile OR past purchaserPersonal, apologetic, premiumStrong (20% off, free shipping, exclusive access). This is real money.
B — Medium value dormantDormant + some past engagement or 1 purchaseWarm, value-forwardModerate (10–15% off, bundle, content)
C — Low engagement dormantDormant + never purchased + low engagement historyDirect, honestLast-chance offer or content-only
D — Suppression candidatesDeep dormant + no purchase + no recent engagementFinal email only"We're removing you unless..."

If engagement-only (Mailchimp / Rule / Get a Newsletter / Brevo / MailerLite with no store connected): tier by engagement depth instead. LTV-based tiering falls back to:

TierCriteriaToneOffer
A — Deep engaged dormantDormant now, but historically high open+click rate (top quartile of clicks)Personal, "we miss you"Strong offer or exclusive content
B — Casual dormantDormant, moderate historical engagementWarm, value-forwardModest offer
C — Low engagement dormantDormant, few lifetime opens/clicksDirect, honestContent-only or re-opt-in ask
D — Suppression candidatesDeep dormant, minimal lifetime engagementFinal email onlyGoodbye

Revenue estimates in the output should be omitted for engagement-only ESPs, or marked estimated_impact_usd: null on findings with a note that the user can pair with their own LTV data to size the opportunity.

Output the tier sizes before drafting:

Winback candidates: <total>
├─ Tier A (high-value dormant):   <count> subscribers (est. revenue: $<X>)
├─ Tier B (medium):               <count>
├─ Tier C (low engagement):       <count>
└─ Tier D (suppression):          <count>  ← do not keep sending to these

Never mailed (not tiered):        <count>  → run /welcome-series

Revenue estimate for Tier A/B: count × historical AOV × expected reactivation rate (use 3-5% for Tier A, 1-2% for Tier B).

4. Draft a 3-email winback series per tier

For each tier (A, B, C), generate 3 emails with cadence:

  • Email 1 — day 0, soft reopener ("we noticed")
  • Email 2 — day 4, value + offer
  • Email 3 — day 8, last-chance / decision

Tone by tier:

Tier A (high-value):

  • E1: Personal note, reference last purchase by name if available. No offer yet.
  • E2: Show what they're missing — new products in their category, or customer stories
  • E3: Strongest offer, explicit decision framing ("if we're not a fit anymore, we'll respect that")

Tier B (medium):

  • E1: "We miss you" + social proof
  • E2: Content-led (best of what they missed) + modest offer
  • E3: Offer + deadline

Tier C (low engagement):

  • E1: Direct — "is this still useful?"
  • E2: One-click re-subscribe or one-click unsubscribe (reduce friction)
  • E3: Final send before suppression

For every email produce: subject, preheader, body, CTA. Same format as /welcome-series.

5. Suppression list (Tier D)

Output a block the user can act on:

Suppression recommendation: <count> subscribers

These haven't opened, clicked, or purchased in <threshold> days. Keeping
them on the list:
  • Hurts deliverability (low engagement = more spam placement for everyone)
  • Inflates list size → higher ESP costs
  • Distorts reporting baselines

Recommended action:
  1. Send ONE final "goodbye" email offering resubscribe
  2. After 7 days, suppress non-responders

Sample suppression email is included below.

Then include the goodbye email draft.

6. Write-mode: offer to execute

After presenting the plan, ask:

I can push this into your ESP as:
  [A] Drafts only (you review + launch)
  [B] Full flow installed but paused (you activate when ready)
  [C] Just give me the copy, I'll handle it

Which?

If the user picks A or B and the ESP MCP has write tools available, follow the Write Action Protocol (same as the /cogny skill — present the action plan, wait for approval, then execute one step at a time).

Draft-capable writes for the newer ESPs (each asks first): Brevo create_email_campaign (omit scheduled_at to keep it a draft), MailerLite create_campaign (then schedule_campaign only on approval), Drip apply_tag to enter an existing winback workflow. SFMC and Braze have no write tools in the MCP: deliver copy + segment definitions only (option C).

7. Record findings

For each significant tier (A, B with >100 subscribers), and for a never-mailed group or a stopped send cadence, record a finding. On Cloud call create_ticket first (fields mapped per section 2 of the routing guide); on Solo call create_finding:

json
{
  "title": "Tier A winback: <N> high-value dormant subscribers, est. $<X> recoverable",
  "body": "Identified <N> past purchasers with LTV in top quartile who haven't engaged in <days> days. Avg historical AOV: $<Y>. At 4% reactivation, estimated winback revenue = $<X>. 3-email series drafted and ready to install.",
  "action_type": "winback_campaign",
  "expected_outcome": "Reactivate 3-5% of Tier A dormant, generate $<X> over 30 days",
  "estimated_impact_usd": <X>,
  "priority": "high"
}

And one for suppression:

json
{
  "title": "<N> subscribers recommended for suppression",
  "body": "Deep dormant (<threshold>+ days) with no purchases. Keeping them hurts deliverability and inflates ESP cost. Recommend goodbye email + suppression after 7 days.",
  "action_type": "list_hygiene",
  "expected_outcome": "Improve overall open rate by 1-3 pp, lower ESP tier cost",
  "estimated_impact_usd": <monthly_esp_savings>,
  "priority": "medium"
}

Notes

  • Never suppress before a winback attempt. Give Tier D subscribers one last chance to re-engage.
  • Apple MPP means "last open" is noisy for iPhone users. Weight clicks and purchases higher than opens when assigning tiers.
  • Purchase/LTV data comes from Klaviyo events, Drip lifetime_value, a connected Shopify/WooCommerce store, or Stripe for SaaS. Without one of those, Mailchimp, Rule, Get a Newsletter, Brevo and MailerLite fall back to the engagement-only tiering scheme above.
  • Several ESPs connected: tier each list separately and show them side by side. A person on two lists counts once per ESP; don't add tier sizes or revenue estimates across ESPs.
  • Get a Newsletter has no flow/automation object. "Install as a flow" isn't available — winback is delivered as scheduled individual sends via tool_send_draft with time_to_send. For Klaviyo, flows install via the Klaviyo UI (the MCP exposes list_flows/get_flow for reads only, not create). For Mailchimp/Rule, automations/journeys are read-only too — so "install" means drafting campaigns and scheduling them, not creating a native automation.

Recording findings

Use create_ticket when the workspace has it (Cloud) and create_finding otherwise (Solo). The fields differ; see section 2 of ../marketing-engineer/references/mcp-routing.md.

Câu hỏi thường gặp

Kỹ năng AI Winback Engine làm được gì?

Find dormant subscribers, segment by historical value, draft personalized winback emails per tier, and identify suppression candidates

Vì sao nên dùng Winback Engine trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Winback Engine là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Winback Engine trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/winback-engine. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Winback Engine?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Winback Engine với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Winback Engine với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Winback Engine có miễn phí không?

Kỹ năng này được cognyai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇