Skip to main content

Compare proposals and analyze gaps for Salesforce CRM with Groq AI

Workflow preview

Workflow preview
100%
Compare proposals and analyze gaps for Salesforce CRM with Groq AI preview
Open on n8n.io

1. Workflow Overview

AI Proposal Comparison & Gap Analysis Workflow for Salesforce CRM This workflow automatically analyzes newly uploaded proposals by comparing them with past winning proposals using AI. It extracts p...

Best for

  • CRM automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.set, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, n8n-nodes-base.extractfromfile, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Compare proposals and analyze gaps for Salesforce CRM with Groq AI
Workflow name
Compare proposals and analyze gaps for Salesforce CRM with Groq AI

AI Proposal Comparison & Gap Analysis Workflow for Salesforce CRM

This workflow automatically analyzes newly uploaded proposals by comparing them with past winning proposals using AI. It extracts proposal content, identifies the client, fetches reference data from Google Sheets and generates actionable insights. These insights are saved in Salesforce and shared on Slack for team visibility.

Quick Implementation Steps

  • Connect Google Drive, Google Sheets, Salesforce, Slack and Groq AI credentials in your n8n account.
  • Set your Google Drive folder to monitor proposal uploads.
  • Ensure your Google Sheet contains winning proposals with status = Won.
  • Activate the workflow.
  • Upload a proposal file to trigger analysis automatically.

What It Does

This workflow automates the process of analyzing business proposals by leveraging AI and historical data. When a new proposal file is uploaded to a specific Google Drive folder, the workflow downloads and extracts its content. It then identifies the client name using a simple pattern from the text. At the same time, the workflow fetches past winning proposals from a Google Sheets database filtered by status. Both the current and past proposals are combined and sent to an AI model for comparison. The AI generates concise insights highlighting missing elements, weak positioning, pricing gaps and improvement suggestions. Finally, the insights are formatted and stored in Salesforce as an Opportunity record. A notification is sent to Slack, ensuring the team is informed and can act quickly to improve proposal quality.

Who It's For

  • Sales teams managing multiple proposals
  • Business development professionals
  • Proposal review and strategy teams
  • Organizations using Salesforce CRM
  • Teams looking to improve win rates using AI

Requirements

  • n8n account (self-hosted or cloud)
  • Google Drive account (with folder for proposals)
  • Google Sheets account (with winning proposals data)
  • Salesforce account (Opportunity access enabled)
  • Slack workspace (channel for notifications)
  • Groq API credentials (for AI model access)

How It Works & Set Up

1. Setup Google Drive Trigger

  • Configure New Proposal Upload Trigger
  • Select the folder where proposals will be uploaded
  • Event: fileCreated

2. Download and Extract Proposal

  • Use Download Proposal node to fetch file
  • Use Read Proposal Text node to extract content

3. Extract Client Information

  • Use Extract Client Info (Code node)
  • Extract clientName using regex from text
  • Store full proposal as currentProposal

4. Fetch Winning Proposals

  • Configure Get Winning Proposal Data (Knowledge Base)
  • Connect Google Sheet
  • Filter where status = Won

5. Combine Data

  • Use Combine Proposal Data (Merge node)
  • Combine current proposal and past proposal

6. AI Analysis

  • Use AI Proposal Gap Analyzer
  • Provide prompt to compare proposals
  • Generate structured insights (8–10 bullet points)

7. Format Output

  • Use Format Analysis Output
  • Map clientName and analysisSummary

8. Save to Salesforce

  • Use Save Insights to Salesforce
  • Create Opportunity
  • Add insights in description

9. Prepare Final Output

  • Use Prepare Final Output (Merge node)

10. Add Delay (Optional Control)

  • Use Wait for Save node (2 seconds delay)

11. Send Slack Notification

  • Use Send Notification to Slack
  • Send formatted message with insights

How To Customize Nodes

  • Extract Client Info: Modify regex if proposal format changes
  • Google Sheets Node: Change filter or add more columns
  • AI Prompt: Customize output format or analysis depth
  • Salesforce Node: Change stage, fields or object type
  • Slack Node: Update message format or channel
  • Wait Node: Adjust delay time if needed

Add-ons

  • Add email notification (Gmail node)
  • Store results in Google Sheets for history
  • Add error handling with IF node
  • Add multiple proposal comparison logic
  • Integrate dashboard (Notion, Airtable, etc.)

Use Case Examples

  • Improving proposal quality before client submission
  • Training new sales team members using past wins
  • Automating proposal review workflows
  • Identifying common gaps in losing proposals
  • Tracking proposal insights in CRM There can be many more use cases depending on how you extend this workflow.

Troubleshooting Guide

Issue Possible Cause Solution
No trigger on file upload Incorrect folder selected Verify Google Drive folder ID
Client name not extracted Proposal format mismatch Update regex in Code node
No data from Google Sheets Filter mismatch (status = Won) Check column name and values
AI output empty Prompt or input missing Verify merged data structure
Salesforce error Invalid credentials or field Check API credentials and field mapping
Slack message not sent Wrong channel or auth issue Reconnect Slack credentials
Workflow stops before Slack Wait node misconfigured Ensure correct connection after Wait node

Need Help?

If you need assistance setting up this workflow, customizing nodes or adding advanced features, we’re here to help. Whether it's integrating additional tools, improving AI analysis or building custom automation workflows tailored to your business needs, feel free to reach out to our n8n developers at WeblineIndia. Get expert help to scale your automation and build powerful AI-driven workflows efficiently.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Groq Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 2 - Format Analysis Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - New Proposal Upload Trigger

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 4 - Download Proposal

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 5 - Read Proposal Text

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1.1

Block 6 - Extract Client Info

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Get Winning Proposal Data (Knowledge Base)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Combine Proposal Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 9 - AI Proposal Gap Analyzer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 10 - Save Insights to Salesforce

Type / Role
n8n-nodes-base.salesforce - salesforce
Config choices
Version 1

Block 11 - Prepare Final Output

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Send Notification to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Wait for Save

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

Workflow Compare proposals and analyze gaps for Salesforce CRM with Groq AI
Complexity advanced
Nodes 17
Categories CRM, AI RAG
Author WeblineIndia
Published 15 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15072/15072.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Compare proposals and analyze gaps for Salesforce CRM with Groq AI do?

AI Proposal Comparison & Gap Analysis Workflow for Salesforce CRM This workflow automatically analyzes newly uploaded proposals by comparing them with past winning proposals using AI. It extracts p...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, AI RAG use case.