IntelliDigest Icon

IntelliDigest AI

Overview

The IntelliDigest AI is a comprehensive automated pipeline designed to gather, summarize, and curate the latest Artificial Intelligence news from multiple high-quality sources. It leverages Large Language Models (specifically OpenAI's GPT-4o-mini) to process raw content and deliver a personalized email digest to the user.

Core Goal

To save time by filtering through the noise of AI news and presenting only the most relevant, high-impact updates in a concise format.

Architecture & Workflow

The application follows a linear Extract, Transform, Load (ETL) pipeline, enhanced with AI agents at various stages.

1

1. Ingestion (Scrapers)

Fetches raw data from YouTube, OpenAI, and Anthropic. Monitors specific channels and RSS feeds.

2

2. Processing

Cleans data: converts YouTube transcripts to text, parses markdown from Anthropic blogs.

3

3. Digestion (AI Agent)

Summarizes each article/video into a concise title (5-10 words) and a 2-3 sentence summary using GPT-4o-mini.

4

4. Curation (AI Agent)

Ranks the summarized digests based on a specific user profile to determine relevance.

5

5. Delivery (Email Agent)

Composes and sends a structured, engaging email containing the top-ranked stories.

Key Components

Scrapers

Responsible for fetching raw data from external sources.

  • YouTube Scraper: Monitors specific channels (e.g., Matthew Berman) for new videos. Fetches metadata and transcripts.
  • OpenAI Scraper: Fetches the latest articles/announcements from OpenAI's RSS/Blog.
  • Anthropic Scraper: Fetches the latest articles from Anthropic's blog.

Services

Orchestrates the business logic for each stage of the pipeline.

  • process_anthropic.py: Handles fetching and parsing of Anthropic content.
  • process_youtube.py: Manages fetching and transcript processing for YouTube videos.
  • process_digest.py: Orchestrates the summarization of all new content using the Digest Agent.
  • process_curator.py: Manages the ranking process using the Curator Agent.
  • process_email.py: Handles the generation of the final email content and transmission.

AI Agents

Specialized classes that interact with the OpenAI API to perform cognitive tasks.

Digest Agent

Role: Summarizer

Input: Raw article text or video transcript.

Output: A concise title (5-10 words) and a 2-3 sentence summary.

Model: gpt-4o-mini

Curator Agent

Role: Editor/Ranker

Input: List of digests and a User Profile.

Output: A ranked list of articles with relevance scores and reasoning.

Model: gpt-4o-mini

Email Agent

Role: Writer

Input: Top-ranked articles.

Output: A structured, engaging email body (Markdown/HTML).

Configuration

App Config

  • app/config.py: Central configuration files, including the list of YouTube channels to monitor.
  • app/profiles/user_profile.py: Defines the USER_PROFILE dictionary (Name, Background, Interests) used by the Curator Agent to tailor the news feed.

Environment Variables

Managed via .env file:

OPENAI_API_KEYDATABASE_URLSMTP_SERVERSMTP_PORTSMTP_USERNAMESMTP_PASSWORDSENDER_EMAILRECIPIENT_EMAIL

Data Models

Table NameDescriptionKey Fields
youtube_videosRaw YouTube Datavideo_id, title, transcript, channel_id
openai_articlesOpenAI Blog Postsguid, title, description, url
anthropic_articlesAnthropic Blog Postsguid, title, markdown
digestsProcessed Summariesid, article_type, title, summary, article_id

Dependencies

Core

pydantic, python-dotenv, requests

Database

sqlalchemy, psycopg2-binary

AI

openai

Scraping

beautifulsoup4, feedparser, youtube-transcript-api, docling, markdown, markdownify