Some months ago, I launched Stori.
Lots of people started to register, add Instagram Accounts to view and save their stories’ performance.
After 2 days, more than 200 people signed up and somebody bought a subscription.
Everything was great! 🚀
(Btw, if you want to check it out, here is Stori: https://stori.social)
But after some times, I started to think that I haven’t full control of everything: was everything really ok? Were the background scripts working? I realized that I haven’t a way to be warned if something wasn’t right.
I started to visit my db more often (ehmm… maybe every 10 minutes?) than necessary, just to see if everything was running smoothly.
Yeah, I was in paranoia mode.
So I created a Telegram Bot.
One night I saw this tweet by Pieter Levels:
And it just got me that I could be notified when something good (or bad) happened on Stori. I use Telegram every day and I found out that it’s really easy to send a message as a Bot.
Here are the 16 lines of code that currently powers my notification bot:
Et voilà! 🧙
I also created some utils function to permit to extract more easily the data that I want (notice the ‘json’ option: in this way I can put whatever data I need to see in a <pre> html element 💪
Now I can be notified when…
A new user registers
Somebody subscribe a plan
A new account is created
And also (and more important) when there are some problems:
That’s it. Now I know exactly what’s going on on Stori and also it’s super cool to have a Robot that warns you whenever something new happens! 🤖
@francescomarassi how did you create those graphics on the landing page?
Looks very nice!
Thanks! I created them with my (really limited) knowledge of Sketch. They are based on my real UI, but using only rectangles and circles.
Actually I really like this idea! Telegram bots are quite simple to put together too. Might have to add this to my ops backlog!
Awesome man! Can we use this @jeffdh5 ?
yeah totally, thanks! some variation of it
I didn't think bootstrap a telegram bot could be that simple.
Great idea, btw!
I didn't know you could do that with Telegram. Thanks for sharing.
Congratulations, an intelligent use of Telegram bots (which are very well designed, by the way).
Thanks! Yes, the Telegram API are pretty straightforward and easy to use. The congratulations should go to them :)
Dude there’s a business here.
As a non-techie, I really want this but need something plug and play.
You might like this too https://replain.cc/
Some weeks ago I found https://popcornnotify.com/ that is like this solution but for emails and SMS.
Do you want something like this or less techie?
I think less techie. I mean, I'm kinda spitballing here about this stuff because my knowledge is only surface level. What I would think would be helpful is something a little more straightforward that just gives me status updates on the major performance logs. This seems like a solution that you still have to configure to tell you what you want updates on.
Wow I'd never heard of Telegram before. Seems like a really great solution for a service thats just getting started. I could see it becoming a bit of a nuisance once you reach a certain scale and the events are too frequent.
I've done a couple things with past projects that were useful:
Jeremy I think you are right, this is a solution for a small-mid services. If I'm going to grow I'll ditch the new account / new user notifications and create a batch notification (like every day/hour) for disabled accounts.
I also have a dashboard (provided by forestapp, great service to create a backoffice in 5 minutes), but the main reason I created this notification engine was that I didn't want to visit any web page as I was doing it too often.
Thanks for the tip about 'health' endpoints. I'll think about it when (and if ) Stori will grow! 🚀
interesting
As for me, I prefer to use some natural products to keep my mind clear and ready to work. I am talking about https://naturalwellnesscbdoil.com/charlottes-web-hemp-cbd-review/. If you would like to use remember - some of the effects of marijuana use also include an increased heart rate, dryness of the mouth, reddening of the eyes, impaired motor skills and concentration, and frequent hunger and an increased desire for sweets.
Any recommendation on resources that teach how to create and implement bots like yours and Pieter's? (I sorta get the gist of what your code does, but I don't know where to put that code - even if I had someone else write it.)
Nice! Notifications about backend do help. I use IFTTT app for these notifications.
This comment was deleted 3 years ago.