Build Custom App
Last updated
Last updated
Now let's build an app that interacts with the REST API integration.
On the left navigation, go to Apps-> Custom Apps -> New Custom App.
This step is where you connect the integration with REST API to your custom app. You are creating a data source which your app will feed from.
Once the app is created and is available on your list of custom apps, click on it to discover the setup for the app.
Go to Data Sources tab and click on Create New Data Source.
On the resulting pop up, provide a unique data source name and on the Integration Configuration, make sure to select the integration you created in pre-requisites.
Click on Save to save the data source.
Now let's create some methods that interact with the APIs.
The request type of method depends on the data source.
On the Methods tab, click on Add New Method. Also note that, on the Data Source drop down, the data source created in the precceding step is selected.
A custom app can have multiple data sources , integrating with multiple third party systems.
You are setting up on which endpoint you want to send request to and how you want the result output to be presented to the user.
Save and Test will save the method and lead you to a screen where you can test if the method is providing the correct result.
Anything inside "{{}}" is read as an input. So, on the test screen, the user is allowed to provide value for the input.
Once you're convinced that the method is now functioning correctly, move to next step to create intents.
On the intent tab, click on Create New Intent. On the resulting pop up, fill in following details and save.
Next step is to create slots. You create slot corresponding to each input parameter. In our case, Person / name is the input parameter we are expecting from the user.
Go to Slots tab and click on Create New Slot.
Note: The slot name shall match with the input parameter name in method screen.
Utterances are what we expect the user to say to the app to request for something.
On the Utteranaces tab, click on Create New Utterance.
You can access the parameter in the utterance itself by typing '{' on the value field. It'll display the list of slots you can use.
Fill the details and click on Save. Now, let's create Input corresponding to the intent.
Create a new input from the Input tab. Add in following details and click on Save.
Once you've created the input, the next step is to manage parameters for the input.
Click on Manage Parameters and in the resulting screen, click on Add Input Parameter. You need to create Parameters corresponding to every slot.
You shall be able to see the created parameter in the list of parameters.
Now that the app has been setup, let's prepare to publish it to Alexa. You can publish the same app across multiple channels by creating separate publish profiles.
On the Publish tab, click on Add App Publishing and provide following details and Save.
Once the profile is ready, click on the action button and click Publish to Alexa.
On the resulting screen, select the Amazon LWA account you want to publish the app to and click on Publish to Alexa.
If you do not already have , you can click on Add Amazon Account for LWA and proceed from there.
On successful completion, you'll get a message regarding the status of app deployment. You'll also get a step by step progress on the app deployment.
You can now click on Go to Alexa Skill and proceed testing the app on Alexa developer console.