Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Track macro regime shifts with FRED MCP, OpenAI, and Slack alerts

On a schedule, it runs an AI agent with OpenAI / ChatGPT using Data Table, Slack.

What it does

## Watch the backdrop change, not the headline Unemployment at 4.1% is not information. Unemployment at 4.1% after three straight monthly rises, against a twelve-month low of 3.7%, is. Every macro series publishes its level everywhere and its shape nowhere, so the only way to know the backdrop moved is to have written down what it was. ### How it works The data comes from a FRED MCP server, called over plain HTTP. n8n's MCP Client Tool is an agent sub-node, so the usual route is to hand an agent the tool and hope it calls. Streamable HTTP is JSON-RPC over POST, so the two calls per series are made directly and in parallel. There are two calls because the observations call answers native whatever the frequency actually is. get_series_info carries the real one, and it decides how many rows back a quarter is - three rows back on a daily series is three days. Add The Derived Signals computes the three that are not series at all: the 10-year minus 2-year spread, the Sahm rule, and the policy rate net of inflation. Each needs two series held at once. Save This Week's Reading hangs beside the IF, and runs on quiet weeks too - otherwise the next comparison silently spans two of them. ### Setup 1. Get a free key at fredaccount.stlouisfed.org/apikeys. 2. Run the server: FRED_API_KEY=... npx -y fred-economic-mcp@1.1.0 --http --host 0.0.0.0 --port 8933. 3. Point mcp_url in Settings at it: http://host.docker.internal:8933/mcp from n8n in Docker, http://127.0.0.1:8933/mcp otherwise. 4. Create a Data Table named macro_watch with the columns series_id, seen_on, value and regime. 5. An OpenAI credential and a Slack credential. Put your series in Settings and describe your business in business_context.

The steps

  1. Every Monday Morning
  2. Or Run It Now
  3. Settings
  4. Ask What The Server Offers
  5. Check The Tools Are There
  6. Read Last Week's Reading
  7. Pick The Indicators
  8. Ask What The Series Is
  9. Ask For The History
  10. Read The Series Description
  11. Read The History
  12. Wait For Both Calls
  13. Score Each Indicator
  14. Add The Derived Signals

23 steps in total.

Similar automations