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:
When we get shown a product, we should also be asked whether we want to add this to our cart. No matter our answer, we should then be asked whether we want to checkout, add another item, or save our cart. We need to try each of these methods, starting with adding another item:
As...