Launching the Assistant Programmatically

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.

SlangRetailAssistant.startConversation(AssistantUserJourney.SEARCH);

Last updated