Subscription media services · Retention marketing teams

Classify Subscription Cancellation Intent to Offer Pause Options

Subscription services receive cancellation requests with varied explanations, but cannot distinguish temporary needs from permanent departures. Routing temporary situations to pause offers instead of immediate cancellation can retain customers who would otherwise churn. This example classifies the stated cancellation reason so the application can present retention options for temporary cases or complete cancellation for permanent dissatisfaction.

Updated · Examples verified with jev-1.13.0

cancellationchurnintentretentionsubscription

Interactive demo

Floating Emoji Heatmap

Emojis representing cancellation reasons float upward from the bottom of the screen. The emoji matching the detected intent rises fastest and largest, with speed tied to probability.

Choose from a dropdown of realistic cancellation statements like 'Going back to school, no time to watch' or 'Found better value elsewhere'. Each run sends one live request to the public API; results are model judgments and can vary.

Verified sample results (3 inputs, jev-1.13.0)
  • Short-term budget constraint with no service criticism.

    {
      "state": {
        "reason": "Need to cut costs this month until my next paycheck comes in."
      },
      "answers": {
        "primary_intent": {
          "type": "choice",
          "choice": "temporary_financial",
          "confidence": 1,
          "probabilities": {
            "temporary_financial": 1,
            "temporary_usage_gap": 0,
            "unclear_or_no_reason": 0,
            "switched_to_competitor": 0,
            "dissatisfied_with_service": 0
          }
        },
        "mention_of_pause": {
          "noul": 0.07,
          "type": "noul"
        },
        "negative_sentiment": {
          "noul": 0.04,
          "type": "noul"
        }
      }
    }
  • Extended travel with explicit temporary usage gap.

    {
      "state": {
        "reason": "Going on a 3-month backpacking trip across Europe, won't have time to watch."
      },
      "answers": {
        "primary_intent": {
          "type": "choice",
          "choice": "temporary_usage_gap",
          "confidence": 1,
          "probabilities": {
            "temporary_financial": 0,
            "temporary_usage_gap": 1,
            "unclear_or_no_reason": 0,
            "switched_to_competitor": 0,
            "dissatisfied_with_service": 0
          }
        },
        "mention_of_pause": {
          "noul": 0.06,
          "type": "noul"
        },
        "negative_sentiment": {
          "noul": 0.06,
          "type": "noul"
        }
      }
    }
  • Explicit criticism of content quality and technical performance.

    {
      "state": {
        "reason": "The content library is stale and the app crashes constantly on my device."
      },
      "answers": {
        "primary_intent": {
          "type": "choice",
          "choice": "dissatisfied_with_service",
          "confidence": 1,
          "probabilities": {
            "temporary_financial": 0,
            "temporary_usage_gap": 0,
            "unclear_or_no_reason": 0,
            "switched_to_competitor": 0,
            "dissatisfied_with_service": 1
          }
        },
        "mention_of_pause": {
          "noul": 0.01,
          "type": "noul"
        },
        "negative_sentiment": {
          "noul": 0.97,
          "type": "noul"
        }
      }
    }

The problem

The input is the user's stated reason for canceling their subscription. Some users face short-term budget pressure or a planned period without service access, while others have switched providers or dislike the content. The application must classify the stated intent into temporary-financial, temporary-usage-gap, dissatisfied-with-service, or switched-to-competitor so downstream logic can conditionally display pause offers with duration choices for temporary situations or proceed directly to cancellation for permanent departures. A reason mentioning cost savings alone does not prove the financial constraint is temporary unless the explanation includes timebound context such as upcoming income changes or seasonal expenses.

How TypeSafe helps

The input is the user's stated cancellation reason, and the question classifies it into temporary-financial, temporary-usage-gap, dissatisfied-with-service, or switched-to-competitor. The first example returns temporary-usage-gap for a work travel period with explicit September return intent; the second returns temporary-financial for job-transition expense reduction until January; the third returns temporary-financial with lower confidence for a vague cost concern without timebound details. Application code can use temporary-financial or temporary-usage-gap labels to display pause offers with duration options, while dissatisfied-with-service or switched-to-competitor labels trigger immediate cancellation processing.

Input
The user's stated reason for subscription cancellation.
Decision
Choice: Classify the cancellation intent as temporary-financial, temporary-usage-gap, dissatisfied-with-service, or switched-to-competitor.
Next action
Display subscription pause offers with duration options for temporary situations and process immediate cancellation for permanent departures.

Three verified examples

These responses were returned during a previous API verification. New probabilities can differ.

User pausing service during summer travel with return date (primary)

Expected behavior: The stated reason describes a three-month work travel period with explicit intent to resume service afterward, clearly indicating a temporary usage gap rather than permanent departure.

Input

{
  "cancellation_reason": "I'm going to be traveling abroad for work from June through August and won't have time to watch anything. I'll be back in September and want to pick up where I left off with the new season."
}

Previous verification response

jev-1.13.0 ·

{
  "model": "jev-1.13.0",
  "usage": {
    "input_tokens": 460,
    "output_tokens": 65
  },
  "answers": {
    "intent": {
      "type": "choice",
      "choice": "temporary-usage-gap",
      "confidence": 1,
      "probabilities": {
        "temporary-financial": 0,
        "temporary-usage-gap": 1,
        "switched-to-competitor": 0,
        "dissatisfied-with-service": 0
      }
    }
  }
}
User cutting expenses until new job starts next quarter (alternative)

Expected behavior: The reason identifies a job transition with a specific timeframe for income resumption, indicating a temporary financial constraint with resolution in January.

Input

{
  "cancellation_reason": "I'm between jobs right now and need to reduce my monthly bills. I start my new position in January so I'm cutting subscriptions until then."
}

Previous verification response

jev-1.13.0 ·

{
  "model": "jev-1.13.0",
  "usage": {
    "input_tokens": 447,
    "output_tokens": 65
  },
  "answers": {
    "intent": {
      "type": "choice",
      "choice": "temporary-financial",
      "confidence": 1,
      "probabilities": {
        "temporary-financial": 1,
        "temporary-usage-gap": 0,
        "switched-to-competitor": 0,
        "dissatisfied-with-service": 0
      }
    }
  }
}
User providing only vague cost concern without timebound context (edge case)

Expected behavior: The mention of increasing expense indicates a financial concern, and while the timebound context is less explicit than other temporary cases, the cost focus distinguishes this from pure dissatisfaction with content or features.

Input

{
  "cancellation_reason": "It's getting expensive and I'm barely using it anymore."
}

Previous verification response

jev-1.13.0 ·

{
  "model": "jev-1.13.0",
  "usage": {
    "input_tokens": 430,
    "output_tokens": 65
  },
  "answers": {
    "intent": {
      "type": "choice",
      "choice": "temporary-financial",
      "confidence": 0.7,
      "probabilities": {
        "temporary-financial": 0.77,
        "temporary-usage-gap": 0.19,
        "switched-to-competitor": 0,
        "dissatisfied-with-service": 0.04
      }
    }
  }
}

Try online

Start with a verified example, edit the request, then ask Jev. A live request is sent only when you press Try online.

Expected behavior: The stated reason describes a three-month work travel period with explicit intent to resume service afterward, clearly indicating a temporary usage gap rather than permanent departure.

Use non-sensitive test data. Live input goes to typesafe.pro and TypeSafe. Anonymous requests use the gateway’s free rate limit.

3Answer
Previous verification

The best-fitting label

temporary-usage-gap
temporary-financial0%
temporary-usage-gap100%
switched-to-competitor0%
dissatisfied-with-service0%
Model confidence1.00

Probabilities compare your labels. Confidence describes how decisive the model is, not whether it is correct.

Next step

The stated reason describes a three-month work travel period with explicit intent to resume service afterward, clearly indicating a temporary usage gap rather than permanent departure.

jev-1.13.0 · verified 2026-09-28 · new probabilities may differ

The current request, in code
import jsonfrom urllib.error import HTTPError, URLErrorfrom urllib.request import Request, urlopenBASE_URL = "https://api.typesafe.pro"payload = {    "model": "jev-latest",    "state": {        "cancellation_reason": "I'm going to be traveling abroad for work from June through August and won't have time to watch anything. I'll be back in September and want to pick up where I left off with the new season.",    },    "questions": {        "intent": {            "type": "choice",            "criteria": {                "temporary-financial": "The user faces a time-limited budget constraint or financial situation that will resolve.",                "temporary-usage-gap": "The user has a planned period without access or need for the service but intends to return.",                "switched-to-competitor": "The user is moving to a different service provider.",                "dissatisfied-with-service": "The user is unhappy with content quality, features, or overall experience.",            },            "instructions": "Classify the cancellation intent based on the stated reason.",        },    },}request = Request(    f"{BASE_URL}/v1/systemone",    data=json.dumps(payload).encode("utf-8"),    headers={"Content-Type": "application/json"},    method="POST",)try:    with urlopen(request, timeout=20) as response:        result = json.load(response)except HTTPError as error:    raise SystemExit(f"API returned HTTP {error.code}") from errorexcept URLError as error:    raise SystemExit(f"Connection failed: {error.reason}") from errorprint(json.dumps(result["answers"], indent=2))

Limitations and review

  • A single Choice question returns one classification per request. If your workflow needs to detect multiple concurrent factors—such as both financial pressure and content dissatisfaction—you can structure separate questions to evaluate each dimension.
  • The edge example mentions cost but lacks the explicit timebound context present in the alternative example. The returned temporary-financial label with 0.77 probability reflects this ambiguity; you can set a confidence threshold and route lower-confidence cases to human review before displaying pause offers.

Set thresholds against your own examples before relying on an automated decision.

← Explore all TypeSafe use cases