Analyze customer feedback and send AI-written replies with GPT-4 and Gmail
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Redis, Postgres, OpenAI Chat Model and Salesforce and 3 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: redisHost, redisTTL, postgresHost…
- Event Normalization (Code): runs custom JavaScript code
- Check Deduplication Cache (Redis): get
- Is Duplicate Event? (If): checks a condition and branches into true / false
- Store Event in Cache (Redis): set
- Merge: merges the data from its input branches
- Fetch Historical Interactions (Postgres): run a query
- Fetch Feature Store Data (Postgres): run a query
- Fetch Segmentation Rules (Postgres): run a query
- Intent & Sentiment Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Model; output parser: Analysis Output Parser
…plus 16 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (17)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Redis
n8n-nodes-base.redis - If
n8n-nodes-base.if - Postgres
n8n-nodes-base.postgres - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Send Email
n8n-nodes-base.emailSend - Salesforce
n8n-nodes-base.salesforce - HubSpot
n8n-nodes-base.hubspot - Slack
n8n-nodes-base.slack - Aggregate
n8n-nodes-base.aggregate - Google Sheets
n8n-nodes-base.googleSheets
From the author
How It Works This workflow automates customer feedback processing by analyzing sentiment, identifying key issues, generating personalized responses, and escalating critical cases to support teams when required. Designed for customer success managers, support…