What I built:
I just launched GraphTD https://twitter.com/graphTD on Twitter. It's a fintech bot which when called, replies to the user with a custom graph with the historical stock prices of the stocks mentioned.
The user creates a tweet like which mentions the bot and what stocks you want to see, as well as a time period that you want to compare.
The bot then queries an API to get the data, creates a graph from the data and then responds back with the image on Twitter.
How I built this:
I have seen some Twitter work inside of nocode. However, I've been trying to upskill my Python for the last 4 months.
First, I coded this in Python just running on my computer. It turned out to be around 250 lines of code.
The code starts by monitoring Twitter for mentions of my account. A limitation of nocode tools like Zapier and Integromat is that they can only monitor Twitter every 5 minutes. With a coded solution I can monitor Twitter every 12 seconds which is what the API limit for Twitter is, however, I've currently set this to 1min.
Once a request has been found on Twitter, I then have to cross check that the bot hasn't already responded to this Tweet, it checks a google sheet which is automatically updated with past results.
If it hasn't been responded to, the code parses through the Tweet and then interacts with a stock market API to get the data that the user requested.
It then creates a graph and connects with another API which converts the graph to an image and hosts it in the cloud (and then downloads it again).
From there, it then posts the response back to Twitter.
The script worked manually on my computer but I ended up launching this on Google Cloud Platform so that I could run the script automatically every 1 minute.
While the bot itself was fine, I decided to upgrade the project to a bit more of completion.
Why I built this:
I've been working on a larger project for the last month or so, and haven't been able to ship the product yet. So, over the weekend I decided to hold a mini-sprint for another idea that I've had to get something out there.
I've also been much more active on Twitter recently and found it's a great community. I post mostly about the stock market/investing as that's what I'm building my larger product in.
With this actual bot:
With other bots:
Overall though, this is not my main focus but was a lot of fun and great to create something out of nothing and ship it...and get some people using the bot straight away!
Happy to answer any questions, and any feedback would be great, as I skipped over a lot of the detail here :)