A Salesforce-powered Alexa Skill for the DreamHouse sample application.
Follow the instructions below to create your own instance of the skill:
If you haven't already done so, follow these instructions to install the DreamHouse sample application.
If you haven't already done so, follow the steps below to create a Salesforce connected app:
-
In Salesforce Setup, type Apps in the quick find box, and click the Apps link
-
In the Connected Apps section, click New, and define the Connected App as follows:
- Connected App Name: MyConnectedApp (or any name you want)
- API Name: MyConnectedApp
- Contact Email: enter your email address
- Enabled OAuth Settings: Checked
- Callback URL: http://localhost:8200/oauthcallback.html (You'll change this later)
- Selected OAuth Scopes: Full Access (full)
- Click Save
-
Make sure you are logged in to the Heroku Dashboard
-
Click the button below to deploy the Alexa Skill on Heroku:
-
Fill in the config variables as described.
- For SF_CLIENT_ID, enter the Consumer Key of your Salesforce Connected App
- For SF_CLIENT_SECRET, enter the Consumer Secret of your Salesforce Connected App
- For SF_USER_NAME, enter the the username of your Salesforce integration user
- For SF_PASSWORD, enter the the username of your Salesforce integration user
If you don't already have an AWS account, follow the steps below to create one:
-
Open a browser and access the AWS Console: http://aws.amazon.com/
-
Click Create an AWS Account
-
Login to the Alexa console: https://developer.amazon.com/edw/home.html
-
Click Get Started in the Alexa Skills Kit tile
-
Click the Add New Skill button
-
Fill in the Skill Information screen as follows:
- Skill Type: Custom Interaction Model
- Name: DreamHouse
- Invocation Name: dreamhouse
-
On the Interaction Model Screen:
-
Paste the following JSON document in the Intent Schema box:
{ "intents": [ { "intent": "SearchHouses" }, { "intent": "AnswerCity", "slots": [ { "name": "City", "type": "AMAZON.US_CITY" } ] }, { "intent": "AnswerNumber", "slots": [ { "name": "NumericAnswer", "type": "AMAZON.NUMBER" } ] }, { "intent": "Changes", "slots": [ { "name": "City", "type": "AMAZON.US_CITY" } ] }, { "intent": "AMAZON.HelpIntent" } ] }
-
Paste the following text in the Sample Utterances box:
SearchHouses for listings SearchHouses to search for houses SearchHouses what's for sale SearchHouses what is for sale AnswerCity {City} AnswerNumber {NumericAnswer} Changes for changes Changes for price changes
-
-
On the Configuration screen, select HTTPS, and enter the URL of the Heroku app you deployed in Step 3, followed by the /dreamhouse path. For example:
https://myalexabot.herokuapp.com/dreamhouse
-
On the SSL certificate screen, select My development endpoint is a subdomain of a domain that has a wildcard certificate from a certificate authority
-
You are now ready to test the DreamHouse skill.