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_ID
is the ID of your assistant:skills
section in the Snipsfile. Remove this section, and replace it with the following:calculator
, has been added. It reacts to two intents, GetSum
and GetProduct
which are present in the Calculator Bundle.action
section contains a code block with some handler code. The code here is written in Python. It must be delimited by the {%
and %}
characters. In this code, an object snips
is accessible. It gives access to two objects: snips.intent
and snips.dialogue
. The snips.intent
object gives you access to slot values: firstTerm
and secondTerm
. The snips.dialogue
object can be used to speak a sentence, using the speak()
method.For more information on the snips
object, see the Snips Object Reference.GetDifference
and GetQuotion
intents.sam test
command. For instance, to test that the app properly reacts to a GetSum
intent, enter the following command:TTS says: 8
.Hey Snips, what is 10 times 15