{"product_id":"score-salesforce-deal-momentum-with-gmail-slack-in-n8n","title":"Score Salesforce Deal Momentum with Gmail \u0026 Slack in n8n","description":"\u003ch3\u003eScore Salesforce Deal Momentum from Gmail + Calendar Activity—Then update Slack automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow runs daily to calculate a \u003cstrong\u003eSalesforce deal momentum score\u003c\/strong\u003e using \u003cstrong\u003erecent Gmail email activity\u003c\/strong\u003e and \u003cstrong\u003eGoogle Calendar meetings\u003c\/strong\u003e, generates a short explanation with \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e, updates custom fields in Salesforce, and posts the results to \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns daily on a schedule\u003c\/strong\u003e and fetches all Salesforce opportunities.\u003c\/li\u003e\n  \u003cli\u003eProcesses each opportunity individually, retrieves full opportunity details, and \u003cstrong\u003eskips deals without a ContactId\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003ePulls the related Salesforce contact record and \u003cstrong\u003eskips contacts with a missing email address\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eSearches \u003cstrong\u003eGmail\u003c\/strong\u003e and \u003cstrong\u003eGoogle Calendar\u003c\/strong\u003e for that contact’s activity over the \u003cstrong\u003elast 14 days\u003c\/strong\u003e, converting results into engagement counts and recency metrics.\u003c\/li\u003e\n  \u003cli\u003eCombines those engagement metrics with the deal data to calculate a \u003cstrong\u003emomentum score\u003c\/strong\u003e, \u003cstrong\u003emomentum band\u003c\/strong\u003e, momentum status, and key positive\/negative drivers.\u003c\/li\u003e\n  \u003cli\u003eSends the scoring output to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to generate a \u003cstrong\u003ebrief momentum reason\u003c\/strong\u003e and a \u003cstrong\u003erecommended next action\u003c\/strong\u003e, then parses the JSON response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates the Salesforce opportunity\u003c\/strong\u003e with:\n    \u003cul\u003e\n      \u003cli\u003e\u003cem\u003eMomentum_Score__c\u003c\/em\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003cem\u003eMomentum_Band__c\u003c\/em\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003cem\u003eMomentum_Reason__c\u003c\/em\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003cem\u003eMomentum_Last_Updated__c\u003c\/em\u003e\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePosts a deal momentum update to Slack\u003c\/strong\u003e and waits one minute before moving to the next deal.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSales ops teams want \u003cstrong\u003edaily deal health signals\u003c\/strong\u003e based on real prospect communication.\u003c\/li\u003e\n  \u003cli\u003eRevOps managers need automatic \u003cstrong\u003eSalesforce field enrichment\u003c\/strong\u003e plus \u003cstrong\u003eteam visibility in Slack\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers use it as a reference pattern for combining \u003cstrong\u003eGmail + Calendar\u003c\/strong\u003e activity with \u003cstrong\u003eLLM-generated summaries\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n schedule\u003c\/strong\u003e trigger\u003c\/li\u003e\n  \u003cli\u003eNodes\/steps reflected in the workflow: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003egmail\u003c\/strong\u003e, \u003cstrong\u003emerge\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eIntegrations: \u003cstrong\u003eSalesforce\u003c\/strong\u003e, \u003cstrong\u003eGmail\u003c\/strong\u003e, \u003cstrong\u003eGoogle Calendar\u003c\/strong\u003e, \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e, \u003cstrong\u003eSlack\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup tip:\u003c\/strong\u003e add Salesforce credentials and map the custom fields above; add Gmail credentials and ensure the mailbox is connected.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45850799538355,"sku":"N8N-18109","price":63.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/V0elvJe0A4mVh32fS_UWj_jLODopqo.png?v=1786871739","url":"https:\/\/buyflowscripts.com\/products\/score-salesforce-deal-momentum-with-gmail-slack-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}