Analyze & Tag User Feedback in Notion with GPT-4 Sentiment Analysis
Needs changesWhat this workflow does
This AI workflow has 19 nodes and runs on Notion events (paged updated in database). Along the way it connects Notion and OpenAI Chat Model.
How it runs
Trigger: On Notion events (paged updated in database).
- Sentiment Analysis: scores sentiment with AI, with model: OpenAI - Sentiment Analysis
- Set the Product information (Edit Fields (Set)): sets 2 fields: Product Overview, Core Features
- Merge: merges the data from its input branches
- update feedback sentiment analysis (Notion): update (database page)
- Get database structure (Notion): work with database
- AI Agent: runs an AI agent, with model: OpenAI - AI Agent; 3 tools (Get all feedback, Get all insights, Create New Insight); memory: Window Buffer Memory; output parser: Auto-fixing Output Parser
- Clean the database propertied (Code): runs custom JavaScript code
- Update Feedback (Notion): update (database page)
- Set Prompt (Edit Fields (Set)): sets 1 field: system_prompt
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Notion
n8n-nodes-base.notion - Notion Tool
n8n-nodes-base.notionTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Notion Trigger
n8n-nodes-base.notionTrigger - Merge
n8n-nodes-base.merge - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Overview - This n8n workflow processes user feedback automatically, tags it with sentiment, and links it to relevant insights in Notion. - It uses GPT-4 to analyze each feedback entry, determine whether it corresponds to an existing insight or a new one, and…