{"product_id":"n8n-workflow-evidence-based-professor-emails-with-gpt-4-1","title":"n8n Workflow: Evidence-Based Professor Emails with GPT-4.1","description":"\u003ch3\u003eTurn CV + motivation + professor research into a personalized email draft (with evidence checking)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically creates an evidence-based outreach email: it reads a student’s CV and motivation letter PDFs, extracts research details from an official professor profile page, and uses GPT-4.1 to produce (and quality-check) a personalized email—then saves it as an \u003cem\u003eunsent\u003c\/em\u003e Gmail draft with both documents attached.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIngests your submission:\u003c\/strong\u003e receives student details, a professor profile URL, and Google Drive links for the student’s CV and motivation letter via an n8n Form.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates inputs \u0026amp; downloads PDFs:\u003c\/strong\u003e normalizes required fields, downloads both PDFs from Google Drive, and extracts their text content.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a student evidence profile:\u003c\/strong\u003e uses OpenAI (GPT-4.1) to structure evidence from the CV and motivation letter, stopping early if required fields are missing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts professor details from a web page:\u003c\/strong\u003e fetches the professor profile via HTTP, removes scripts\/styles, and uses OpenAI to extract structured research evidence.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScores research-fit \u0026amp; finds connections:\u003c\/strong\u003e compares student vs. professor evidence and outputs a \u003cstrong\u003e0–10 research-fit score\u003c\/strong\u003e plus the strongest documented connections.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWrites and validates the outreach email:\u003c\/strong\u003e generates a personalized email (subject + body) and runs a second OpenAI validation pass to flag hallucinations or weak personalization.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a Gmail draft only when approved:\u003c\/strong\u003e if the professor email is valid and the email passes validation, it creates an \u003cstrong\u003eunsent Gmail draft\u003c\/strong\u003e addressed to the professor, attaching the CV and motivation letter.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomating research-group outreach for graduate admissions or collaboration proposals.\u003c\/li\u003e\n  \u003cli\u003eGenerating consistent, evidence-based professor emails while reducing “hallucination” risk.\u003c\/li\u003e\n  \u003cli\u003eBuilding an n8n pipeline that drafts outreach emails and documents for later human review.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e OpenAI (GPT-4.1), Google Drive (PDF download), Gmail (draft creation), HTTP fetch of professor profile pages.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore node logic:\u003c\/strong\u003e if, set, code, html (HTML cleaning\/processing), merge, gmail workflow step(s).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46244507222195,"sku":"N8N-21171","price":26.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/BQ-LwwJ-1TpEDGrjQ4EEb_KxuB5one.png?v=1792400823","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-evidence-based-professor-emails-with-gpt-4-1","provider":"N8N Commerce","version":"1.0","type":"link"}