Testing the whole bot

Now that we have created all of the Lambdas and tested that they all work, we can put it all together and build our chatbot. On the Lex console for this chatbot, go through each of the intents and make sure that they are all being fulfilled using the correct Lambda, and then we can click Build at the top of the page.

Once it has finished building, we can start testing it out. We can start with finding a product. Typing I want to buy a shirt starts the productFind intent flow, and we can find the stock levels of the found item:

Testing productFind

When we get shown a product, we should also be asked whether we want to ...

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.