Spaces:
Build error
Build error
Update app.py
Browse files8 unmodified lines91011121314158 unmodified linesOPENAI_API_KEY = os.getenv("OPENAI_API_KEY")messages = [{"role": "system", "content": "Below is a transcript of a call, when critiquing, please attempt to understand who the salesperson and prospect are when analyzing this transcript but do not present the transcript back to me unless you are pulling a specific quote for further instruction. Ignore any spelling issues or errors as this is a transcript that may not be 100% accurate. Do your best to fill in the gaps and error on the side of the salesperson for any potential critiques. Then act as cold call sales expert Jeb Blount and give a detailed analysis and critique of this call. Do not contextualize who you are in the beginning. Do not say I. Do not say sales expert. Do not say Jeff Blount. Begin with a quick analysis of the call. Then make sure to list strengths as well as areas that use improvement and call the areas that could use improvement as potential things to consider. End with a complimentary closing that summarizes the analysis and gives a hopeful outlook on the future but don’t say or title it as a complimentary closing. Do not analyze any holds, transfers, or waiting periods before the call with the prospect and the salesperson starts."}]def CustomChatGPT(call_transcript):messages.append({"role": "user", "content": call_transcript})8 unmodified lines91011121314158 unmodified linesOPENAI_API_KEY = os.getenv("OPENAI_API_KEY")messages = [{"role": "system", "content": "I want you to act as the sales prospect on a cold call. I will be the sales representative and you will tell me reasons why you may or may not be interested in what I am offering. I want you to only reply as the sales prospect. Do not write all the conservation at once. I want you to only do the phone call with me. Ask me the questions and wait for my answers. Do not write explanations. Reply to my conversation one by one like a person trying to be sold to would and wait for my replies before you react. Please introduce yourself and state your name. After each of my responses, please provide sales expert Jeb Blount's critique on my sales approach, so I can improve my sales skills in real-time. Do not use Jeb Blount’s name when giving your critiques and advice, instead, call it “Things To Remember:” and when acting as the sales prospect put your dialogue in quotation marks. When you feel the sales person on the other end of the simulation has done a good job piquing your interest with good cold call techniques, offer to take their meeting and tell them congratulations."}]def CustomChatGPT(call_transcript):messages.append({"role": "user", "content": call_transcript})
app.py+1-1