Added an 'app', intent recognized, but no response

My initial assistant had only @ozie’s ‘Calculator’ app installed. With it inside the assistant.zip file, I have gotten things to work. I went back to Snips Console and added the ‘Today’ app by Likhita in there as well. The steps I took :

  • mv assistant assistant.bak
  • unzip new_assistant.zip
  • snips-skill-server install_skills

The output of this last command was

[12:38:09.546403] INFO :snips_skill_server_lib::installer: installing snippets
[12:38:09.546701] INFO :snips_skill_server_lib::installer: ->rendering templates
[12:38:09.546814] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/Likhitha.Today"
[12:38:09.546920] INFO :snips_actions_templates_engine_lib: parsing snippets dir "/usr/local/share/snips/assistant/snippets/Likhitha.Today/python2"
[12:38:09.547526] INFO :snips_actions_templates_engine_lib: parsed 3 snippets
[12:38:09.547576] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/ozie.Calculator"
[12:38:09.554354] INFO :snips_skill_server_lib::installer : ->running setup.sh
[12:38:09.554526] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Likhitha.Today"
[12:38:17.952611] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculator"
[12:38:18.622386] INFO :snips_skill_server_lib::installer : installing git apps
[12:38:19.893259] INFO :snips_skill_server_lib::installer : ->running setup.sh
[12:38:19.893298] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculator"
[12:38:20.650555] INFO :snips_skill_server_lib::installer : install done

After this, I restarted all Snips services, fired up snips-watch and saw the following upon testing :

[12:47:25] [Hotword] detected on site mac, for model hey_snips
[12:47:25] [Asr] was asked to stop listening on site mac
[12:47:25] [Hotword] was asked to toggle itself 'off' on site mac
[12:47:25] [Dialogue] session with id 'a6438d4f-7445-4721-9e0d-727bdc9e6c82' was started on site mac
[12:47:25] [AudioServer] was asked to play a wav of 41.1 kB with id 'b9bc75f5-1a95-461a-a572-91468b99daa8' on site mac
[12:47:26] [AudioServer] finished playing wav with id 'b9bc75f5-1a95-461a-a572-91468b99daa8'
[12:47:26] [Asr] was asked to listen on site mac
[12:47:28] [Asr] captured text "what time is it" in 2.0s
[12:47:28] [Asr] was asked to stop listening on site mac
[12:47:28] [AudioServer] was asked to play a wav of 93.1 kB with id 'fdf91ae7-3b54-4e51-9412-75b61edd1c4b' on site mac
[12:47:30] [AudioServer] finished playing wav with id 'fdf91ae7-3b54-4e51-9412-75b61edd1c4b'
[12:47:30] [Nlu] was asked to parse input "what time is it"
[12:47:30] [Nlu] detected intent Likhitha:timeNow with confidence score 1.000 for input "what time is it"
[12:47:30] [Dialogue] New intent detected Likhitha:timeNow with confidence 1.000
[12:47:35] [Dialogue] session with id 'a6438d4f-7445-4721-9e0d-727bdc9e6c82' was ended on site mac. The session was ended because one of the component didn't respond in a timely manner
[12:47:35] [Asr] was asked to stop listening on site mac
[12:47:35] [Hotword] was asked to toggle itself 'on' on site mac

I was hoping the different .log files might shed some light on why things are not working, but I do not see anything in there as to why things are not working. Just hints of them not working. So I don’t know how valuable adding them here is but the content is over at PasteBin in case useful. These are the additions to the log file for two Snips calls; the first is to the ‘Calculator’ app and does work, the second is to the ‘Today’ app and does not sound a response.

Just to confirm, I tried and the ‘Calculator’ app does still work just fine.

What step did I miss?

Hi!

Most probably your app does not capture the intent, is not running or something like that.

The ‘app’ was added to my assistant from the App Store on console.snips.ai, its meant to tell me today’s date. I’d expect apps from the App Store to work?!

well the app part is installed, as the intent matched [Nlu] detected intent Likhitha:timeNow with confidence score 1

so you need to see what’s going on… is the snips-skill running? running with no errors?
after that I would go to the skills action folder and manually run the action intent python action-xxxx.py and watch the output… might find it is missing some python library file or something, or there is a bug in the code and its crashing - so snips does the right things, it asks it for the time, but the app crashes and so never responds

I can’t find any action-*.py files in the assistant directory at all, neither for the ‘app’ that is working (your calculator) or the one that is not. For the app that is not working, there are some .snippet files containing Python code. Running them from the command line doesn’t yield any return as it seems the return is put into a variable return_sentence.

I ended up adding a third ‘app’ from the Console, SirBuildsALot’s ‘Greetings’ app, to see how that would differ. It follows the same structure as the ‘Today’ app but it does work.

So perhaps the ‘Today’ app is just broken somewhere.

I consider this solved now. The steps I take to add to the assistant from the Console are correct, it was just the app I added was not functioning properly. So, I know how to add skills to the assistant from the Console. Once I have Snips running in the configuration I want (without audio on the base, using satellites - thread here), I will start exploring building my own additions.

Thanks for your help, @ozie. Much appreciated.

running snips-skill-server install_skills builds snippets into py files… it also installs the app github repos too into the skills folder

this folder is not in the assistant folder… i think it is something like /usr/share/snips/skills ( i have mine hard coded in the toml file to a folder i created, which is why i said ‘something like’)

in this folder you will find all the action python files to manually run and debug
29%20pm

I found the above in /usr/local/var/snips/skills on my Mac (I installed Snips through HomeBrew) and indeed see .py files for all apps. Simply running them from the command line throws an ImportError: No module named hermes_python.hermes so perhaps something wrong with the Python install I invoke from my path. Thanks very much though for the explanation, I learned some more about Snips from you yet again!

I don’t feel the need to troubleshoot this any further at this very moment. My focus is now on getting the base/satellite setup up and running. Thanks for your constant help though!