Templates / Build a Slack-based CRM assistant with HubSpot and Google Gemini

Build a Slack-based CRM assistant with HubSpot and Google Gemini

Ready for 3.0

by Avkash Kakdiya ✓ · 42 views · created 2026-04-01 · CRM, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Worth a look

Nodes used (8)

SlackHubSpotGoogle Gemini Chat ModelAI Agent

What it does

How it works This workflow creates a Slack-based CRM assistant that allows users to query HubSpot data using natural language. When a user mentions the bot in Slack, the message is cleaned and processed to remove Slack-specific formatting. The workflow then retrieves and filters relevant data from HubSpot (deals, companies, and contacts). Finally, an AI agent formats the response and sends a structured reply back to Slack. Step-by-step - Trigger on Slack mention - Slack Trigger – Listens for app mentions in Slack channels. - Code in JavaScript – Cleans the message by removing Slack IDs and formatting. - Fetch and filter CRM data - Get Deals – Retrieves deals from HubSpot. - Filter Deals – Filters deals based on the user query. - Get many companies – Fetches company records from HubSpot. - Filter Companies – Matches companies against the query. - Get Contacts – Retrieves contact data from HubSpot. - Filter Contacts – Filters contacts using name-based matching. - Merge – Combines filtered deals, companies, and contacts into one dataset. - Generate and send AI response - AI Agent – Uses AI to format and structure the CRM data into a readable response. - Google Gemini Chat Model – Provides the language model for the AI agent. - Send a message – Sends the final response back to the Slack channel. Why use this? - Enables instant CRM access directly from Slack without logging into HubSpot - Simplifies data lookup using natural language queries - Combines multiple CRM objects into a single intelligent response - Improves team productivity with faster decision-making - Easily customizable for additional fields, filters, or AI formatting

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.