Automated revenue predictions from Stripe data with GPT-4 and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 09:00). Along the way it connects OpenAI Chat Model, Pinecone Vector Store, Embeddings OpenAI and Stripe and 2 more.
How it runs
Trigger: On a schedule (every day at 09:00).
- Fetch Stripe Charges (Stripe): get many (charge)
- Summarize Sales (Code): runs custom JavaScript code
- Prepare data (Edit Fields (Set)): sets 1 field: summary
- Forecaster agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Pinecone Vector Store); output parser: Structured Output Parser
- Save Forecast to Supabase (Supabase): uses Supabase
- Log Forecast in Google Sheets (Google Sheets): append
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 Forecaster agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Forecaster agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Stripe
n8n-nodes-base.stripe - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Supabase
n8n-nodes-base.supabase - Google Sheets
n8n-nodes-base.googleSheets
From the author
CFO Forecasting Agent - Marketplace Listing Headlines (Choose Your Favorite) Option 1 - Direct & Professional "AI-Powered CFO Forecasting Agent: Automated Revenue Predictions from Stripe Data" Option 2 - Benefit-Focused "Automate Your Financial Forecasting:…