Account Risk Early Warning 标志

Account Risk Early Warning

组织
microsoft
account-risk-early-warning

Identifies accounts showing warning signs of churn by analyzing activity trends, support cases, and engagement signals. Scores risk and prioritizes intervention targets. Use when user asks "which accounts are at risk", "churn risk analysis", "find accounts that might leave", "customer health check", "at-risk customers", "retention warning signs", or "account health score".

概览

发布者microsoft
代码仓库dataverse-business-skills
技能名称account-risk-early-warning
星标数
52
复刻数
9
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 microsoft 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Account Risk Early Warning AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/microsoft/dataverse-business-skills/tree/main/skills/account-risk-early-warning
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/dataverse-business-skills.git /tmp/dataverse-business-skills
mkdir -p .claude/skills
cp -r /tmp/dataverse-business-skills/skills/account-risk-early-warning .claude/skills/account-risk-early-warning
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Account Risk Early Warning,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Account Risk Early Warning。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Account Risk Early Warning 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Account Risk Early Warning

Retaining existing customers is more cost-effective than acquiring new ones. This skill monitors key accounts for early warning signals that indicate potential churn or relationship issues, enabling proactive intervention before problems escalate.

Instructions

Step 1: Determine Scope

When user asks "Which of my top accounts are showing warning signs?":

1.1 Define Account Set:

Options:
A) All active accounts owned by user
B) Specific account list (e.g., enterprise tier)
C) Accounts with revenue above threshold
D) Accounts up for renewal in next X months

1.2 Query Target Accounts:

SELECT accountid, name, revenue, numberofemployees, industrycode,
       createdon, ownerid, customertypecode, territoryid,
       openrevenue, openrevenue_date
FROM account
-- Note: openrevenue and openrevenue_date are rollup fields that may not exist in all orgs.
-- If absent, calculate open pipeline value by querying the opportunity table directly.
WHERE statecode = 0
AND ownerid = '[current_user_id]'  -- or specific criteria
ORDER BY revenue DESC
Step 2: Analyze Risk Signals for Each Account

Important: Dataverse SQL Limitations Dataverse SQL does NOT support: subqueries, DATEADD(), GETUTCDATE(), HAVING, DISTINCT, UNION, CASE statements. Use separate queries and calculate date filters programmatically (e.g., calculate '2025-09-01' for 6 months ago).

2.1 Activity Trend Analysis Query recent activities for each account (run separately per account):

SELECT activityid, activitytypecode, createdon, statecode
FROM activitypointer
WHERE regardingobjectid = '[accountid]'
AND createdon > '2025-09-01'
ORDER BY createdon DESC

Calculate Activity Metrics:

For each account:
- Total activities (last 6 months)
- Activities per month trend
- Activity types breakdown
- Days since last activity
- Comparison to account's historical average

Activity Risk Indicators:

SignalWarningCritical
Days Since Last Activity30+ days60+ days
Month-over-Month Decline25%+ decline50%+ decline
No Meetings/Calls45+ days90+ days
Only Automated Emails30+ days60+ days

2.2 Support Case Pattern Analysis Query recent cases (run per account, calculate date filter programmatically):

SELECT incidentid, title, createdon, prioritycode, severitycode, 
       statecode, statuscode, caseorigincode, customersatisfactioncode, 
       msdyn_casesentiment, escalatedon
FROM incident
WHERE customerid = '[accountid]'
AND createdon > '2025-09-01'
ORDER BY createdon DESC

Calculate Case Metrics:

For each account:
- Total cases (last 6 months)
- Cases per month trend
- Case severity distribution
- Average resolution time
- Escalation count
- Customer satisfaction scores (if available)
- Sentiment analysis (msdyn_casesentiment)

Case Risk Indicators:

SignalWarningCritical
Case Volume Increase50%+ increase100%+ increase
High Severity Cases2+ in 30 days5+ in 30 days
Escalated Cases1 in 60 days2+ in 60 days
Negative SentimentScore 9 (Slightly negative)Score 7-8 (Very negative / Negative)
Low SatisfactionScore 2-3Score 1 (Very Dissatisfied)
Unresolved Cases3+ open > 7 days5+ open > 14 days

2.3 Opportunity Velocity Analysis Query opportunity history (per account, calculate date filter programmatically):

SELECT opportunityid, name, estimatedvalue, actualvalue,
       statecode, statuscode, createdon, actualclosedate,
       salesstage, msdyn_forecastcategory
FROM opportunity
WHERE accountid = '[accountid]'
AND createdon > '2024-03-01'
ORDER BY createdon DESC

Calculate Opportunity Metrics:

For each account:
- New opportunities (last 6 months vs prior 6 months)
- Win rate trend
- Average deal size trend
- Pipeline coverage
- Time since last won deal
- Lost opportunities (recent)

Opportunity Risk Indicators:

SignalWarningCritical
No New Opportunities90+ days180+ days
Declining Win Rate20%+ decline50%+ decline
Declining Deal Size25%+ decline50%+ decline
Recent Lost Deals1 in 60 days2+ in 60 days
Stalled Pipeline60+ days no movement90+ days

2.4 Engagement Pattern Analysis Analyze contact engagement:

SELECT c.contactid, c.fullname, c.jobtitle, c.accountrolecode
FROM contact c
WHERE c.accountid IN ([target account ids])
AND c.statecode = 0

SELECT a.regardingobjectid, COUNT(*) as activity_count,
       MAX(a.createdon) as last_activity
FROM activitypointer a
JOIN contact c ON a.regardingobjectid = c.contactid
WHERE c.accountid IN ([target account ids])
AND a.createdon >= '[6_months_ago]'
GROUP BY a.regardingobjectid

Engagement Risk Indicators:

SignalWarningCritical
Key Contact Disengaged45+ days no response90+ days
Champion Gone Dark30+ days60+ days
Executive Engagement Drop50%+ decline75%+ decline
New Decision MakerNot yet engaged60+ days not engaged
Contact Left CompanyDetectedChampion left

2.5 Relationship Signals from Notes Analyze annotations and activity descriptions:

SELECT a.objectid, a.subject, a.notetext, a.createdon
FROM annotation a
WHERE a.objecttypecode = 'account'
AND a.objectid IN ([target account ids])
AND a.createdon >= '[6_months_ago]'
ORDER BY a.createdon DESC

Keyword Detection: Look for risk keywords in notes:

  • Negative: "unhappy", "frustrated", "dissatisfied", "complaint", "issue", "problem", "leaving", "cancel", "competitor"
  • Competitive: "evaluating alternatives", "RFP", "comparing options", "other vendors"
  • Organizational: "budget cut", "freeze", "layoffs", "restructuring", "merger", "acquisition"
  • Turnover: "leaving company", "new role", "replacement", "transition"

2.6 Renewal and Contract Signals If contract/renewal data available:

Query opportunities or custom entities for:
- Upcoming renewal dates
- Contract end dates
- Renewal discussions (or lack thereof)

Renewal Risk Indicators:

SignalWarningCritical
Renewal in 90 daysNo discussion startedNegative feedback received
Renewal in 60 daysNo commitmentCompetitor being evaluated
Renewal in 30 daysNot verbal confirmedAt risk / declining
Step 3: Calculate Composite Risk Score

Risk Score Model (0-100, higher = more risk):

Risk CategoryWeightMax Points
Activity Decline20%20
Support Case Patterns25%25
Opportunity Velocity20%20
Engagement Patterns20%20
Relationship Signals15%15

Score Interpretation:

  • 0-25: Healthy - No significant risk signals
  • 26-50: Monitor - Early warning signs, watch closely
  • 51-75: At Risk - Multiple warning signals, intervention needed
  • 76-100: Critical - Immediate action required
Step 4: Prioritize Intervention Targets

Sort accounts by:

  1. Risk Score (highest first)
  2. Revenue Impact (larger accounts prioritized)
  3. Renewal Proximity (sooner renewals first)
  4. Relationship Investment (longer tenure/more history)

Calculate Priority Score:

priority = risk_score * 0.5 + revenue_weight * 0.3 + renewal_urgency * 0.2

Where:
- risk_score: 0-100 from Step 3
- revenue_weight: Normalized account revenue
- renewal_urgency: Days until renewal (inverted scale)
Step 5: Generate Risk Report

Output Format:

ACCOUNT RISK EARLY WARNING REPORT
════════════════════════════════════════════════════
Generated: [Date]
Scope: [User]'s Accounts
Accounts Analyzed: [N]

════════════════════════════════════════════════════
RISK SUMMARY
════════════════════════════════════════════════════
Critical Risk (76-100):   [N] accounts  $[revenue at risk]
At Risk (51-75):          [N] accounts  $[revenue at risk]
Monitor (26-50):          [N] accounts  $[revenue at risk]
Healthy (0-25):           [N] accounts  $[revenue value]

TOTAL REVENUE AT RISK: $[sum of Critical + At Risk]

════════════════════════════════════════════════════
PRIORITY INTERVENTION LIST
════════════════════════════════════════════════════

1. 🔴 CONTOSO CORPORATION
   Risk Score: 85/100 (Critical)
   Annual Revenue: $500,000
   Renewal: 45 days
   ─────────────────────────────────────────────────
   
   WARNING SIGNALS:
   ⚠️  Activity Decline: 67% fewer touchpoints vs prior quarter
   ⚠️  Support Cases: 8 cases in 30 days (up 300% from average)
   ⚠️  Escalation: 2 escalated cases in past month
   ⚠️  Sentiment: Case sentiment trending negative (avg 7.5)
   ⚠️  Competitor: "Evaluating alternatives" mentioned in notes
   ⚠️  Contact: VP Champion hasn't responded in 45 days
   
   DETAILED ANALYSIS:
   
   Activity Trend:
   • 6 months ago: 12 activities/month
   • Current: 4 activities/month
   • Trend: ↓ 67% decline
   
   Support Cases:
   • Total (6 mo): 15 cases
   • Last 30 days: 8 cases (spike)
   • High Severity: 3 cases
   • Avg Resolution: 5.2 days (above SLA)
   
   Opportunity Status:
   • No new opportunities in 120 days
   • Last won deal: 8 months ago
   • Pipeline: $0 (no active deals)
   
   Key Contacts:
   • Sarah Chen (VP Ops) - Last contact: 45 days ago ⚠️
   • John Smith (IT Dir) - Last contact: 12 days ago ✓
   
   RECOMMENDED INTERVENTIONS:
   
   Priority 1 (Immediate):
   📞 Executive outreach from sales leadership to Sarah Chen
      • Acknowledge support issues
      • Request relationship review meeting
      • Bring solutions, not sales pitch
   
   Priority 2 (This Week):
   📋 Support case review with CS team
      • Identify root cause of case spike
      • Escalate to product/engineering if needed
      • Prepare remediation plan
   
   Priority 3 (Within 2 Weeks):
   📅 Renewal discussion meeting
      • Don't wait - engage on renewal now
      • Address concerns before they finalize decision
      • Consider retention incentives if needed

   ─────────────────────────────────────────────────

2. 🟠 FABRIKAM INDUSTRIES
   Risk Score: 62/100 (At Risk)
   Annual Revenue: $250,000
   Renewal: 90 days
   ─────────────────────────────────────────────────
   
   WARNING SIGNALS:
   ⚠️  Champion Left: Primary contact left company 30 days ago
   ⚠️  New Decision Maker: Replacement not yet engaged
   ⚠️  Activity: 45 days since meaningful engagement
   
   RECOMMENDED INTERVENTIONS:
   
   Priority 1: Identify and engage new decision maker
      • Research LinkedIn for replacement
      • Get warm intro from remaining contacts
      • Schedule introductory meeting

[Continue for additional at-risk accounts...]
Step 6: Create Intervention Tasks

For each high-priority account, offer to create:

Use create_record with tablename: task
{
  "subject": "⚠️ Risk Intervention: [Account Name]",
  "description": "Risk Score: [X]/100\n\nKey Warning Signals:\n- [Signal 1]\n- [Signal 2]\n\nRecommended Actions:\n1. [Action 1]\n2. [Action 2]",
  "regardingobjectid": "[accountid]",
  "scheduledend": "[today or tomorrow]",
  "prioritycode": 1 (High)
}

Add note to account record:

Use create_record with tablename: annotation
{
  "subject": "Risk Assessment - [Date]",
  "notetext": "Account flagged as [Risk Level].\n\nWarning Signals:\n[Details]\n\nIntervention Plan:\n[Actions]",
  "objectid": "[accountid]",
  "objecttypecode": "account"
}

Dataverse Tables Used

TablePurpose
accountPrimary entity for risk analysis
activitypointerActivity trend analysis
phonecallEngagement tracking
appointmentMeeting frequency
emailCommunication patterns
incidentSupport case patterns
opportunityRevenue velocity
contactStakeholder engagement
annotationNotes for signal detection
taskCreate intervention tasks

Key Fields Reference

account:

  • revenue (MONEY) - Account value for prioritization
  • ownerid (OWNER) - Account owner for filtering
  • createdon (DATETIME) - Tenure calculation
  • customertypecode (CHOICE) - Relationship type
  • openrevenue (MONEY) - Total open pipeline value (rollup field; availability depends on org configuration)
  • msdyn_accountkpiid (LOOKUP → msdyn_accountkpiitem) - Relationship analytics KPI
  • statecode (STATE) - Active(0), Inactive(1)

msdyn_accountkpiitem (Sales Insights - Relationship Analytics):

  • msdyn_relationshiphealthscorevalue (INT) - Health score (0-100)
  • msdyn_relationshiphealthscorestate (CHOICE) - Good(0), Fair(1), Poor(2)
  • msdyn_relationshiphealthtrend (CHOICE) - Improving(0), Steady(1), Declining(2), Not enough info(3)
  • msdyn_emailssent (INT) - Outgoing emails count
  • msdyn_emailsreceived (INT) - Incoming emails count
  • msdyn_phonecallsmade (INT) - Outbound calls count
  • msdyn_phonecallsreceived (INT) - Inbound calls count
  • msdyn_meetingssent (INT) - Meetings scheduled count
  • msdyn_lastactivitybyteam (DATETIME) - Last team outreach
  • msdyn_nextactivitybyteam (DATETIME) - Next scheduled activity
  • msdyn_facetimewithcustomer (DURATION) - Total meeting time
  • msdyn_timespentbyteam (DURATION) - Total time invested
  • msdyn_averagefirstresponsetimebyusinhrs (FLOAT) - Avg response time (hours)

incident:

  • prioritycode (CHOICE) - High(1), Normal(2), Low(3)
  • severitycode (CHOICE) - Severity level
  • casetypecode (CHOICE) - Question(1), Problem(2), Request(3)
  • caseorigincode (CHOICE) - Source channel
  • customersatisfactioncode (CHOICE) - Very Dissatisfied(1), Dissatisfied(2), Neutral(3), Satisfied(4), Very Satisfied(5)
  • msdyn_casesentiment (CHOICE) - Sentiment scale (lower = more negative): Very negative(7), Negative(8), Slightly negative(9), Neutral(10), Slightly positive(11), Positive(12), Very positive(13)
  • escalatedon (DATETIME) - Escalation tracking
  • statecode (STATE) - Active(0), Resolved(1), Cancelled(2)
  • statuscode (STATUS) - In Progress(1), On Hold(2), Waiting(3), Researching(4) [Active]; Problem Solved(5), Info Provided(1000) [Resolved]; Cancelled(6), Merged(2000) [Cancelled]

activitypointer:

  • activitytypecode (NVARCHAR) - Type: phonecall, email, appointment, task
  • createdon (DATETIME) - Activity date
  • regardingobjectid (LOOKUP) - Polymorphic link to account, contact, etc.
  • statecode (STATE) - Open(0), Completed(1), Canceled(2), Scheduled(3-appointments)

Risk Signal Weights (Configurable)

Signal CategoryDefault WeightAdjustable Range
Activity Decline20%10-30%
Support Cases25%15-35%
Opportunity Velocity20%10-30%
Engagement Patterns20%10-30%
Relationship Signals15%10-25%

Best Practices

  1. Early intervention wins: Act on Monitor-level risks before they become Critical
  2. Don't assume: Verify signals with direct customer conversation
  3. Cross-functional response: Involve Success, Support, and Sales in intervention
  4. Document everything: Track intervention actions for pattern learning
  5. Regular cadence: Run risk analysis weekly for proactive management

Examples

Example 1: Weekly Account Health Check

User says: "Which of my accounts are at risk?"

Actions:

  1. Query all active accounts owned by user
  2. Analyze activity trends, support cases, opportunity velocity for each
  3. Calculate composite risk score
  4. Rank accounts by risk level

Result:

ACCOUNT RISK SUMMARY
Critical (2): Immediate intervention required
Warning (5): Schedule check-in this week
Monitor (8): Watch for changes
Healthy (35): No action needed

CRITICAL ACCOUNTS:
1. Contoso Ltd - Risk Score: 85/100
   - 60+ days since last activity
   - 3 escalated support cases
   - Renewal in 45 days
   ACTION: Executive outreach immediately

2. Fabrikam Inc - Risk Score: 78/100
   - Activity declined 70% vs prior quarter
   - Champion contact left company
   ACTION: Re-establish relationships

Example 2: Specific Account Health Analysis

User says: "Check the health of the Northwind account"

Actions:

  1. Retrieve Northwind account details
  2. Analyze all risk signals in depth
  3. Provide detailed breakdown with recommendations

Result:

NORTHWIND TRADERS - HEALTH ASSESSMENT
Overall Risk: WARNING (62/100)

ACTIVITY ANALYSIS:
- Last interaction: 28 days ago (email)
- Trend: Declining (45% fewer touchpoints vs. prior 90 days)

SUPPORT ANALYSIS:
- Open cases: 2 (1 high priority)
- Recent escalation: Yes (3 days ago)
- Sentiment: Slightly negative

OPPORTUNITY ANALYSIS:
- No new opportunities in 6 months
- Last deal: Won 8 months ago

RECOMMENDATION:
Schedule customer success call to address open cases and explore expansion opportunities.

Example 3: Renewal Risk Analysis

User says: "Show me accounts with renewals coming up that are at risk"

Actions:

  1. Filter accounts with renewals in next 90 days
  2. Cross-reference with risk signals
  3. Prioritize by revenue and risk score

Result:

AT-RISK RENEWALS (Next 90 Days):
1. Alpine Ski House - $150K ARR - Renews in 30 days
   Risk: High engagement drop + unresolved escalation
   
2. Tailspin Toys - $80K ARR - Renews in 60 days
   Risk: Budget freeze mentioned in recent call notes

Troubleshooting

Error: No risk data available

Cause: Sales Insights or Relationship Analytics not enabled Solution:

  • Fall back to activity count analysis
  • Use support case data as primary signal
  • Calculate manual engagement score from activitypointer

Error: Too many false positives

Cause: Thresholds too sensitive for organization's engagement patterns Solution:

  • Adjust activity threshold based on account tier
  • Consider industry-specific baselines
  • Weight signals based on historical churn correlation

Error: Missing support case data

Cause: Customer service not using Dynamics 365 for cases Solution:

  • Focus on activity and opportunity signals
  • Consider integrating external support data
  • Use activity notes for sentiment analysis

常见问题

Account Risk Early Warning AI 技能有什么作用?

Identifies accounts showing warning signs of churn by analyzing activity trends, support cases, and engagement signals. Scores risk and prioritizes intervention targets. Use when user asks "which accounts are at risk", "churn risk analysis", "find accounts that might leave", "customer health check", "at-risk customers", "retention warning signs", or "account health score".

为什么在 TypingMind 中使用 Account Risk Early Warning?

因为您只需安装一次,就能搭配任何模型使用。Account Risk Early Warning 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Account Risk Early Warning?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/microsoft/dataverse-business-skills/tree/main/skills/account-risk-early-warning。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Account Risk Early Warning?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Account Risk Early Warning 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Account Risk Early Warning 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Account Risk Early Warning AI 技能免费吗?

是的。microsoft 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇