Automation library · CRM

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.

LargeCalls a model: OpenAI

31 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
0Loops or waits
7Services it connects to

The flow

Starts it 1Model 6Logic 10Service 14

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

  1. 1Event Ingestion WebhookWebhookStarts it
  2. 2OpenAI GPT-4 ModelLm Chat Open AiModel
  3. 3Analysis Output ParserOutput Parser StructuredModel
  4. 4OpenAI GPT-4 Decision ModelLm Chat Open AiModel
  5. 5Decision Output ParserOutput Parser StructuredModel
  6. 6Workflow ConfigurationSetLogic
  7. 7Intent & Sentiment Analysis AgentAgentModel
  8. 8Decision Policy AgentAgentModel
  9. 9Event NormalizationCodeLogic
  10. 10Calculate Priority ScoreCodeLogic
  11. 11Route by Action TypeSwitchLogic
  12. 12Check Deduplication CacheRedisService
  13. 13Route by Priority & IntentSwitchLogic
  14. 14Send Marketing EmailEmail SendService
  15. 15Create Salesforce LeadSalesforceService
  16. 16Update HubSpot ContactHubspotService
  17. 17Send Support AlertSlackService
  18. 18Is Duplicate Event?IfLogic
  19. 19Check Rate LimitRedisService
  20. 20Aggregate Action ResultsAggregateLogic
  21. 21Store Event in CacheRedisService
  22. 22Rate Limit Exceeded?IfLogic
  23. 23Log Decision ProvenancePostgresService
  24. 24Merge Enrichment DataMergeLogic
  25. 25Fetch Historical InteractionsPostgresService
  26. 26Fetch Feature Store DataPostgresService
  27. 27Fetch Segmentation RulesPostgresService
  28. 28Check Cross-Channel SuppressionPostgresService
  29. 29Store Outcome for Feedback LoopPostgresService
  30. 30Is Suppressed?IfLogic
  31. 31Update Analytics DashboardGoogle SheetsService

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.