Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -923,8 +923,7 @@ async def generate_welcome_closing_messages(lead_data: Dict[str, Any]) -> Dict[s
|
|
923 |
|
924 |
candidate_info = f"Name: {first_name}, Company: {company_name}, Title: {title}"
|
925 |
|
926 |
-
system_prompt = """You are an expert recruiter creating personalized messages. Generate a 2-sentence welcome message and a 1-sentence closing message. Be professional and friendly and sound like real human recruitor. Reference their background. Respond with ONLY valid JSON."""
|
927 |
-
|
928 |
prompt_template = ChatPromptTemplate.from_messages([
|
929 |
("system", system_prompt),
|
930 |
("human", "Generate messages for this candidate: {candidate_info}")
|
|
|
923 |
|
924 |
candidate_info = f"Name: {first_name}, Company: {company_name}, Title: {title}"
|
925 |
|
926 |
+
system_prompt = """You are an expert recruiter creating personalized messages. Generate a 2-sentence welcome message and a 1-sentence closing message. For welcome start with Hi name then change the line and write the welcome message. Be professional and friendly and sound like real human recruitor. Reference their background. Respond with ONLY valid JSON."""
|
|
|
927 |
prompt_template = ChatPromptTemplate.from_messages([
|
928 |
("system", system_prompt),
|
929 |
("human", "Generate messages for this candidate: {candidate_info}")
|