AI Agents

Automated workflow

22 nodes 250 124 Automatic trigger
Download

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. 1.Receive user message via chat trigger
  2. 2.Send text to OpenAI model for processing and understanding
  3. 3.Analyze sentiment and intent in the message
  4. 4.Apply decision chain logic based on analysis results
  5. 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

Chat Trigger OpenAI Sentiment Analysis LLM Chain

Details

Trigger Automatic trigger
Nodes 22
Apps 4
Views 250
Downloads 124

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (22)

/

When chat message received

Chat Trigger

#1

Switch Model

Code

#2

Set LLM index

Set

#3

Increase LLM index

Set

#4

No Operation, do nothing

No Op

#5

Check for expected error

If

#6

Loop finished without results

Set

#7

Unexpected error

Set

#8

Return result

Set

#9

OpenAI 4o-mini

OpenAI

#10

OpenAI 4o

OpenAI

#11

OpenAI o1

OpenAI

#12

OpenAI Chat Model

OpenAI

#13

Validate response

Sentiment Analysis

#14

Generate response

LLM Chain

#15

Sticky Note

Sticky Note

#16

Sticky Note1

Sticky Note

#17

Sticky Note2

Sticky Note

#18

Sticky Note3

Sticky Note

#19

Sticky Note4

Sticky Note

#20

Sticky Note5

Sticky Note

#21

Sticky Note6

Sticky Note

#22