1
1 Comment

How to develop a Serverless Chatbot with AWS Amplify, Amazon Lex & React

  1. 1

    First, I would keep your front end react UI separate from the backend chatbot. those things separate.

    The basic architecture would be one of the following:
    Option1: FrontEnd/React --> Lex (Via PostText/PostContent and PutSession) --> Lambda fulfillment function

    Option2: FrontEnd/React --> APIGW/Lambda --> Lex (Via PostText/PostContent and PutSession) --> Lambda fulfillment function

    Option 1 is the simplest way to build an MVP and get something out of the door, but the second option provides a contract and abstracts certain things away. This is very important, because you my find that constructing your bots in different ways may prove beneficial to your use case, but you don't want to be in the situation where you are constantly trying to update the front end to reflect that.

Trending on Indie Hackers
I've built a 2300$ a month SaaS out of a simple problem. 19 comments I'm building the MCU of SaaS 💎 12 comments 🔥 Roast My Landing Page 11 comments Where can I buy newsletter ad promos? 8 comments Key takeaways growing MRR from $6.5k to $20k for my design studio 6 comments YouTube? How to start 5 comments