cold_email_2.0 / backend.py
Raykarr's picture
Second model version
6eb7feb
raw
history blame contribute delete
742 Bytes
import llm
import traceback
def collect_context_for_email(industry, role, tone, context, sender_details, rec_details):
try:
user_input = {
"industry": industry,
"recipient_role": rec_details["rec_name"],
"tone": tone,
"context": context,
"sender_name": sender_details["sender_name"],
"receiver_name": rec_details["rec_name"],
"receiver_designation": rec_details["rec_designation"],
"receiver_company_name": rec_details["rec_company_name"]
}
llm_output = llm.chat_with_groq(user_input)
return llm_output
except Exception as err:
traceback.print_exc()
print(err)