Configuring verbal commands

Modified on Sun, 2 Mar at 6:39 PM

Disable microphone and chat window  DEFAULT UI 

The @feature speech marker enables the user to tell the Digital Person to switch (ON/OFF) the Microphone or the Chat/Transcript Window during a conversation.



Note: The UI Feature ON/OFF speech markers:
    - Is applicable only for the Default UI.
    - Requires Soul Machines SDK 12 or above.




Example of UI Feature Toggle - Microphone OFF


Conversation Engineers/Writers can use the “@feature” speech marker in the NLP conversation scripts that directs the Digital Person to deactivate or activate a UI feature in response to a user’s verbal request.

Example NLP conversation usage:
Sure, let me turn on your microphone. @feature(microphone, on)

Okay, @feature(microphone, off) I've turned off your microphone.

Sure, let me close the transcript @feature(transcript, off) for you.

 

Sample Dialogflow Intent:

Dialogflow Example Intent for UI Feature Toggle Speech Marker


Note: In IBM Watson implementations, the “@feature” speech marker in the conversation Response must be escaped with a backslash, e.g.: \@feature(microphone, on).


Toggle widget layout  WIDGET 

Using layout feature markers you can trigger widget to change layout based on the arguments. The first argument layout means to toggle widget layout, the second argument can be float or fullFrame , widget will change to the layout specified, and any other argument will be ignored.

Example NLP conversation usage:

Changing to float layout @feature(layout, float)
Changing to full frame @feature(layout, fullFrame)



NOTE: The widget layout speech markers is applicable only for the Widget.




Widget Layout Toggle Demo



Dialogflow Example Intent for Widget layout


Note: If you put these markers ahead of other text response, widget will change the layout first, then the Digital Person will start talking. If you place them at the end of the sentence, DP will talk first and then update the layout.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article