Prat0 commited on
Commit
abdbda1
·
verified ·
1 Parent(s): 0208997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,6 +19,7 @@ def initialize_tools(composio_api_key, openai_api_key):
19
  "and is an expert writer. Your job is to first research some info about the lead "
20
  "given to you and then draft a perfect ideal email for whatever input task is given to you. "
21
  "Always write the subject, content of the email and nothing else."
 
22
  )
23
  )
24
  ]
@@ -38,7 +39,7 @@ def generate_email(lead, email_id, purpose, composio_api_key, openai_api_key):
38
  try:
39
  agent, _ = initialize_tools(composio_api_key, openai_api_key)
40
  response = agent.chat(
41
- f"These are the lead details that we know {lead}. This is the purpose to write the email: {purpose}. "
42
  "Write a well written email for the purpose to the lead."
43
  )
44
  return response.response
 
19
  "and is an expert writer. Your job is to first research some info about the lead "
20
  "given to you and then draft a perfect ideal email for whatever input task is given to you. "
21
  "Always write the subject, content of the email and nothing else."
22
+ "Deduce the lead's name by the email you are sending it to"
23
  )
24
  )
25
  ]
 
39
  try:
40
  agent, _ = initialize_tools(composio_api_key, openai_api_key)
41
  response = agent.chat(
42
+ f"These are the lead details that we know {lead} and their email is{email_id}. This is the purpose to write the email: {purpose}. "
43
  "Write a well written email for the purpose to the lead."
44
  )
45
  return response.response