Programmatic Conversations

Invoking the Assistant programmatically

Sometimes the app might want to launch the Slang Voice Assistant on its own, without the user explicitly launching it via the Trigger. This could be achieved by calling the startConversation API and passing the name of theUserJourney that is to be launched. The Assistant will speak out the greeting message associated with that user journey in that case.

Android Native
Flutter
Android Native
SlangRetailAssistant.startConversation(AssistantUserJourney.SEARCH);
Flutter
SlangRetailAssistant.startConversation(AssistantUserJourney.SEARCH);

‚Äč