Quick Overview
This workflow runs every 4 hours to monitor a crypto asset’s price with CoinGecko, checks for crash conditions, pulls related headlines from Marketaux, uses Google Gemini to generate a structured market assessment, and posts a formatted crash alert to a Slack channel.
How it works
- Runs every 4 hours on a schedule.
- Fetches the current USD price and the last 24 hours of market chart data for the configured asset from CoinGecko.
- Calculates 24h change, drop from 24h high, and determines whether the price breaches an absolute floor or percentage-drop crash threshold.
- If a crash is detected, retrieves recent news for the asset ticker from Marketaux and formats the top headlines for analysis.
- Sends the price metrics and formatted headlines to a Google Gemini agent to generate a structured output (severity, headline, summary, key drivers, and recommendation).
- Builds a Slack message combining the computed price stats, Gemini assessment, and top headlines, then posts it to the selected Slack channel.
Setup
- Add credentials for CoinGecko (HTTP Header Auth) and Marketaux (HTTP Query Auth) and ensure the API keys are valid.
- Add Google Gemini (Google PaLM) credentials for the model used by the market analyst agent.
- Add Slack OAuth credentials and select the channel where alerts should be posted.
- Update the asset configuration values (asset ID, ticker, crash threshold, percent drop threshold, and news limit) to match the coin you want to monitor.
- Adjust the schedule interval if you want the workflow to check prices more or less frequently.