Welcome Devs ๐ โ Another Fun Build with Cognee + AI
Welcome Devs to another interesting blog from my side!
Itโs been a while since I first connected with Cognee, and exactly a month ago I actually built a Cognee Starter application from scratch using Flask and deployed it on AWS ECS using Terraform. If you havenโt checked it out yet, hereโs the link to that build โ youโll enjoy it:
Since then, the Cognee team has been on fire. Their GitHub repo recently crossed 10K+ stars (absolutely deserved ๐). And staying true to the momentum, they came up with a fun little community event โ the Secret Santa Mini Challenge.
Soโฆ for this challenge, I decided to build something a bit unique โ
โจ An Emotion-Aware Secret Santa powered by Gemini 2.5 Flash, with Cognee acting as the memory layer holding everything together.
How the Idea Hit Me ๐คฏ โ And Why Emotions Matter in Secret Santa
After going through the rules and criteria of the challenge, I started brainstorming ideasโฆ and suddenly something clicked on a very personal level.
In my friend group, Iโm the delightful one โ
Happy for no absolute reason, just vibing, giggling, randomly remembering something from Kevin Hart Special ๐
But my friends?
Total opposite personalities:
One is stressed 24/7 because of career pressure
Another is moody, unpredictable like Mumbai weather
And the last one is the chill guy, relaxed in literally every situation
Reflecting on that, I thought:
Why not create a Secret Santa that understands emotions the same way we understand each other?
A Secret Santa that:
Reads how each friend is feeling
Understands their energy, mood, and stress
Pairs them up based on emotional compatibility
And even helps choose a meaningful gift
Thatโs how Emotion-Aware Secret Santa was born.
How It Works ๐ง ๐ โ Turning Feelings Into Smart Gift Matches
Each friend gives:
Their name, and
A short description of their mood, week, stress level, or personality
For example:
โAlice is overwhelmed with work and feeling stressed.โ
โBob had a great week and is feeling positive and energetic.โ
These tiny descriptions become the foundation for the AIโs reasoning.
๐งฉ Step 1 โ Storing the emotional descriptions with Cognee
Each user description is added into Cogneeโs memory layer using:
cognify.add(...)
Then using:
cognify()
Cognee processes all the data with Gemini, building:
Semantic links
Entities
Relationships
A mini knowledge graph
Embeddings
(Iโve shown this visually in my previous video โ itโs super cool to watch.)
๐ง Step 2 โ Cognee asks the right question
Cognee then asks:
โWhat is the emotional state or mood of Alice?โ
Using RAG_COMPLETION, Gemini returns refined emotional states like:
stressed
excited
lonely
happy
tired
๐ Step 3 โ AI-Powered Secret Santa Pairing
Now the fun logic:
Cognee assigns Secret Santa pairs
Makes sure no one gets themselves
And suggests a gift based on emotion
Gift suggestions are generated using a local gift dictionary (0 extra AI costโฆ because while testing I hit the Gemini daily quota twice ๐๐).
๐ Step 4 โ The Big Reveal
Finally, the program prints a beautiful Secret Santa reveal:
Who is gifting whom
Why they were paired
And what gift matches their emotional state
Simple, wholesome, and powered by Cogneeโs memory + Geminiโs reasoning.
Try It Yourself ๐ โ Run the Emotion-Aware Secret Santa on Your Machine
Iโve open-sourced the entire project so you can explore, modify, and have fun with it.
The code is available here:
๐ GitHub Repo: https://github.com/Pravesh-Sudha/secret-santa-cognee
Clone it to your system and youโre ready to get started.
๐ Step 1 โ Get Your Gemini API Key
To run this project, youโll need a Gemini API key.
The good news? Google AI Studio gives you one for free.
Once you have your key:
Inside the project directory, create a
.envfileCopy everything from
.env.exampleReplace the values of:
* `LLM_API_KEY`
* `EMBEDDING_API_KEY`
with your Gemini key
And boom โ the setup is done.
๐ง Step 2 โ Install Dependencies
Inside your project directory, run:
uv sync
This will install all required dependencies cleanly.
๐ Step 3 โ Customise Your Friends & Gifts
You can now explore the code and make the project your own:
๐ฅ Add your own friends
Open:
data/friends.json
Add your friends and their mood descriptions.
(Tip: try to keep it max 4 friends, otherwise you may hit the Gemini daily quota like I did ๐ญ๐)
๐ Customise the gifts
Inside:
gift_gen.py
You can update gifts for each emotion to make them more fun, personal, or chaotic โ your call.
โถ๏ธ Step 4 โ Run the Project
Once everything is set up, run:
uv run main.py
The program takes around 2โ3 minutes, and thenโฆ
๐ You get a full Secret Santa reveal right in your terminal!
Who got whom
Their emotional reasoning
And the perfect gift suggestion
All powered by Cognee + Gemini.
NOTE: Initially, I planned to generate gifts using Gemini tooโฆ but Geminiโs โRequests per Minuteโ limit looked at me and said:
โNot today, brother.โ
So I switched to a local gift list โ zero extra AI cost, much more reliable.
๐ฝ๏ธ Video Demonstration
๐ Conclusion โ Building with Cognee Is Just Too Much Fun
This Secret Santa Mini Challenge by Cognee was the perfect excuse to experiment, break things, fix things, hit API limits twice ๐ญ, and eventually build something that felt genuinely personal.
Using Cognee as the memory layer + Gemini 2.5 Flash for reasoning turned a simple holiday tradition into a small emotionally aware AI system โ and honestly, thatโs the kind of playful innovation that makes me love building these projects.
If you try it out, tweak it, or turn it into something wild and creative, Iโd genuinely love to see it.
And big shoutout to the Cognee team for organizing such a wholesome challenge and continuing to ship amazing updates to the ecosystem.
More AI projects, more experiments, and more community fun coming soon.
Till then โ keep building, keep learning, and keep vibing. โจ
๐ Connect With Me
If you enjoyed this project or want to follow my DevOps + AI journey, find me here:
Twitter/X: https://x.com/praveshstwt
See you in the next build! ๐



Top comments (4)
The only gifts my friends will get from me are 50% AI-generated, 50% copy-pasting the prompt I wrote :)
And they will be the good one too!
thanks for sharing Pravesh! love the creativity!
๐