Automated workflow
Workflow Description
An intelligent workflow that receives messages through a chat interface, processes them using OpenAI's AI models, analyzes sentiment, and takes appropriate actions based on the results. Combines natural language understanding with decision logic for automated responses.
How it works
- 1.Receive user message via chat trigger
- 2.Send text to OpenAI model for processing and understanding
- 3.Analyze sentiment and intent in the message
- 4.Apply decision chain logic based on analysis results
- 5.Execute appropriate action based on classification
Use cases
- Automated customer support with satisfaction assessment
- Classify inquiries and route them to appropriate departments
- Monitor user sentiment and alert team members to issues
Requirements
- Valid OpenAI API key configured
- Chat trigger interface enabled in n8n
- Decision logic and appropriate actions configured
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 (22)
When chat message received
Chat Trigger
Switch Model
Code
Set LLM index
Set
Increase LLM index
Set
No Operation, do nothing
No Op
Check for expected error
If
Loop finished without results
Set
Unexpected error
Set
Return result
Set
OpenAI 4o-mini
OpenAI
OpenAI 4o
OpenAI
OpenAI o1
OpenAI
OpenAI Chat Model
OpenAI
Validate response
Sentiment Analysis
Generate response
LLM Chain
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note