I am building a cab booking agent, now there are various touch points – type of transfer(airport pickup, hourly, etc)
Then show some services and when user selects, ask for details like flight number, date, time, pax, etc
Now a single prompt can never handle this, it loses context or what not
So added a context doc to keep extracting useful fields and save them and then decide next question.
It works but hallucinates a lot as soon as user starts having real conversations or goes out of context
I’ve spent weeks working with the prompt but it breaks at one point or another
Can anyone please suggest what should be best way to do this, which part to do via code and what to do via LLM.
Also, which strategies should I follow to write the prompt
Any examples or reference prompts