Creating a chatbot with Amazon Lex, AWS Lambda, and Integrating with WhatsApp (Part 3).
Hope you had created and tested your chatbot successfully.
Now it’s time to take it to the world. Let’s integrate with WhatsApp using Twilio.
Step4 — Integrating with WhatsApp
- Create an account on Twilio.
- Verify your account.
- After all verifications, you will be asked few questions.
-> Which Twilio product are you here to use? WhatApp
-> What do you plan to build with Twilio? Contact center
-> How do you want to build with Twilio? With code
Click on continue.
4. Activate your sandbox by accepting terms and conditions.
5. Now you need to send a whatsapp message to the given number with the code mentioned.
6. Click on next send a one-way messaging.
7. You can send a dummy message to your whatsapp by click on make request.
8. Click on the python code and save the Account Id and auth token. If you couldn’t find it there, open settings and there you go.
9. Click on next.
10. Open AWS Lex, and click on publish, and go to channels. On the left side, you can find Twilio SMS.
11. Give all the details, and Account SID, Auth key with the values which you saved earlier.
12. Click on activate, you will get a endpoint URL. Paste that in Twilio sandbox.
13. Paste that in this field: When a message comes in, and click on save.
14. Now go to whatsapp and start your conversation with Bot!!
Hurrah!! you had successfully created a bot and integrated it with Whatsapp.
Here are the links to part 1 and part2.
If you had any doubts, feel free to comment.
Hope you enjoyed it!