Create a Server less Chatbot using Amazon Lex and integrate with Facebook.

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".

No alt text provided for this image

Create an IAM role:

No alt text provided for this image


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.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

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!

Login to you Facebook account and create a page!

No alt text provided for this image

STEP-3: Integration

In the channel integrations add channel-Facebook

No alt text provided for this image

Create an account at Facebook developers page and create an App.

No alt text provided for this image

Add the callback URL to app and integrate the Facebook page with the app by giving the secret access key.

No alt text provided for this image

That's it your Facebook chatbot is ready!

STEP-4: Testing

No alt text provided for this image

Open your account and search for the page.

No alt text provided for this image

Start testing the bot!

No alt text provided for this image

So the final bot is....!

No alt text provided for this image

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!!!



To view or add a comment, sign in

More articles by Vishnu Priya Ila

  • Functional and Concurrent Programming

    INTRODUCTION: TOPICS COVERED-FUNCTIONAL PROGRAMMING IN SCALA, TAIL-RECURSIVE FUNCTIONS USING SCALA, OBJECT-ORIENTED…

  • Continuous Delivery and DevOps

    Introduction: DevOps is the acronym given to the combination of Development and Operations. It refers to a…

Others also viewed

Explore content categories