Vigyata.AI
Is this your channel?

Automating Social Interactions with AI

1.5K views· 64 likes· 6:14· Jul 16, 2023

🛍️ Products Mentioned (3)

We will all be replaced by AI. Not if, but when :) code: https://github.com/Elliott-Chong/Whatsapp-AI-Extension Connect With Me 🔥🚀 : GitHub: https://github.com/elliott-chong Instagram: https://instagram.com/elliottchong_ Website: https://elliottchong.tech 0:00 Intro to GitHub Copilot 0:45 Think of a solution 0:55 How will we build this? 1:19 Setting up the chrome extension 1:58 Web scraping 3:22 Piping data into AI 4:34 Prompt engineering 5:05 Displaying results to frontend 5:36 Outro #tech #softwareengineering #coding #entertainment #programming #automation #javascript #project #automation

About This Video

I started this project because GitHub Copilot kind of broke my brain in the best and worst way. Once you get used to AI finishing your thoughts in code, you start wishing you could press tab in Google Docs… or even while texting your friends on WhatsApp. After getting frustrated that chat apps don’t really have that “Copilot” experience built in, I decided to just do it myself and build a Chrome extension that can suggest replies directly inside WhatsApp Web—so we can all become even lazier (I mean, “more socially productive”). In the video, I walk through the four main steps: (1) setting up a Chrome extension that can read/modify the page, (2) scraping WhatsApp’s HTML to extract recent chat history (who said what + message content), (3) piping that context into an AI text completion model, and (4) rendering the AI’s response options back into the UI for a 10/10 experience. WhatsApp’s DOM is super nested and honestly feels like they don’t want you poking around, but after a lot of inspecting elements I managed to pull the latest messages. Then I moved to Google Vertex AI for text completion (I didn’t want to hand OpenAI my card), used prompt engineering to force a clean “three options” format, and injected clickable suggestion boxes into WhatsApp that copy to clipboard. End result: automated social interactions, at least online.

Frequently Asked Questions

🎬 More from Elliott Chong