ak0601 commited on
Commit
8bbfbd0
·
verified ·
1 Parent(s): dc51e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -923,7 +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. 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}")
@@ -1019,7 +1019,7 @@ Your task is to generate a 3-step email sequence template for a given job descri
1019
  - **INCORRECT:** `{first_name}` or `[first_name]` or `<first_name>`
1020
  2. **REQUIRED PLACEHOLDERS:** You MUST include `{{Welcome_Message}}` and `{{Closing_Message}}` in the first email. You should also use `{{first_name}}` in follow-ups.
1021
  3. **FIRST EMAIL STRUCTURE:** The first email's body MUST begin with `{{Welcome_Message}}` and end with `{{Closing_Message}}`.
1022
- 4. **SIGNATURE:** End EVERY email body with `<br><br>Best regards,<br>Ali Taghikhani<br>CEO, SRN`.
1023
  5. **EXAMPLE BODY:**
1024
  ```html
1025
  {{Welcome_Message}}<br><br>I saw your profile and was impressed. We have an opening for a Senior Engineer that seems like a great fit.<br><br>{{Closing_Message}}<br><br>Best regards,<br>Ali Taghikhani<br>CEO, SRN>
 
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 with <br> tag and then 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}")
 
1019
  - **INCORRECT:** `{first_name}` or `[first_name]` or `<first_name>`
1020
  2. **REQUIRED PLACEHOLDERS:** You MUST include `{{Welcome_Message}}` and `{{Closing_Message}}` in the first email. You should also use `{{first_name}}` in follow-ups.
1021
  3. **FIRST EMAIL STRUCTURE:** The first email's body MUST begin with `{{Welcome_Message}}` and end with `{{Closing_Message}}`.
1022
+ 4. **SIGNATURE:** End EVERY email body with `<br><br>Best regards`.
1023
  5. **EXAMPLE BODY:**
1024
  ```html
1025
  {{Welcome_Message}}<br><br>I saw your profile and was impressed. We have an opening for a Senior Engineer that seems like a great fit.<br><br>{{Closing_Message}}<br><br>Best regards,<br>Ali Taghikhani<br>CEO, SRN>