Daily recession signal watchdog in Slack

By General Input

Every weekday morning, get a Slack alert the moment a classic US recession indicator flips, with a Google Sheets log of every trip event.

Integrations

  • FRED (St. Louis Fed)
  • Google Sheets
  • Slack

Type

Agentic Task

Categories

  • Finance
  • Operations

Every weekday at 9am ET, run a recession signal watchdog for me.

Pull the latest values from FRED using Get Series Observations for the following series. Request enough history so the rules below can be computed:

- T10Y2Y (10y minus 2y Treasury spread): inversion trigger when the latest value is below 0.

- T10Y3M (10y minus 3m Treasury spread): inversion trigger when the latest value is below 0.

- UNRATE (unemployment rate): compute the Sahm rule as the 3-month moving average of UNRATE minus the lowest 3-month moving average over the trailing 12 months. Trigger when Sahm is at or above 0.5 percentage points. Pull at least 18 months of history.

- CPIAUCSL (headline CPI, monthly index): compute year-over-year change. Trigger when YoY moves above 3 percent (from below) or back below 3 percent (from above).

- ICSA (initial jobless claims, weekly): compute the 4-week moving average. Trigger when the 4w average crosses above 250,000.

State management: before evaluating, read yesterday's most recent rows from the Google Sheets log to know which signals were already in a tripped state. Only fire an alert when a signal is freshly crossing its threshold today versus yesterday. Reverse crossings (back below the trigger) also count as a new event and should be flagged.

For every newly crossed signal:

1. Append a row to the Google Sheets log via Append Values. Columns: date (YYYY-MM-DD), signal name, current value, previous value, direction (tripped or recovered), and a short note.

2. Post a Slack alert via Send a Message to the channel I configure. Each alert should explain which signal flipped, the current value, the recent trajectory (last few readings), and one or two sentences of historical context about what this signal has meant in past US recession cycles (yield curve inversion lead times, Sahm rule history, CPI regime changes, claims thresholds).

If no signals newly crossed today, do nothing. No Slack message, no Sheet row. Quiet by default.

Integrations: FRED (API key), Google Sheets (the log spreadsheet ID and tab), Slack (the alert channel). Workflow type: agent.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageWin back LiveChat visitors whose chats went unansweredLet support send one-off Loops emails without an engineerStop cold emails to anyone with a live deal in PipedriveiMessage campaign console with pre-flight checks and delivery boardChat quality review board for LiveChat support leadsLinkedIn Ads budget pacing dashboard for every client accountFront desk appointment confirmation board for the next 3 daysGive your team Looker numbers without buying more seats