HomeSalesforceFeatures DocsTry Demo

0Prerequisites

Supported editions

RiskDetect works with any Salesforce edition that supports Apex triggers and callouts. This includes Enterprise, Unlimited, Performance, and Developer editions. Professional Edition does not support Apex triggers.

1Install the Package

Install the RiskDetect unmanaged package using the link provided in your welcome email, or use the Salesforce CLI:

sf project deploy start --source-dir force-app/main/default --target-org your-org-alias

During installation, choose one of these access levels:

2Configure Permissions

The package includes a permission set called RiskRadar_Admin that grants access to the Risk Assessment custom object and fields.

Assign the permission set

  1. Go to Setup > Permission Sets
  2. Find and click RiskRadar_Admin
  3. Click Manage Assignments > Add Assignments
  4. Select the users who need access to risk data
  5. Click Assign

Required for all users

Without this permission set, users won't see Risk Assessment records or the dashboard component. Assign it to every user who needs risk visibility.

3Verify Remote Site Setting

The package includes a Remote Site Setting that allows Salesforce to call the RiskDetect API. Verify it's active:

  1. Go to Setup > Remote Site Settings
  2. Find RiskDetect_API
  3. Confirm the URL is https://riskdetect.app and the status is Active

4Enable Automatic Analysis

RiskDetect automatically analyzes Cases, EmailMessages, and Tasks using Apex triggers. These are active by default after installation.

What gets analyzed automatically

ObjectTriggerWhat's Analyzed
CaseAfter InsertCase Subject + Description
EmailMessageAfter InsertEmail Subject + Body (inbound only)
TaskAfter InsertTask Subject + Description (call logs)

Each trigger fires asynchronously using @future(callout=true), so it won't slow down record creation.

Disable specific triggers

If you only want to analyze certain objects, you can deactivate individual triggers in Setup > Apex Triggers. The package will still work with whichever triggers remain active.

5Add the Dashboard Component

The riskDashboard Lightning Web Component shows risk scores, trends, and an "Analyze Open Cases" button on any Account record page.

Add to Account page layout

  1. Navigate to any Account record
  2. Click the gear icon > Edit Page
  3. In the Lightning App Builder, drag riskDashboard from the component list onto the page
  4. Position it where you want (recommended: right sidebar or full-width section)
  5. Click Save and Activate

The component shows:

You can also add the riskScoreBadge component to Case or Task record pages to show individual risk scores inline.

6Verify It Works

Create a test Case to confirm everything is connected:

  1. Create a new Case with this description:
This is completely unacceptable. I've been waiting three weeks 
for a response. If this isn't resolved by Friday, I'm filing 
a complaint with the BBB and leaving reviews everywhere.
  1. Wait 5-10 seconds for the async callout to complete
  2. Check the Risk Assessments related list on the Case
  3. You should see a new Risk Assessment record with:
    • Score: 75-95 (critical range)
    • Risk Level: Critical or High
    • Signals: ultimatum language, BBB mention, timeline pressure

Check the debug log

If no Risk Assessment appears, check Setup > Debug Logs for errors. Common issues: Remote Site Setting inactive, API key not configured, or permission set not assigned.

7Package Contents

ComponentTypePurpose
Risk_Assessment__cCustom ObjectStores risk scores, levels, signals, and summaries
RiskRadarServiceApex ClassHandles API calls to RiskDetect and saves results
RiskRadarTriggerHandlerApex ClassRoutes trigger events to the service class
CaseRiskTriggerApex TriggerAuto-analyzes new Cases
EmailRiskTriggerApex TriggerAuto-analyzes inbound emails
TaskRiskTriggerApex TriggerAuto-analyzes call log Tasks
riskScoreBadgeLWCInline risk score display for record pages
riskDashboardLWCAccount-level risk dashboard with bulk analysis
RiskRadar_AdminPermission SetGrants access to Risk Assessment object and fields
RiskDetect_APIRemote Site SettingAllows callouts to https://riskdetect.app

Troubleshooting

Risk Assessment records not appearing

Score always returns the same value

Trigger not firing

Need help?

Email support@riskdetect.app or check the API documentation.