← Back to Docs

No-Code NBA Injection

Inject Next Best Action recommendations directly into your UI—no backend changes required.

How It Works

DiCorner's no-code NBA injection embeds a lightweight script tag in your app. When a user's cognitive scores cross a threshold, the script automatically renders a contextual intervention—such as a tooltip, banner, or simplified UI variant—without any backend code changes.

Configure triggers, placements, and intervention types from the DiCorner dashboard. The script handles rendering, tracking, and outcome measurement automatically.

Setup

Add this script tag before your closing </body> tag:

HTML
<script
  src="https://cdn.dicornerusa.com/nba-inject.js"
  data-api-key="dc_free_your_key"
  data-user-id="CURRENT_USER_ID"
  async
></script>

Dashboard Configuration

From the DiCorner dashboard, configure:

Triggers

Set cognitive score thresholds that activate interventions (e.g., DFI > 80, TH < 50).

Placements

Choose where interventions appear: inline tooltips, top banners, slide-in panels, or modal overlays.

Intervention Types

Select from pre-built templates: simplified UI variant, contextual help, urgency messaging, or trust reinforcement.

A/B Testing

Run experiments on 'Try Experiment' tier recommendations. DiCorner handles randomization and outcome tracking.

Example: Pricing Page Simplification

Trigger: Decision Fatigue Index > 80 on /pricing

Intervention: Replace 4-tier pricing table with simplified 2-tier comparison

Placement: Inline replacement (swaps existing pricing component)

Measured Outcome: +12% trial-to-paid conversion for users who saw the simplified view

Available on Growth and Enterprise plans.