Link Eater: The WhatsApp Bot That Digests Content for You

Dpai - Jun 23 - - Dev Community

This is a submission for Twilio Challenge v24.06.12

What I Built

Link Eater: The WhatsApp Bot That Digests Content for You

Link Eater is an AI-powered tool that 'devours' web content and provides concise summaries directly through WhatsApp. It's designed to help users quickly grasp key points from articles, webpages, and YouTube videos without navigating through extensive content.

Imagine this scenario: You're in a group chat, and a friend shares a long article about a new technology. You're interested, but don't have time to read it all. With Link Eater, you can simply forward that link to the bot and receive a brief, informative summary within moments. This not only saves you time but also allows you to engage in the conversation more effectively.

Moreover, you can use Link Eater for content from any source - be it email, social media, or messaging apps. Just send the URL to Link Eater, and you'll get the key points quickly served up in a digestible format.

Demo

Link Eater

Overview

Link Eater is an AI-powered bot that provides concise summaries of web content directly through WhatsApp. Users can send a URL to the bot, and it responds with a brief summary of the webpage or YouTube video content. This tool is designed to help users quickly grasp the essence of online content without having to navigate through entire articles or videos.

Features

  • Summarize web articles and blog posts
  • Generate concise summaries of YouTube videos
  • Process URLs shared in WhatsApp messages
  • Utilize AI to create accurate and relevant summaries

Technology Stack

  • Node.js
  • Express.js
  • Twilio WhatsApp API
  • OpenAI GPT-3.5
  • YouTube Data API
  • Jina AI for web scraping

Installation

  1. Clone the repository git clone https://github.com/dataplay-cl/whatsapp-summarizer.git

  2. Navigate to the project directory: cd whatsapp-summarizer

  3. Install dependencies: npm install

  4. Set up environment variables: Create a .env file in the root directory and add the following: TWILIO_ACCOUNT_SID=your_twilio_account_sid TWILIO_AUTH_TOKEN=your_twilio_auth_token TWILIO_PHONE_NUMBER=your_twilio_whatsapp_number OPENAI_API_KEY=your_openai_api_key YOUTUBE_API_KEY=your_youtube_api_key JINA_API_KEY=your_jina_api_key PORT=3000

  5. Startโ€ฆ

Twilio and AI

Link Eater integrates Twilio's communication capabilities with AI services:

  1. Twilio's WhatsApp API handles incoming messages containing URLs and sends summaries back to users.
  2. Jina AI extracts content from webpages, while the YouTube API fetches video details.
  3. OpenAI's GPT-3.5 generates concise, accurate summaries of the extracted content.

The process flow is straightforward:

  1. User sends a URL via WhatsApp
  2. Twilio receives the message
  3. Our application processes the URL and extracts content
  4. GPT-3.5 generates a summary
  5. Twilio delivers the summary back to the user

This integration showcases how Twilio's platform can be enhanced with AI to create practical solutions for everyday information processing challenges.

Additional Prize Categories

Link Eater qualifies for two additional prize categories:

  1. Entertaining Endeavors: Link Eater transforms the way we share and consume content with friends. It turns your group chat into a dynamic hub of knowledge sharing, where everyone can quickly grasp the key points of an article and dive straight into meaningful discussions. With Link Eater, you become the curator of interesting content in your social circle. Share a thought-provoking article, a funny video, or a breaking news story, and watch as your friends engage with the summaries, sparking lively debates and exchanges. It's not just about saving time; it's about enriching your digital interactions, making them more substantive and enjoyable. Link Eater adds a layer of intellectual fun to your everyday chats, turning casual link-sharing into opportunities for collective learning and engaging conversations.

  2. Impactful Innovators: In today's fast-paced digital world, information overload is a real challenge. Link Eater addresses this by providing a practical tool for quick content digestion. For students juggling multiple research papers, professionals staying updated in their fields, or journalists tracking breaking news, Link Eater offers a way to quickly assess the relevance and key points of content. It's not about replacing in-depth reading, but about helping users make informed decisions on where to invest their limited time and attention. By enabling more efficient information triage, Link Eater can help reduce digital fatigue and improve focus on truly important content.

Link Eater represents a step towards more efficient and enjoyable digital information consumption, leveraging the strengths of both Twilio's communication platform and modern AI technology.

.