Capture new website leads from ERPNext and send the right email from Outlook in minutes. An AI agent reads the lead note and your company info to decide if the inquiry is valid and who should respond. Great for sales teams with many products and owners.
Here is how it runs: A webhook fires when a Lead is created in ERPNext. Filters pass only open leads from the Website source and then fetch full details including notes. The AI agent uses OpenAI plus your Google Docs company profile and policies, the abbreviations sheet, and a contacts sheet to classify the request, pick recipients, and write a clear email body. If the agent marks the inquiry invalid, the flow stops. If valid, code extracts the subject and recipient emails, converts the message to HTML, adds an ERPNext lead link, and sends from Microsoft Outlook.
Setup needs document IDs for the two Google Docs and the Google Sheets files, and working ERPNext API and Outlook OAuth credentials. Teams typically cut triage time by about 80 percent and can handle more web traffic without extra staff. Use it to route product specific questions, auto reply to valid leads, and keep a clean audit trail in ERPNext.