LogoLogo
  • Overview
  • Voice Assistants as a Service
  • Voice Assistant Concepts
  • Voice Assistant Components
  • Voice Assistant Types
  • Platform & Languages Supported
  • Getting Started
    • Integrating Slang CONVA into Retail e-Commerce Apps
      • Setting up Slang CONVA
      • Customizing the Assistant
      • Code Integration
        • CONVA Search
          • Advanced Topics
        • CONVA Plus
          • Supported User Journeys
            • Search
            • Order Management
            • Checkout
            • Offer Management
            • Navigation
    • Integrating Slang CONVA into Travel e-Commerce Apps
      • Setting up Slang CONVA
      • Code Integration - Basic Steps
      • Supported User Journeys
        • Search
        • Navigation
  • Advanced Topics
    • Asynchronous Action Handling
    • Changing the Assistant behavior at runtime
      • Launching the Assistant Programmatically
      • Changing the language of the Assistant
      • Accessing and Setting User Journey Context
    • Advanced Assistant Customizations
      • Customizing the Visual nature of the Assistant
      • Customizing the conversational aspects of the Assistant
      • Training the Assistant to recognize additional data
        • Customizing Retail Subdomain Data
  • Sample Apps
    • Slang Playground App
    • Slang Retail e-Commerce App
Powered by GitBook
On this page
  • The onOfferManagement callback
  • Sample Utterances that could trigger Offers
  • Supported AppStates
  • Supported Conditions
  • Assistant Prompts

Was this helpful?

  1. Getting Started
  2. Integrating Slang CONVA into Retail e-Commerce Apps
  3. Code Integration
  4. CONVA Plus
  5. Supported User Journeys

Offer Management

Details about the Offer Management user journey

The onOfferManagement callback

When 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:

public OfferAppState onOfferManagement(OfferInfo offerInfo, OfferManagementUserJourney offerManagementUserJourney) {
TBD
TBD
  1. Open the offers page

  2. Return the ViewOffer as the state and SUCCESS as the condition

public OfferAppState onOfferManagement(OfferInfo offerInfo, OfferManagementUserJourney offerManagementUserJourney) {
    // Navigate to the offers page
    return new ViewOfferAppState(ViewOfferAppState.SUCCESS);
}
TBD
TBD

Note that currently, the OfferInfo object does not contain any additional data that would be useful to further understand the kind of offer the user is looking for. That could get added in the future

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 AppStates

The following AppStates are supported.

  • VIEW_OFFER (ViewOfferAppState): To be returned when the app handles the navigation request

  • UNSUPPORTED (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.

The Slang Retail Assistant provides a special AppState 'WAITING' (WaitingAppState) that is common across all UserJourney types for completing asynchronous operations within the callback. Refer to the Asynchronous Action Handling section for details of how to deal with asynchronous operations.

Supported Conditions

The following Conditions are supported for each of the AppStates 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.

PreviousCheckoutNextNavigation

Last updated 3 years ago

Was this helpful?