Recovery
Recovery
Recovery configures failure retry and optional leave or report exits.
The default is off.
leave and report are a URL string or a callback.
Omitting an entry does not invent that exit.
Prerequisites
| Item | Requirement |
|---|---|
| Host page | Serves HTTPS and can load a third-party script |
| Persona | loyalty-concierge |
| Bundle global | window.AugeoChatSdkLoyaltyConcierge |
Load a pinned production loyalty bundle first.
Read Capabilities for the shared true / false / object contract.
Values
| Value | Effect |
|---|---|
| omitted | No recovery destinations |
false | No recovery destinations |
true | Enabled with no exits |
| object | Keeps only supplied onRetry, leave, report |
Blank URL strings are dropped. A dropped field does not add that exit.
Parameters
| Parameter | Default | Type |
|---|---|---|
onRetry | unset | () => void or Promise |
leave | unset | URL string or callback |
report | unset | URL string or callback |
onRetry
Pass a host hook that runs when the member retries.
const { AugeoAssistant } = window.AugeoChatSdkLoyaltyConcierge;
new AugeoAssistant({
container: '#chat-host',
auth: { getToken: () => bearerToken },
capabilities: {
recovery: {
onRetry: () => retryHostFlow(),
},
},
});Retry still uses the widget replay path.
onRetry also runs so the host can refresh local state.
leave
Pass a URL or callback to offer a leave exit. Omit it to keep leave off the notice.
capabilities: { recovery: { leave: '/account' } }The failure notice includes Leave and goes to /account.
capabilities: { recovery: { leave: () => closeHostChat() } }Leave runs closeHostChat instead of navigating.
report
Pass a URL or callback to offer a report exit. Omit it to keep report off the notice.
capabilities: { recovery: { report: '/feedback' } }The failure notice includes Report and goes to /feedback.
capabilities: {
recovery: {
leave: '/account',
report: () => openHostReport(),
},
}Leave and Report both appear.
Report runs openHostReport.
Leave still navigates to /account.
Related pages
| Topic | Page |
|---|---|
| Product scope | Overview |
| Constructor fields | Configuration |
| Placement | Surfaces |
| Capability list | Capabilities |
| History | History |
| Privacy | Privacy |
| Message actions | Message actions |
| Chat | Chat |
| Suggestions | Suggestions |
| Wishlist | Wishlist |
| Event options | Event options |
| Analytics | Analytics |
| Support | Support |
| Devtools | Devtools |
| DOM events | Events |
| Public types | API |