Block 1 - Google Gemini Chat Model
- Type / Role
- @n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
This workflow deploys a fully customizable AI chatbot that can be embedded on any website, from custom coded sites to platforms like WordPress. The chatbot is powered by n8n, uses Supabase for memo...
@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.vectorstoresupabase, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Shadrack.
Original n8n.io sourceThis workflow deploys a fully customizable AI chatbot that can be embedded on any website, from custom-coded sites to platforms like WordPress. The chatbot is powered by n8n, uses Supabase for memory and RAG, and integrates SerpAPI, Google Calendar, SMTP, and Google Sheets to automate responses, collect leads, and follow up intelligently.
Unlike typical widgets, this bot captures name and email before chatting, enabling personalized, human-like conversations and smart lead tracking. Check demo here
π‘ Universal Embedding β Works on any site (custom HTML or WordPress) using a single embed snippet.
π§ AI Agent Node + RAG β Powered by Gemini (or any AI model) with Supabase as memory for contextual replies.
π SerpAPI Integration β Lets the agent search the internet for real-time information.
π Google Calendar & Sheets β Logs leads, appointments, and chat summaries.
π§ SMTP Node β Sends personalized follow-up emails directly to new leads.
πͺͺ Lead Capture β Requires users to enter their name and email before chatting, creating personalized sessions.
Chat Trigger: The widget sends user input to your n8n webhook set to production mode.
AI Processing: The AI Agent node handles the response logic with memory and RAG context from Supabase.
SerpAPI β Real-time search.
Google Calendar & Sheets β Stores lead data and events.
SMTP Node β Sends automatic thank-you or follow-up emails.
Response: The chatbot replies instantly on your website, maintaining session memory.
Fork or use the Open Source Repo: The widget script is hosted via CDN from your GitHub repo and is fully editable.
Copy and paste the following snippet into your siteβs <head> or footer (or use a plugin like Insert Headers and Footers on WordPress):
<link href="https://cdn.jsdelivr.net/npm/@n8n/chat/dist/style.css" rel="stylesheet" />
<script>
window.ChatWidgetConfig = {
webhook: {
url: '', // production webhook URL
route: 'general'
},
branding: {
logo: '', // your logo URL
name: 'CustomCX Agent',
welcomeText: 'Hi π, how can we help?',
responseTimeText: 'We typically respond right away',
},
style: {
primaryColor: '#854fff',
secondaryColor: '#6b3fd4',
position: 'right',
backgroundColor: '#ffffff',
fontColor: '#333333',
}
};
</script>
<script src="https://cdn.jsdelivr.net/gh/shadrack-ago/n8n/widget.js?v=2.6"></script>
Add your Supabase, SerpAPI, Google, and SMTP credentials in n8n.
Update your webhook URL in the script above.
Deploy: Activate the workflow, refresh your site, and start chatting with your AI assistant.
π Why Use This Template
Works with any website or CMS.
Captures and stores qualified leads automatically.
Open source β easily modify, brand, or extend it.
Seamlessly integrates AI, CRM, and communication tools.
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.
| Workflow | Build a website AI chatbot with lead capture using Gemini and Supabase RAG |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | Support Chatbot, AI Chatbot |
| Author | Shadrack |
| Published | 30 Oct 2025 |
Use the JSON export at /data/workflows/10365/10365.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
This workflow deploys a fully customizable AI chatbot that can be embedded on any website, from custom coded sites to platforms like WordPress. The chatbot is powered by n8n, uses Supabase for memo...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Support Chatbot, AI Chatbot use case.