Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Analyze latest SEC 10-K and 10-Q risk sections with OpenAI, Sheets and Slack
Checks SEC EDGAR on a schedule for new 10-K or 10-Q filings, scores risk factor and MD&A sentiment with OpenAI, logs results to Sheets and alerts Slack.
What it does
# SEC EDGAR 10-K/10-Q Sentiment with OpenAI, Sheets & Slack This n8n workflow automatically checks SEC EDGAR for the latest 10-K or 10-Q filing, downloads the filing document, extracts the Risk Factors and Management's Discussion and Analysis (MD&A) sections, sends relevant filing content to OpenAI for sentiment and risk analysis, saves the result in Google Sheets, and sends a summary alert to Slack. The workflow also checks the filing's accession number to help prevent processing the same filing multiple times. ## Setup Steps - Create an n8n workflow and add a Schedule Trigger for the required daily execution time. - Configure the SEC EDGAR HTTP Request to retrieve recent company filings. - Add a Code node to filter only 10-K and 10-Q filing types. Connect Google Sheets and configure it to check existing accession numbers. - Add an IF node to identify whether the filing is new or already processed. - Configure the required Merge and Code nodes to prepare the filing metadata. - Add an HTTP Request to fetch the complete SEC filing document. - Extract the Risk Factors and MD&A sections using a Code node. - Prepare the extracted filing content and metadata for the AI model. - Configure the AI model with a structured prompt for sentiment and risk analysis. - Format the AI response into consistent JSON fields. Configure Google Sheets to append the analysis as a new row. - Configure Slack credentials and create the filing alert message. - Test the complete workflow with a real SEC filing. Verify that the data is correctly saved in Sheets and the Slack notification is received.
The steps
- Daily SEC Filing Check
- SEC EDGAR — Check Filings
- Filter 10-K / 10-Q Filings
- SEC - Fetch Filing Document
- Code - Extract Risk Factors + MD&A
- IF - Filing Already Exists
- Sheets - Check Existing Filing
- Merge - New Filing Data
- Code - Prepare Filing Data
- Merge - Filing Content & Metadata
- Code - Get Latest Filing
- Code - Prepare AI Input
- AI - Analyze Filing Sentiment
- Code - Format AI Analysis
16 steps in total.
Similar automations
Finance, Invoices & AccountingScreen US stocks by SEC revenue growth with GPT-5, Yahoo Finance, and Telegram23 stepsLead Generation & EnrichmentMonitor SEC Form D filings with Apify and score leads in Sheets and Slack35 stepsEmail AutomationEmail daily SEC EDGAR 8-K, 10-Q, and 10-K watchlist filings via SMTP7 stepsCRM & Sales PipelineAnalyze Salesforce stakeholder risk with Gmail, Calendar, OpenAI and Slack19 steps