Skip to main content
Proactive mode lets an AGO agent embedded with the JavaScript SDK offer help before the user opens the chat. The SDK watches for friction on the page, such as a long pause on a form step, repeated clicks that do nothing, or back-and-forth between two pages, and shows a small nudge the user can accept or dismiss. The regular chat keeps working as before.

How it works

  1. Signals: the SDK computes friction signals in the browser: time on a page, inactivity, back-and-forth navigation and rage clicks. Your developers can add form-field error counts, JavaScript errors captured on the page, and the page state they already share with the agent (for example a funnel step left incomplete). The SDK does not read the values users type into fields.
  2. Triggers: your developers declare triggers in your application code, for example “on this page, after 20 seconds of inactivity, with this page state, offer help”. A trigger either shows a fixed message right away or asks the AGO agent whether to step in and what to say.
  3. Nudge: the nudge is a small, dismissable message near the chat launcher, never a blocking pop-up. It can offer a one-click action (for example “Want me to pre-fill this for you?”) or open the chat with the context of what the user was doing.

Limits on nudges

  • Each trigger has a cooldown, and you can cap the number of nudges per session and per day.
  • A dismissed nudge stays hidden for 24 hours by default; set resurfaceAfterMs on a trigger to change this.
  • Only one nudge is shown at a time, and none while the user is already chatting.
  • Your application can let users opt out with client.proactive?.optOut().

Enable proactive mode

Proactive mode is off by default. Until it is turned on for your workspace, the SDK never shows a nudge, whatever your application code declares.
  1. Contact AGO to turn on proactive mode for your workspace. AGO can also turn it off for specific agents.
  2. Declare the triggers in your application with the SDK:
You can also pass the same options as proactive when you create the AgoClient. In React, render <AgoNudge> to display nudges; in other frameworks, listen for the nudge:ready event and render your own.

Measure the results

The SDK emits nudge:shown, nudge:dismissed and nudge:accepted events. Listen for them to send each nudge’s outcome to your own analytics and see which triggers help users and which ones to tune or remove.