Inspiration
Online scams are becoming increasingly sophisticated, targeting people through job offers, OTP requests, investment opportunities, payment messages, and social engineering. We wanted to build a simple AI-powered safety assistant that helps users understand suspicious messages before they make a risky decision.
What it does
ScamShield AI analyzes suspicious messages and identifies potential scam patterns. It provides a scam type, risk score, risk level, confidence, explanation of suspicious indicators, and recommended actions.
The application also provides recovery guidance to help users understand what to do if they have already interacted with a scam.
How we built it
ScamShield AI uses a React frontend connected to a FastAPI backend. The backend exposes APIs for message analysis, screenshot analysis, and recovery assistance.
We integrated Google's Gemini AI to analyze suspicious content and generate structured scam assessments. The application is deployed using Vercel for the frontend and Render for the backend.
Challenges we ran into
One of the main challenges was connecting the frontend and backend securely across different deployment platforms. We worked through CORS configuration, environment variables, API endpoint configuration, and production deployment issues.
Another challenge was designing prompts and structured responses so that the AI could provide useful and understandable scam assessments rather than simply classifying a message as safe or unsafe.
Accomplishments that we're proud of
We built a working end-to-end AI scam detection application with a user-friendly interface. ScamShield can analyze suspicious messages, identify scam indicators, provide risk levels, and recommend practical actions.
We are especially proud of connecting the AI analysis pipeline with a production-style web application and deploying the system so it can be accessed online.
What we learned
We learned how to integrate generative AI into a real-world application, build APIs with FastAPI, connect React with a Python backend, manage environment variables and API keys, configure CORS, and deploy frontend and backend services independently.
We also learned that building reliable AI applications requires careful prompt design, structured outputs, error handling, and testing across different deployment environments.
What's next for ScamShield AI
We plan to expand ScamShield AI with stronger scam detection, multilingual message analysis, improved screenshot analysis, URL and sender verification, better recovery workflows, and additional scam categories.
Our long-term goal is to make ScamShield AI a practical digital safety assistant that helps people detect scams before they lose money or sensitive information.
Built With
- cors
- fastapi
- googlegeminiapi
- python
- react.js
- render
- versel