Inspiration
Cash-on-delivery (COD) is an important payment method for many online businesses, especially in markets where customers prefer paying when their orders arrive.
However, merchants often face a challenge: some orders contain incomplete information, unusual details, or indicators that deserve closer attention. Reviewing every order manually can take valuable time.
I created OrderGuard AI to help e-commerce businesses organize their order reviews and identify which orders may need additional verification.
What it does
OrderGuard AI is an intelligent order-review prototype that analyzes incoming e-commerce orders and highlights potential risk indicators.
Users can upload orders using a CSV file and receive:
- A risk score from 0 to 100.
- Three risk levels: Low, Medium, and High.
- Explanations of the factors affecting each score.
- Recommended manual verification actions.
- An interactive dashboard for reviewing and prioritizing orders.
The analysis considers factors such as missing phone numbers, missing addresses, previous order history, high order values, and suspicious notes.
The system also identifies data-quality issues, including duplicate order IDs and incomplete or invalid information.
OrderGuard AI uses transparent, rule-based risk assessment. Its scores are decision-support signals, not proof of fraud.
How I built it
I developed OrderGuard AI using Python, Streamlit, and Pandas.
The project includes a rule-based risk engine, CSV import functionality, data validation, and an interactive dashboard.
During the hackathon, I used Kiro to review and improve the existing codebase. Kiro helped identify bugs, handle missing and invalid customer data more reliably, fix CSV upload edge cases, and resolve an issue involving the selection of orders with duplicate IDs.
I also used Kiro to expand the automated test suite from 10 to 25 tests, covering important edge cases and risk-scoring behavior.
I ran the test suite successfully, with all 25 tests passing.
Challenges I faced
One of the biggest challenges was handling inconsistent order data. Real-world CSV files can contain missing information, duplicated identifiers, and invalid values.
I improved the validation process to identify these issues and prevent them from silently affecting the analysis.
Another challenge was making the results understandable. Instead of showing merchants only a numerical score, I designed the system to explain why an order was flagged and what action could be considered next.
Testing unusual scenarios was also important to make the application more reliable.
What I learned
Building OrderGuard AI helped me learn how to transform a practical business problem into a working software application.
I gained experience in Python development, data processing, automated testing, transparent scoring systems, and building interactive applications with Streamlit.
I also learned how to use Kiro as a development assistant for code review, debugging, and improving software quality.
Most importantly, I learned that useful risk assessment should be explainable: merchants need to understand not only the result, but also the reasons behind it.
What's next
Future improvements may include customizable risk rules, historical order analytics, e-commerce platform integrations, and more advanced AI-assisted analysis.
OrderGuard AI is a decision-support prototype. It does not guarantee fraud detection or order delivery outcomes. Its purpose is to help merchants prioritize orders for manual review.