← Projects

Twilio-ChatBot

06/2022 - 07/2022

Tech Stack:

https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/flask/flask-original.svg
https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg
https://cdn.iconscout.com/icon/free/png-256/free-twilio-3521773-2945271.png?f=webp
GitHub:   Private

Description: A bot on WhatsApp for users to perform background check


Project Overview

This project is called WhatsApp Chat Bot. The bot can be used to communicate with the the real user. The purpose of the bot is to provide access to the Curbhub's user to upload their personal information and ID to the system.

How to use the bot

  1. Text "Hi" to Curbhub's business number on WhatsApp
  2. Provide your personal information
  3. Type a single number to confirm your text messages
  4. Repeat step 2 and 3 until you submit your ID
  5. Text "Check" to see your information
  6. Text "Done" to our bot

Technologies

  • Flask: provide web framework to ensure webhook
  • Twillio: use to create two-way communication between clients and server
  • Ngrok: temporarily push the local app to live for debugging and testing purposes
    • remember to make an account and have your token ready
    • then add your token to the executable file (ngrok authtoken )
  • PyCharm: this project is programmed entirely with in Pycharm

How the bot works internally

The program creates a folder for any user who initalizes chat with the bot.

Any message is texted by the user is stored in their designated file called "info.json" and ID is stored as f"ID.{their file extension}"

Video Walkthrough

Edge Cases

  • The bot does not accept any numbers or symbols for names.
  • The bot only accepts valid email domains (for example, @gmail.com, @yahoo.com) WhatsApp Bot Demo