endoplasmic / google-assistant

A node.js implementation of the Google Assistant SDK
MIT License
283 stars 75 forks source link

How to make it work? #102

Open arthurabreu1 opened 3 years ago

arthurabreu1 commented 3 years ago

Hello,

I am new to JS / NODE.js... sorry in advance for the silly question. Wondering how I can make this work... I have installed node.js on my PC. Trying to run executing npm run and the only script there is called test. when I try npm run test it just have a code to exit... wondering how to make the examples work.

Thanks

Aymkdn commented 3 years ago

You have to create a JS script with the provided example : https://github.com/endoplasmic/google-assistant#usage

Make sure to modify with your own information. Then run node with the created script.

arthurabreu1 commented 3 years ago

thank you, it worked... I am now trying to use the text-based conversation with my google assistant... auth is working fine apparently but can't seem to get an answer... image

Aymkdn commented 3 years ago

You may want to try this sample : https://github.com/endoplasmic/google-assistant/blob/master/examples/console-input.js

endoplasmic commented 3 years ago

Yah sadly even though you hear the response it doesn't always come with a text string :( Glad you got it working though!

arthurabreu1 commented 3 years ago

yeah, that's exactly what I noticed. some commands return a text response but others don't. not sure why. but thanks a lot for helping me to get this working.