fiery-rumor

by46_SE-C_Prathamesh Vishwakarma

Role: Lead Full-Stack Engineer & AI Architect. Project Name: VerifyAlert — An AI-driven crisis rumor verification engine. Tech Stack Requirements: Frontend: HTML5, CSS3 (modern, responsive UI), and Vanilla JavaScript. Backend: Python 3.11+ with Flask. Database: SQLite for storing request history, results, and confidence scores. Core AI Stack: Google Gemini (google-genai): For Stage 1 (Translation and Entity Extraction). Use gemini-3-flash-preview. NewsData.io API: For Stage 2 (Live News Retrieval). Groq (groq SDK): For Stage 3 (Final Verification using Llama 3 70B/8B). The 3-Stage Pipeline Logic: Stage 1 (Gemini - Process): Accept user input. Use Gemini to: Detect the source language. Translate to English if needed. Extract structured JSON: {"event": str, "location": str, "date": str, "keywords": list}. Stage 2 (NewsData.io - Retrieve): Use the extracted event and location as query parameters for the newsdata.io/api/1/news endpoint to fetch the top 3 related articles. Stage 3 (Groq - Analyze): Provide Groq with the translated rumor + the text snippets from the news articles. Instruct Groq to return: Verdict: (TRUE / FAKE / UNVERIFIED) Confidence: (0-100%) AI Summary: A 2-sentence explanation of the logic. UI/UX Branding: Navbar: "VerifyAlert" with a clean, high-tech logo. Input Area: Centered "Paste Rumor" box. Dashboard View: Results page must show the "Transparency List" (clickable news source titles and URLs) below the verdict card. Development Instructions: Please provide the app.py script using the new google.genai Client, the HTML templates (index.html and result.html), and a clear .env example for the three API keys.

Landing
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks15

#1

Implement Theme and Structure

To Do

As a user, I want to see a visually consistent UI so that all pages match the mock-design pages exactly. Implement the global color palette (#1A1A2E background, #16213E surface, #EAEAEA text, #F05454 accent, #6C757D muted), typography, component styles, and layout structure across the entire frontend. Remove any pages not present in the design. This task must be completed independently before any other frontend tasks begin.

AI 80%
Human 20%
High Priority
1.5 days
Frontend Developer
#9

Implement Stage 1 AI API

To Do

As a user, I want my submitted rumor to be translated and analyzed so that the system can understand it regardless of language. Implement the Flask backend endpoint for Stage 1: accept rumor text input, use Google Gemini (gemini-3-flash-preview via google-genai SDK) to detect language, translate to English if needed, and extract structured JSON: {event, location, date, keywords}. Store request in SQLite.

AI 75%
Human 25%
High Priority
2 days
AI Engineer
#2

Build Landing Page

To Do

As a user, I want to see an interactive crisis map on the landing page so that I can explore active rumors by region. Implement the Landing page based on the existing JSX design (Landing v2). Features include: dynamic world map with glowing red hotspots, pulsing animation on hotspots, hover tooltips with rumor descriptions, click-to-autofill rumor input, and smooth zoom transitions. Links to the Home/Rumor submission page.

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
2 days
Frontend Developer
#3

Build Home Rumor Page

To Do

As a user, I want to paste and submit a rumor on the Home page so that I can trigger the verification process. Implement a centered rumor input box with submit functionality. The page should accept rumor text, display a loading/progress state during processing, and navigate to the Results page upon completion. Supports multi-language input. Links from Landing page and back from Results page.

Depends on:#1
Waiting for dependencies
AI 85%
Human 15%
High Priority
1.5 days
Frontend Developer
#4

Build Results Page

To Do

As a user, I want to view the verification results so that I can understand if a rumor is TRUE, FAKE, or UNVERIFIED. Implement the Results page displaying: verdict card (TRUE/FAKE/UNVERIFIED) with confidence score (0-100%), AI-generated 2-sentence summary, and a Transparency List of top 3 clickable news article titles and URLs. Include a 'Re-Run Verification' button for selective re-runs. Links from Home page.

Depends on:#1
Waiting for dependencies
AI 85%
Human 15%
High Priority
2 days
Frontend Developer
#5

Build Dashboard Monitor Page

To Do

As an admin, I want to monitor system performance on the Dashboard page so that I can ensure the platform is operating correctly. Implement the Dashboard overview page displaying system metrics, performance indicators, and a navigation to Request History and Settings. Links from Login page.

Depends on:#1
Waiting for dependencies
AI 80%
Human 20%
Medium Priority
1.5 days
Frontend Developer
#6

Build Request History Page

To Do

As an admin, I want to view request history on the Dashboard so that I can review all submitted rumors and their results. Implement the request history view listing past rumor submissions with their verdicts, confidence scores, timestamps, and a link to detailed logs. Links from Dashboard overview.

Depends on:#1
Waiting for dependencies
AI 80%
Human 20%
Medium Priority
1.5 days
Frontend Developer
#7

Build Logs Review Page

To Do

As an admin, I want to review verification logs so that I can audit the AI pipeline results. Implement the Logs page displaying detailed results per rumor request including pipeline stage outputs, AI responses, and news articles retrieved. Links from Request History page.

Depends on:#1
Waiting for dependencies
AI 80%
Human 20%
Medium Priority
1.5 days
Frontend Developer
#8

Build Settings Page

To Do

As an admin, I want to manage API keys and configurations on the Settings page so that I can keep the platform operational. Implement the Settings page with forms to view and update API key configurations (NewsData.io, Gemini, Groq) and other system settings. Links from Dashboard overview.

Depends on:#1
Waiting for dependencies
AI 80%
Human 20%
Medium Priority
1.5 days
Frontend Developer
#10

Implement Stage 2 News API

To Do

As a user, I want the system to retrieve relevant news articles so that my rumor can be cross-referenced with real sources. Implement the Flask backend for Stage 2: use extracted event and location from Stage 1 to query the NewsData.io API (newsdata.io/api/1/news) and retrieve the top 3 related articles. Handle API rate limits and errors gracefully.

Depends on:#9
Waiting for dependencies
AI 70%
Human 30%
High Priority
1.5 days
AI Engineer
#11

Implement Stage 3 Verification API

To Do

As a user, I want to receive a final verdict on my rumor so that I know if it is TRUE, FAKE, or UNVERIFIED. Implement the Flask backend for Stage 3: provide Groq SDK (Llama 3 70B/8B) with the translated rumor and news article snippets, and return a structured response: {verdict: TRUE/FAKE/UNVERIFIED, confidence: 0-100%, summary: 2-sentence explanation}. Store final result in SQLite.

Depends on:#10
Waiting for dependencies
AI 75%
Human 25%
High Priority
2 days
AI Engineer
#12

Implement Selective Re-Run API

To Do

As a user, I want to re-run verification for a previously submitted rumor so that I can get updated results. Implement a Flask backend endpoint that accepts a stored rumor ID, retrieves it from SQLite, and re-triggers the full 3-stage pipeline (Stage 1 → Stage 2 → Stage 3), updating the stored result with the new output.

Depends on:#11
Waiting for dependencies
AI 70%
Human 30%
Medium Priority
1.5 days
Backend Developer
#13

Implement Request History API

To Do

As an admin, I want to access request history via API so that I can view all past rumor submissions and their results. Implement Flask backend endpoints to list all stored rumor requests with their verdicts, confidence scores, timestamps, and stage outputs from SQLite. Support pagination and filtering.

Depends on:#11
Waiting for dependencies
AI 70%
Human 30%
Medium Priority
1.5 days
Backend Developer
#14

Connect Frontend to AI Pipeline

To Do

As a user, I want the Home page to communicate with the backend AI pipeline so that submitting a rumor triggers real verification and displays results. Wire up the Home page rumor submission form to the Stage 1/2/3 backend APIs, handle loading states, error responses, and navigate to the Results page with live data from the pipeline.

Depends on:#3#11
Waiting for dependencies
AI 75%
Human 25%
High Priority
1.5 days
Frontend Developer
#15

Connect Dashboard to Backend APIs

To Do

As an admin, I want the Dashboard, Request History, and Logs pages to display live data so that I can monitor and audit the system. Wire up the admin frontend pages (Dashboard, Request History, Logs) to the backend request history and logs APIs. Display real data with proper loading and error states.

Depends on:#5#6#7#13
Waiting for dependencies
AI 75%
Human 25%
Medium Priority
1.5 days
Frontend Developer
Login: Sign In
Dashboard: Monitor Performance
Dashboard: View Request History
Logs: Review Results
Settings: Manage API Keys
Settings: Update Config