https://retellai.com/?utm_source=discord&utm_medium=seo logo
Prompt issues
# ❓・bug-report
j
Hi, every time I add a new condition to my prompt something else messes up and the conditions being added don’t work. I have a prompt expert working on it and we’ve spent hours and it’s still not working. Can somebody helps us figure out why the prompts aren’t being adhered to? Is there any documentation anywhere? If a respondent responds poor or fair it should trigger the “service recover close” when they make it to the end of the survey, but when it only says either poor or fair once it doesn’t trigger the close. This is one of the prompts the expert created that isn’t working. Can someone help me fix this issue? **Before Satisfied Close**: -Check the user answers and if at any point, answer of any question the user choose fair and or poor then we will use service recovery closure, otherwise we can ignore it -If the score is less than 38 , at the end of conversation service recovery close is mandatory! Service Recovery Close: Say: "Thank you for sharing about your recent experience. Your feedback will be shared with management, who may wish to contact you to follow up at some point. Would that be alright?" (Yes, No)
n
I would suggest you have a look at this: https://docs.retellai.com/retell-llm/prompt-engineering-guide, You can also refer this in case you are using multi-state prompt: https://docs.retellai.com/retell-llm/llm-states The overall prompt looks okay to me but in the context of the entire prompt I am not sure if there are any mixed signals or ambiguous information. Also ensure that if you are using markdown then you can use markdown syntax for pointing to a section of the prompt. Apart from that, you should use better models like GPT4o or GPT4-Turbo to get better results for complex prompts
j
We tried the markdown syntax, but it didn’t work. Thank you! I’ll have them look into the multi state prompt.
n
Alright @jordanstubb. Generally these take multiple trials and errors. And try to simplify the prompts if you can.
j
I’ve tried everything and the prompt engineer did too and still couldn’t get it to work.