How can I use my own site instead of jovo as the endpoint?


#1

Hi,

I have a skill in ALexa built with Jovo. Every time I test the skill from Alexa console I have to keep the jovo endpoint running (jovo run) from my local machine. This is making it very difficult for others to test the skill sitting somewhere else.

How can I make it so that I don’t have to depend on jovo endpoint? Can I use my site address for this purpose? The site is already running on https. So can I use it as the endpoint and choose the first option i.e. My development endpoint has a certificate...

Is there any additional work I have to do in order to use my site (https://subratasarkar.com) to be used as the endpoint?

Please suggest.

Thank you!


#2

I think the quickest way is to deploy it to AWS Lambda:

Hosting it on your own server is a little more challenging:


#3

Thank you! I am however having trouble uploading bundle.zip via AWS function console. It says the file is too big (4.3 MB!). I understand this is an Alexa / Amazon issue but may I please ask whether there is another option like uploading the entire code base from command line? I have ASK CLI installed, but wondering whether deploying using ASK CLI command at this stage can mess up the jovo bundle. Please suggest.

EDIT: After a bit of searching I found https://www.jovo.tech/tutorials/deploy-lambda-cli. But completing all the steps didn’t upload my code. I checked the end point. It is still using the local webhook (HTTPS).


#4

Finally I managed to make it via ARN! My codebase is about 5MB so I have to do some additional research on S3 bucket. Configured it, uploaded the bundle there and finally uploaded the code from the bucket. Everything seems to working fine now without local webhook running. :slight_smile:

Thank you very much @jan for your enormous help!


#5

Where is most of that size coming from? I’m not sure what a typical size is for Jovo, but if what you are saying is true that you had to do something special then it is probably worth looking into why yours is special…

I would make sure you aren’t uploading irrelevant resources (audio/video/images/docs/etc.) into your skill. And also I would look into differentiating what are dev dependencies from actual dependencies in the package.json file that specifies your Node config.