Starting and stopping dialog sessions

To start a dialog session with the AI agent, you need to activate it in the app. You can do it in the following ways:

  • Click or tap the AI agent button displayed on top of the app UI.

  • Use the wake word. Make sure the wake word option is enabled for your AI agent project.

  • Use the activate() method of the Alan AI SDK to activate the AI agent programmatically.

To deactivate the AI agent and stop the dialog session, do either of the following:

  • Click or tap the AI agent button

  • Say one of the following phrases:

    • Thanks Alan

    • Thank you Alan

    • Alan thank you

    • Alan thanks

    • Stop Alan

    • Alan stop

  • Use the deactivate() method of the Alan AI SDK to deactivate the AI agent programmatically

    Note

    You can deactivate the AI agent with voice only while Alan AI is listening to you. If you say one of the above phrases while Alan AI is saying something, the AI agent will not be deactivated.