Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Daily SEC Filing Check
  2. SEC EDGAR — Check Filings
  3. Filter 10-K / 10-Q Filings
  4. SEC - Fetch Filing Document
  5. Code - Extract Risk Factors + MD&A
  6. IF - Filing Already Exists
  7. Sheets - Check Existing Filing
  8. Merge - New Filing Data
  9. Code - Prepare Filing Data
  10. Merge - Filing Content & Metadata
  11. Code - Get Latest Filing
  12. Code - Prepare AI Input
  13. AI - Analyze Filing Sentiment
  14. Code - Format AI Analysis

16 steps in total.

Similar automations