Generate monthly AI financial reports with OpenAI and email/Slack distribution
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs on a schedule (cron 0 8 1 * *). Along the way it connects Postgres. It also calls api.openai.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 8 1 * *).
- Fetch P&L statement (HTTP Request): calls an HTTP API
- Fetch balance sheet (HTTP Request): calls an HTTP API
- Fetch cash flow statement (HTTP Request): calls an HTTP API
- Fetch previous period data for comparison (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Normalize and validate financial data (Code): runs custom JavaScript code
- Analyze trends and detect anomalies (Code): runs custom JavaScript code
- Generate AI-powered insights (HTTP Request): calls api.openai.com (POST)
- Extract and format AI insights (Code): runs custom JavaScript code
- Generate professional HTML report (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - Send Email
n8n-nodes-base.emailSend
From the author
This n8n workflow automatically fetches monthly financial statements, normalizes the data, performs KPI calculations and trend analysis, detects anomalies, generates AI-powered executive insights and recommendations, creates professional reports, and…