Block 1 - When chat message received
- Type / Role
- @n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
- Config choices
- Version 1.3
This workflow is provided as-is. Please review and test before using in production.
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 infor...
@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.
Original n8n.io sourceThis 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 itself is a separate sub-workflow, connected to the agent as a tool via the Tool Workflow node.
This sub-workflow will be triggered by the AI agent to process collected information.
It will:
Steps inside the sub-workflow:
{
"email": "[email protected]",
"description": "Wants help automating lead intake and sending Slack notifications."
}
Structured Output Parser – Ensures the extracted data matches the expected JSON schema.
Append row in sheet (Google Sheets) – Adds the new lead data to your CRM sheet.
Code Node – Returns a simple text confirmation like "Thanks for the info, we will be in touch soon".
email and description.This workflow acts as the main AI Agent handling incoming chat messages.
"Parameter" as the source.ai_tool connection.crm tool to store lead information) so the agent knows when to use it.Created by Robert A. – Ynteractive
Website: https://ynteractive.com
Email: [email protected]
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 | AI website chatbot with CRM lead collection using GPT and Google Sheets |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | Lead Generation, Multimodal AI |
| Author | Robert Breen |
| Published | 10 Aug 2025 |
Use the JSON export at /data/workflows/7227/7227.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 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 infor...
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 Lead Generation, Multimodal AI use case.