Offer Management
Details about the Offer Management user journey
The onOfferManagement
callback
onOfferManagement
callbackWhen the Assistant detects that the user is trying to enquire about offers, it invokes the callback associated with the Offer Management user journey. The callback looks like this:
Open the offers page
Return the ViewOffer as the state and SUCCESS as the condition
Sample Utterances that could trigger Offers
The following are some examples of commands that could trigger this journey
"where is my offer"
"any offers"
"show me offers"
Supported AppState
s
AppState
sThe following AppState
s are supported.
VIEW_OFFER (
ViewOfferAppState
): To be returned when the app handles the navigation requestUNSUPPORTED (
UnsupportedAppState
): To be returned when the app is not ready to handle navigation yet. The Assistant will speak out an appropriate prompt to the user.
Supported Condition
s
Condition
sThe following Condition
s are supported for each of the AppState
s supported by the Assistant
App State
App State Condition
Description
VIEW_OFFER (ViewOfferAppState)
SUCCESS
FAILURE
The offer page was successfully opened
There was a failure while opening the offer page
Assistant Prompts
Based on the App State and the Condition that was set, the Assistant will speak out an appropriate message to the user. You can examine the default set of prompts configured for the Assistant through the Console and also customize it to your needs. Refer to the Customizing the Assistant section for details.
Last updated
Was this helpful?