Create a Server less Chatbot using Amazon Lex and integrate with Facebook.
Hello everyone, I am I. Vishnu Priya(190031367). This is an article based on building a Serverless AWS chatbot along with Facebook integration.
Introduction:
AMAZON LEX: Amazon Lex is an interesting AWS service for building conversational interfaces for applications using voice and text. With Amazon Lex, the same conversational engine that powers Amazon Alexa is now available to any developer, enabling you to build sophisticated, natural language chatbots into your new, own and existing applications.
Flow(how exactly it works):
Step 1 → AWS LAMBDA : To develop Business Login in both AWS Lambda Services and
AWS IAM to trigger AWS Bot
Step 2 → AWS LEX : Create a chatbot using LEX
Step 3 → Facebook Integration
Step 4 → Testing
WORKING:
STEP-1:
LOGIN TO YOU AWS MANAGEMENT CONSOLE AND MOVE TO THE SERVICE: AWS Lambda and create a function "myrestaurantbot".
Create an IAM role:
STEP-2: Create a Chatbot using LEX and test it.
Give the intents and slots of your own convenience for making the bot effective and clear.
Yes, we are done with the chat bot creation and this must be integrated to Facebook. In order to integrate with Facebook we need to create a Facebook Page related to the bot information.
Common let's do that First!
Recommended by LinkedIn
Login to you Facebook account and create a page!
STEP-3: Integration
In the channel integrations add channel-Facebook
Create an account at Facebook developers page and create an App.
Add the callback URL to app and integrate the Facebook page with the app by giving the secret access key.
That's it your Facebook chatbot is ready!
STEP-4: Testing
Open your account and search for the page.
Start testing the bot!
So the final bot is....!
CONCLUSION:
So, finally we have created the chatbot and this is my AWS Serverless project as a part of peer mentoring through which we can book a table for any meal in a day at the hotel.
I sincerely thank our Mentor and guide Mr. Naresh Vurukonda sir for giving us this opportunity to do real time projects and many interesting tasks in AWS with their constant support and effort. Hope you have enjoyed reading this article.
Thank you!!!