@tpmjs/churn-risk-score
Scores customer churn risk based on usage, engagement, and support signals. Provides risk score (0-100) with detailed contributing factors and recommendations.
Customer ID and name are required
Last checked: 2/28/2026, 3:58:13 AM
Test @tpmjs/churn-risk-score (churnRiskScoreTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/churn-risk-scorepnpm add @tpmjs/churn-risk-scoreyarn add @tpmjs/churn-risk-scorebun add @tpmjs/churn-risk-scoredeno add npm:@tpmjs/churn-risk-scoreimport { churnRiskScoreTool } from '@tpmjs/churn-risk-score';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { churnRiskScoreTool } from '@tpmjs/churn-risk-score';
const result = await generateText({
model: openai('gpt-4o'),
tools: { churnRiskScoreTool },
prompt: 'Your prompt here...',
});
console.log(result.text);How AI agents can use this tool
Use this tool to identify at-risk customers, prioritize retention efforts, and proactively reduce churn. Ideal for customer success teams and account managers.
Requires comprehensive customer data. Risk scoring is heuristic-based and should be combined with human judgment for critical decisions.
(customer: { id: string; name: string; npsScore: number; totalSeats: number; billingIssues: boolean }) => Promise<unknown>Available configuration options
customerobjectCustomer data with activity metrics including usage, engagement, and support interactions
Schema extracted: 2/28/2026, 3:58:13 AM
ERROR: No README data found!
Downloads/month
22
GitHub Stars
0
Quality Score