How it works
- 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.
- 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.
- 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
resurfaceAfterMson 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.- Contact AGO to turn on proactive mode for your workspace. AGO can also turn it off for specific agents.
- Declare the triggers in your application with the SDK:
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 emitsnudge: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.
