AI-powered multi-channel customer journey with email, SMS & retargeting using OpenAI
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects AI Agent, OpenAI Chat Model, Structured Output Parser and Gmail and 2 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Workflow Configuration (Edit Fields (Set)): sets 7 fields: crmApiUrl, emailApiUrl, chatApiUrl…
- Fetch Performance Data (HTTP Request): calls an HTTP API
- Fetch CRM Data (HTTP Request): calls an HTTP API
- Fetch Email History (HTTP Request): calls an HTTP API
- Fetch Chat History (HTTP Request): calls an HTTP API
- Fetch Purchase History (HTTP Request): calls an HTTP API
- Aggregate: combines items into one
- Merge: merges the data from its input branches
- Update Customer State (Edit Fields (Set)): sets 3 fields: optimizationInsights, lastOptimized, performanceTrends
- Customer State Builder AI (AI Agent): runs an AI agent, with model: OpenAI Model - State Builder; output parser: Customer State Schema
…plus 8 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 (13)
- Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - 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 - Gmail
n8n-nodes-base.gmail - Twilio
n8n-nodes-base.twilio - Google Ads
n8n-nodes-base.googleAds - Aggregate
n8n-nodes-base.aggregate
From the author
How It Works This workflow automates personalized customer journeys by analyzing CRM data, purchase history, chat interactions, and performance metrics to intelligently route customer actions through multiple channels (email, SMS, retargeting) via…