AI website chatbot with CRM lead collection using GPT and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- Convert Conversation (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Website Chatbot (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (crm tool); memory: Simple Memory
- Append row in sheet (Google Sheets): append
- Code: runs custom JavaScript code
Services it uses
Other OpenAI + Google Sheets templates (2,011)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
From the author
This n8n training workflow demonstrates how to connect a sub-workflow as a tool to an AI Agent. In this example, the main workflow is a Website Chatbot that engages visitors, collects contact information, and sends that data to a CRM process. The CRM process…