Rocket.Chat Alexa skill that works as client for multiple servers
-
Until we have UI ready on Rocket chat, You can test this skill by hosting server on Heroku or any hosting service of your choice.
-
After server is up and running you can use Postman or CURL as per your choice to send Servername, ServerURL, UserID and Token and get a pincode. To generate UserID and Token go to Rocket Chat => My Account => Personal Access Token. Header Syntax can be found here
-
Clone the repository
git clone https://github.com/RocketChat/alexa-rc-multiserver-client
-
Go To Root Directory,
cd alexa-rc-multiserver-client
-
Deploy Skill,
ask deploy
-
After deploying skill, goto DynamoDB and click on Create Table
-
Give A Table name. For Primary Key use 'userID' as key name.
-
Click on Add sort key, and give 'server' as key name.
-
Click on Create
-
Once the table is ready, go to your lambda function and give the following values:
DDB_NAME : Your DynamoDB Table Name MULTISERVERPROXY_URL : Your Proxy Server URL
- Example Config:
-
To Add a server say : Alexa, Add Server followed by pincode generated in the proxy server request.
-
To Switch a Server : Alexa, Switch Server followed by servername you provided.
-
Currently this skill supports only PostMessageIntent and GetLastMessageIntent. Also don't use keyword Alexa as a channelname or in utterances as it will not work.