whatsappstockbot
WhatsApp Stock Market Bot
About
Conversational chatbots are the trend of the modern world. Virtual assistants are as relevant these days as human assistants.
Whether it's:
- Ordering a Pizza or Ordering new clothes
- Playing music or a new movie
- Switching off lights or making coffee
- Checking stock price or a new bitcoin alert
Chatbots are everywhere.
This is a working WhatsApp conversational chatbot. This conversational chatbot uses Twilio, Python, and MarketStack. A conversational chatbot on WhatsApp which acts just like your personal finance assistant.
Technologies Used
- Twilio API to send messages to the subscribed bot users
- Marketstack API which provides stock data of 70+ stock exchanges across the world
- Python to program the backend processing of the messages using Python and integration of Twilio API and MarketStack API
- Flask app running on local machine
- NGROK to create a tunnel to the app from an HTTPS public endpoint
Python Dependencies Installed
pip install certifi
pip install chardet
pip install click
pip install Flask
pip install idna
pip install itsdangerous
pip install Jinja2
pip install MarkupSafe
pip install PyJWT
pip install pytz
pip install requests
pip install six
pip install twilio
pip install urllib3
pip install Werkzeug
Commands for Windows Terminal
- cd ~/Desktop/bot_stock/bot
- virtualenv bot
- Set-ExecutionPolicy Unrestricted
- bot\scripts\activate
- SET FLASK_APP=app.py
- $env:TWILIO_ACCOUNT="-----"
- $env:TWILIO_TOKEN="-----"
- $env:MARKETSTACK_KEY="-----"
- Flask run
Demo of Bot
Creator
Programmed by Elyse Y. Robinson