Intelligent chatbot replies powered by AI and data logging
Workflow Description
This template captures incoming messages through a chat interface, processes them intelligently using OpenAI language models with chaining logic, splits responses based on conditions, and automatically logs conversations and metadata into Google Sheets for auditing and analysis.
How it works
- 1.Receive user message via integrated chat trigger interface
- 2.Process message through LLM chains and OpenAI API calls
- 3.Split and conditionally route responses using dynamic logic
- 4.Store replies and metadata records in Google Sheets
Use cases
- Intelligent customer support chatbots that learn conversation patterns
- Automated inquiry handling with structured data logging for compliance
Requirements
- Active OpenAI account with valid API key configured
- Google Workspace account with edit permissions on target spreadsheets
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (21)
Sticky Note
Sticky Note
Get Models
HTTP Request
Sticky Note1
Sticky Note
When chat message received
Chat Trigger
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Get timeDifference
Date Time
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Run Model with Dunamic Inputs
OpenAI
Analyze LLM Response Metrics
Code
Save Results to Google Sheets
Google Sheets
Capture End Time
Date Time
Capture Start Time
Date Time
Prepare Data for Analysis
Set
Extract Model IDsto Run Separately
Split Out
Sticky Note7
Sticky Note
Add System Prompt
Set
LLM Response Analysis
LLM Chain
Sticky Note8
Sticky Note