Tesla Inventory Alerts
bot for new & discounted vehicles
A Telegram bot sending periodic notifications every time a discounted vehicle is added into the Tesla inventory. Daily reports with the top discounts. Scalable, built for different markets. And a headless app to go support all these.
Industry
Timeline
Every project has a purpose…
Offering discounts for vehicles available on stock seems to have become a recurring practice for Tesla at the end of a quarter, as it helps the company boost their financials & keep shareholders happy.
In such periods, the fight for vehicles is as intense as it can get.
People are ordering discounted vehicles in a matter of minutes after becoming available on stock.
So I thought... that must be a lot of clicks & time spent on page refreshes that one would have invest to chase the cars online.
What if there would be a way to get automatically notified whenever a new vehicle becomes available? And with that, to receive also the main specs associated and the link for purchase, should one decide for it?
...which requires a unique approach.
I've decided to build a headless application in Laravel as my main layer for the logic. Getting data from Tesla's API, maintaining it, wrapping it as notifications and pushing it to Telegram was supposed to take place from one single point.
There was no use for a custom domain, as visitors were not to be expected on the server itself, but what I had to account for was the possibility of running scheduled tasks and keeping queue workers alive with a process control system like Supervisor and a Redis server as the queue driver. For a more advanced configuration, but in the same time simplicity, I've also opted to use Laravel's Horizon go-to package.
To deliver notifications I had to learn more about Telegram's Bot API and their documentation was the starting point.
Last but not least, I had everything set up as a Github repository to trace my work, setup a future CI/CD pipeline and document everything, in case I'd ever open the project publicly.
Discover the entire story of how this project got built in this article.
The target users for the Tesla Inventory Alerts are represented by individuals or businesses aiming to acquire one or more Tesla vehicles, of any model, and wish to learn first about the timely discounts the company is offering on their inventory.
The next functions got packed into one app
alerts for new & discounted vehicles on stock
daily reports with top discounts
all models: S, 3, X, Y
translated & localized notifications
direct links to the Tesla website
...and the technologies that enabled it
Want to checkout the application?
Visit projectNotices
This project is not associated in any way with, nor has been sponsored by, Tesla Inc. It was built for a growing online community of electric car passionates and Tesla enthusiasts.