Skip to content

It leverages Google Gemini Pro for advanced language understanding and SerperAPI for real-time search results. This project fetches breaking news articles, summarizes them, and answers user queries about current events.

License

Notifications You must be signed in to change notification settings

nikunjpansari/newsaiagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News AI Agent

A CrewAI-based News AI Agent that leverages Google Gemini Pro for advanced language understanding and SerperAPI for real-time search results. This project fetches breaking news articles, summarizes them, and answers user queries about current events.


🚀 Features

  • Real-time news search via SerperAPI (Google Search)
  • Contextual understanding & summarization using Google Gemini Pro
  • Customizable agent workflows powered by CrewAI
  • easy-to-extend architecture for adding new data sources or LLM integrations
  • Authentication & rate-limit handling for all APIs

🏗️ Architecture

  1. User UI (CLI / Web) sends a query to the CrewAI Agent.
  2. CrewAI Agent orchestrates:
    • Calls SerperAPI for up-to-date search results.
    • Feeds raw content to Google Gemini Pro for summarization, Q&A, or classification.
  3. CrewAI Agent returns processed answers or summaries back to the user.

📥 Getting Started

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/your-username/news-ai-agent.git
    cd news-ai-agent
    
  2. Create & activate a virtual environment
     python3 -m venv .venv
     source .venv/bin/activate      # Linux / macOS
     .venv\Scripts\activate         # Windows
    
  3. Install dependencies
     python3 -m venv .venv
    

⚙️ Configuration Create a .env file in the project root with the following variables:

Google Gemini Pro (Vertex AI)

GOOGLE_API_KEY=your_gcp_api_key

SerperAPI

SERPER_API_KEY=your_serper_api_key

⚡ Usage

  1. Run as a CLI
    python crew.py

About

It leverages Google Gemini Pro for advanced language understanding and SerperAPI for real-time search results. This project fetches breaking news articles, summarizes them, and answers user queries about current events.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages