Spaces:
Runtime error
Runtime error
Delete utils.py
Browse files12345678910111213141516171819202122232425262728293031import openaiimport os
client = openai.OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
def generate_rtm(company, website): prompt = f""" I am an enterprise account executive for PagerDuty. My goal is to build a thorough account report. Provide detailed RTM summary for {company} ({website}). Follow all steps from Part 1 through Part 4. Keep sections clearly labeled, and cite sources where possible. """ response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": prompt}] ) return response.choices[0].message.content
def generate_prospecting_message(linkedin_url, profile_context, rtm_context): prompt = f""" You are generating a highly personalized prospecting email. Prospect LinkedIn: {linkedin_url} Prospect Details: {profile_context} RTM Account Context: {rtm_context}
Generate a short, strategic outreach message for the prospect (under 125 words). Frame it around a pain point or opportunity they would care about based on their role and the company context. """ response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": prompt}] ) return response.choices[0].message.contentutils.pyDeleted-31