This is the workflow I ended up with:
- LLM call to brainstorm ideas
- second LLM call to rate ideas from 1 to 10
- create cards for each idea, sorted by rating
I also added the ability for users to iterate on the cards via a chat interface (similar to how you can iterate on UIs generated by tools like bolt or v0).
https://valentines.assistant-ui.com/
Repo: https://github.com/Yonom/tech-bro-valentine
I built it with AI SDK, NextJS and assistant-ui. I spent most of my time on prompt engineering and a little bit on making the UI look nice.