DEV Community

Aditya Mitra
Aditya Mitra

Posted on • Edited on

4 2

WhatsTer Bot - A multifunction bot that I built for the Twilio Hackathon

Live at https://whatster.web.app

What does the bot do?

The bot has several interesting functionalities, such as -

  1. Email - It can send emails to any specified email id by the user.
    The emails can have an attachment too.

  2. Image recognition - The bot can recognize the contents of any image sent to it.

  3. Jokes - The bot doesn’t only do work, it also entertains you by sending a random dad joke, because as they say, ‘All work and no play makes Jack a dull boy!”

  4. Login - You can log into your account from here. You can access your recent activity, and also view your saved message and media!

Link to Code

You can join the sandbox by clicking here or sending a WhatsApp message to: +1(415)523-8886, first text join decide-wish and then say hi!

Check out my code on GitHub here.

How I built the bot?

Login - For logging in, I created a web app for the login interface using ReactJS. The data is stored using MongoDB and for secure login, an OTP is generated, also through MongoDB.

Email - It uses 'nodemailer' service by Sengrid.

Image recognition - The bot can recognize the contents of any image sent to it, using the Clarifai API.

Jokes - This uses the icanhazdadjoke service.

Conclusion

This project of mine falls into the Intersting Integrations category for this hackathon. It was a lot of fun creating this project, I hope you would enjoy using my WhatsApp bot, WhatsTer too!

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (5)

Collapse
 
adityamitra profile image
Aditya Mitra • Edited

@dkundel @philnash
Is this acceptable?

Collapse
 
dkundel profile image
Dominik Kundel

On first glance at least it looks good.

Collapse
 
adityamitra profile image
Aditya Mitra

Can I edit this post to make a few changes like explaining the setup and the working?

Thread Thread
 
dkundel profile image
Dominik Kundel

Hey Aditya, we started the judging process and will announce the winners on Tuesday. It would be great if you could hold off from updating the submission or the code until then.

Collapse
 
adityamitra profile image
Aditya Mitra

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay