Company
Date Published
Author
Dotun Jolaoso
Word count
1386
Language
English
Hacker News points
None

Summary

This tutorial guides users in building a simple WhatsApp chatbot that handles the conversion of any given number of Bitcoin units to the equivalent in a preferred currency, using Twilio API for WhatsApp and Flask Framework for Python. The bot requires a free Twilio Account, Python 3.6 or newer, Ngrok, a smartphone with an active number and WhatsApp installed, and creating a virtual environment. The user must follow a specific format when sending messages to the bot, which includes specifying the currency code of the desired conversion. The bot uses the Coinbase API to obtain current exchange rates with BTC as the base currency. Once set up, users can test the functionality of the bot by sending messages using WhatsApp and access its responses through the Ngrok URL provided.