sam) for setting up and deploying the assistant to your Pi. Make sure it is installed on your computer. If not, check out the Getting Started Guide. Once installed, connect to your Pi:
assistant_url, and replace it with
assistant_id: YOUR_ASSISTANT_ID, where
YOUR_ASSISTANT_IDis the ID of your assistant:
skillssection in the Snipsfile. Remove this section, and replace it with the following:
calculator, has been added. It reacts to two intents,
GetProductwhich are present in the Calculator Bundle.
actionsection contains a code block with some handler code. The code here is written in Python. It must be delimited by the
%}characters. In this code, an object
snipsis accessible. It gives access to two objects:
snips.intentobject gives you access to slot values:
snips.dialogueobject can be used to speak a sentence, using the
speak()method.For more information on the
snipsobject, see the Snips Object Reference.
sam testcommand. For instance, to test that the app properly reacts to a
GetSumintent, enter the following command:
TTS says: 8.