stuck while building a small ai tool today
trying to automate a simple task
basic flow is working
but i get confused when handling different inputs
sometimes it works, sometimes output is wrong
not sure if issue is in my logic or how i am prompting ai
anyone knows what to check at this stage?
Tech stack
- ChatGPT
- Claude
15 likes · 4 comments · 4 views
Comments (4)
That usually means your inputs aren’t consistent. I’d log every input/output pair and look for patterns in when it breaks.
Could be your prompt isn’t strict enough. Try forcing a very specific output format so the AI has less room to improvise.
Add validation after the AI response. Don’t trust it blindly — check if the output matches what you expect.
Try simplifying the task temporarily. If a smaller version works perfectly, then scale back up step by step.