Connecting API Gateway

API Gateway is a service that allows us to create URLs that can accept all of the normal API request methods. Start by going to the API Gateway service in AWS and clicking Get Started.

When creating our first API, we should select New API and then we can give this API a name and Description, and click Create API:

New API

You should now be on the configuration page for your API, but there are currently no endpoints created. Click on the Actions dropdown and select Create Resource. Doing this allows you to have the APIs for all of your Lex chatbots on a similar URL:

Creating a resource

Name the resource shopping-bot

Get Hands-On Chatbot Development with Alexa Skills and Amazon Lex now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.