# Analyze customer feedback and send AI-written replies: n8n workflow

> Started by another system calling it, and works across Email, Google Sheets, HubSpot, Postgres and three others. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/analyze-customer-feedback-and-send-ai-written-replies (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# Analyze customer feedback and send AI-written replies

Started by another system calling it, and works across Email, Google Sheets, HubSpot, Postgres and three others. It hands the judgement calls to OpenAI. 31 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-customer-feedback-and-send-ai-written-replies)

**31 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**7** Services it connects to

## The flow

Starts it 1 Model 6 Logic 10 Service 14

The steps in the order they run, from what starts it.

- 1 **Event Ingestion Webhook** Webhook *Starts it*
- 2 **OpenAI GPT-4 Model** Lm Chat Open Ai *Model*
- 3 **Analysis Output Parser** Output Parser Structured *Model*
- 4 **OpenAI GPT-4 Decision Model** Lm Chat Open Ai *Model*
- 5 **Decision Output Parser** Output Parser Structured *Model*
- 6 **Workflow Configuration** Set *Logic*
- 7 **Intent & Sentiment Analysis Agent** Agent *Model*
- 8 **Decision Policy Agent** Agent *Model*
- 9 **Event Normalization** Code *Logic*
- 10 **Calculate Priority Score** Code *Logic*
- 11 **Route by Action Type** Switch *Logic*
- 12 **Check Deduplication Cache** Redis *Service*
- 13 **Route by Priority & Intent** Switch *Logic*
- 14 **Send Marketing Email** Email Send *Service*
- 15 **Create Salesforce Lead** Salesforce *Service*
- 16 **Update HubSpot Contact** Hubspot *Service*
- 17 **Send Support Alert** Slack *Service*
- 18 **Is Duplicate Event?** If *Logic*
- 19 **Check Rate Limit** Redis *Service*
- 20 **Aggregate Action Results** Aggregate *Logic*
- 21 **Store Event in Cache** Redis *Service*
- 22 **Rate Limit Exceeded?** If *Logic*
- 23 **Log Decision Provenance** Postgres *Service*
- 24 **Merge Enrichment Data** Merge *Logic*
- 25 **Fetch Historical Interactions** Postgres *Service*
- 26 **Fetch Feature Store Data** Postgres *Service*
- 27 **Fetch Segmentation Rules** Postgres *Service*
- 28 **Check Cross-Channel Suppression** Postgres *Service*
- 29 **Store Outcome for Feedback Loop** Postgres *Service*
- 30 **Is Suppressed?** If *Logic*
- 31 **Update Analytics Dashboard** Google Sheets *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 31, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Google Sheets, HubSpot, Postgres, Redis, Salesforce, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Email, Google Sheets, HubSpot, Postgres, Redis, Salesforce and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-customer-feedback-and-send-ai-written-replies)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[HubSpot](https://millionrounds.com/workflows?service=HubSpot#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Redis](https://millionrounds.com/workflows?service=Redis#library)[Salesforce](https://millionrounds.com/workflows?service=Salesforce#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**Deal Room - AI-Powered M&A Due Diligence Accelerator** 31 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/deal-room-ai-powered-m-and-a-due-diligence-accelerator)
- [**LoneScale - jobs intent data to Salesforce with OpenAI** 32 steps · calls a model · Salesforce, Slack](https://millionrounds.com/workflow/lonescale-jobs-intent-data-to-salesforce-with-openai)
- [**Reply to social media and email sales inquiries with OpenAI** 30 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/reply-to-social-media-and-email-sales-inquiries-with-openai)
- [**Telegram AI bot-to-human handoff for sales calls with OpenAI** 30 steps · calls a model · Redis, Telegram](https://millionrounds.com/workflow/telegram-ai-bot-to-human-handoff-for-sales-calls-with-openai)
- [**Route Placetel AI voice agent requests into HubSpot CRM** 32 steps · HubSpot](https://millionrounds.com/workflow/route-placetel-ai-voice-agent-requests-into-hubspot-crm)
- [**Sync contacts, consent, and segments between KlickTipp** 30 steps · Salesforce](https://millionrounds.com/workflow/sync-contacts-consent-and-segments-between-klicktipp)
