
Why Metal is the Strict Type of Eastern Astrology
I was debugging at 2 AM when I realized my LangGraph flow was hallucinating. The AI assistant was telling a user they were "very creative and spontaneous," but their birth chart clearly indicated a dominant Metal element. In the Five Elements philosophy, Metal is the opposite of Water—it's rigid, structured, and decisive, not fluid. That moment was a wake-up call: simply feeding a prompt with a birth chart isn't enough. You have to architect the logic so the AI understands the nature of the element it's analyzing. I'm building a side project called SajuBox (sajubox.xyz) that combines ancient Eastern astrology with modern AI. We use Next.js 14 on the frontend, FastAPI for the backend, and LangGraph to orchestrate multi-agent workflows using Claude. Today, I want to share how we handle one of the most distinct elements: Metal . The Architecture of Destiny (and Code) First, a quick overview of the stack. We aren't just running a static HTML file. We're processing complex data: Frontend: N
Continue reading on Dev.to Python
Opens in a new tab




