Today I worked on adding the AI features to the Rize quest system. I connected Google Gemini to the backend so that photo proofs can be checked before a quest is accepted. If the uploaded image matches the quest, the user receives XP and the related stat is increased. If the image does not match, the quest is rejected and no XP is awarded.
I also added AI-generated narration after a quest is completed. Instead of using fixed messages, Gemini now creates a short encouraging sentence based on the completed quest. This message is saved with the completion and shown to the user after finishing a quest.
On the frontend, I built a new quest completion modal. Users can now choose whether to submit a photo or a text proof. The modal shows an image preview for photo uploads, validates text submissions, displays any verification errors, and shows the XP earned together with the AI-generated narration after a successful completion.