Hacker

aditya singh

@aaditya321

Joined Nov 2026Student at SvvvIndia

Elsewhere

Projects

  • Flagsmith

    Flagsmith Experimentation HackathonNov 2026

    I built an AI chatbot that shows visitors one of two different interfaces, and used Flagsmith Experimentation to measure which one works better. Version A is a classic chat window with an empty input box. Version B opens with a welcome screen and four tappable starter prompts. Both use the same AI backend, so only the interface changes. The problem is that teams usually pick chat designs by gut feeling. A blank text box can put people off starting a conversation, but a team only knows if starter prompts fix that by testing it. This project runs that test end to end: a Flagsmith multivariate flag assigns each visitor a version, and the app reports exposures and a message_sent event. Flagsmith then works out which version gets more visitors to send a first message. Who would use it, and how does it work? It's aimed at developers and product teams who want to test interface changes on real users, and a student learning to code is the kind of visitor the chatbot serves. Anyone building an AI assistant could reuse the pattern. It works like this. The frontend is plain HTML, CSS and JavaScript. A FastAPI backend streams answers from Groq. When a visitor opens the page, the app gives them an anonymous ID and asks Flagsmith which version to show. Flagsmith keeps that visitor on the same version every time. When they send a message, the app records the message_sent event, and the Flagsmith experiment page compares the share of visitors who sent at least one message in each version. If Flagsmith can't be reached, the app shows the classic version so the chatbot still works.