tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > AI Fact-checking Agent

AI Fact-checking Agent

Author: Venkata Sudhakar

In e-commerce and retail, incorrect product information can lead to customer disputes, returns, and regulatory issues. An AI fact-checking agent built with Google ADK and Gemini 2.0 Flash can automatically verify claims made in product listings, marketing copy, and customer communications against a trusted knowledge base before they are published.

The agent uses function tools to query a product database, cross-reference pricing records, and check specification sheets. Gemini evaluates each claim against retrieved facts and returns a structured verdict - verified, false, or unverifiable - with a confidence score and an explanation. This prevents inaccurate claims from reaching customers.

The below example shows ShopMax India verifying a product claim before it goes live on the website.


It gives the following output,

{
  "verdict": "FALSE",
  "confidence": 0.97,
  "explanation": "Refresh rate claim is incorrect. The SM-TV-55 has a 120Hz panel, not 144Hz. Price of Rs 72,000 is verified correct.",
  "corrected_claim": "The Samsung 55-inch 4K QLED TV (SM-TV-55) has a 120Hz refresh rate and is priced at Rs 72,000."
}

The agent returns a structured JSON verdict that upstream systems can parse programmatically. The corrected_claim field provides an immediate fix for editors, reducing the round-trip time for corrections. In production, integrate this agent into your content management system as a pre-publish hook so every product listing is verified before it appears on the ShopMax India website. Cache the product database locally and refresh it nightly to keep fact-checking fast and accurate.


 
  


  
bl  br