Xpersona
S

Stock Alert Workflow

CLAWHUB · Unverified

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market c...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17brwfrqyjhbjgadkvar20h8x8492g8:stock-alert-workflow
  1. Install using `clawhub skill install s17brwfrqyjhbjgadkvar20h8x8492g8:stock-alert-workflow` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/terrycarter1985/stock-alert-workflow before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-terrycarter1985-stock-alert-workflow/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

80,691 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: stock-alert-workflow
description: >
  Earnings surprise and analyst rating alert workflow. Use when (1) scraping earnings data to detect EPS beats above 10%, (2) searching analyst ratings for surprise stocks, (3) pushing formatted alerts via WhatsApp. Triggers on earnings surprise, EPS beat, analyst rating, stock alert, WhatsApp stock alert, earnings alert workflow.
---

# Stock Alert Workflow

Automated pipeline: earnings scrape → surprise filter → analyst search → WhatsApp push.

## Workflow

1. **Scrape earnings** — run `scripts/earnings_scraper.py` to fetch today's earnings from Yahoo Finance, output JSON to `data/earnings_{date}.json`
2. **Filter surprises** — run `scripts/surprise_filter.py` to extract tickers with EPS surprise >10%, output `data/surprises_{date}.json`
3. **Search analyst ratings** — for each surprise ticker, run `scripts/analyst_search.py` to find analyst ratings from the past 30 days via web search, output `data/ratings_{date}.json`
4. **Push alert** — run `scripts/whatsapp_push.py` to format and send the combined alert via WhatsApp

Each script can run standalone or be chained. All scripts accept `--date YYYY-MM-DD` (default: today).

## Script Details

### earnings_scraper.py
Scrapes Yahoo Finance earnings calendar. Requires `requests` and `beautifulsoup4`.
Output: array of `{ticker, company, eps_estimate, reported_eps, surprise_pct}`.

### surprise_filter.py
Reads earnings JSON, filters `surprise_pct > 10`, enriches with company name.
Output: filtered array.

### analyst_search.py
Reads surprise JSON, searches for analyst ratings via Brave/Bing web search for each ticker (last 30 days).
Output: array of `{ticker, ratings: [{source, rating, target_price, date}]}`.

### whatsapp_push.py
Reads both surprise and ratings JSON, formats a concise alert message, sends via wacli.
Requires wacli session to be authenticated.

## Configuration

Copy `references/config_template.yaml` to `config.yaml` and set:
- `whatsapp_recipient`: phone number for alerts
- `surprise_threshold`: minimum EPS surprise % (default 10)
- `search_days_back`: analyst rating lookback days (default 30)
- `data_dir`: path for intermediate JSON files (default `./data`)

## Scheduling

Set up a daily cron after market close to run the full pipeline:

```bash
python3 scripts/earnings_scraper.py && \
python3 scripts/surprise_filter.py && \
python3 scripts/analyst_search.py && \
python3 scripts/whatsapp_push.py
```

## Dependencies

- Python 3.10+
- `requests`, `beautifulsoup4` (scraper)
- `wacli` CLI authenticated (WhatsApp push)
- Web search API (Brave/Bing) for analyst ratings

_meta.json

{
  "ownerId": "kn72jmd20ws94jr0p8b3p24wyn82abgj",
  "slug": "stock-alert-workflow",
  "version": "2.1.0",
  "publishedAt": 1778545024061
}

references/config_template.yaml

# Stock Alert Workflow Configuration
# Copy to config.yaml and customize

# WhatsApp alert recipient (e.g. "+1234567890")
whatsapp_recipient: ""

# Minimum EPS surprise percentage to trigger alert
surprise_threshold: 10

# Analyst rating lookback window in days
search_days_back: 30

# Directory for intermediate JSON data files
data_dir: ./data

# Brave Search API key (optional, for analyst_search.py)
# brave_search_api_key: ""

# WhatsApp recipient env var name (alternative to whatsapp_recipient)
# whatsapp_recipient_env: WHATSAPP_RECIPIENT

data/earnings_2026-05-12.json

[
  {
    "ticker": "SE",
    "company": "Sea Limited",
    "eps_estimate": null,
    "reported_eps": 0.77,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "FNV",
    "company": "Franco-Nevada Corporation",
    "eps_estimate": null,
    "reported_eps": 2.08,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "JD",
    "company": "JD.com, Inc.",
    "eps_estimate": null,
    "reported_eps": 3.64,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "VOD",
    "company": "Vodafone Group Public Limited Company",
    "eps_estimate": null,
    "reported_eps": null,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "Q",
    "company": "Qnity Electronics, Inc.",
    "eps_estimate": null,
    "reported_eps": 0.92,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "VG",
    "company": "Venture Global, Inc.",
    "eps_estimate": null,
    "reported_eps": 0.12,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "EC",
    "company": "Ecopetrol S.A.",
    "eps_estimate": null,
    "reported_eps": 0.34,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "NXT",
    "company": "Nextpower Inc.",
    "eps_estimate": null,
    "reported_eps": 0.93,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "TLK",
    "company": "Perusahaan Perseroan (Persero) PT Telekomunikasi Indonesia Tbk",
    "eps_estimate": null,
    "reported_eps": null,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "JBS",
    "company": "JBS N.V.",
    "eps_estimate": null,
    "reported_eps": 1.19,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "TME",
    "company": "Tencent Music Entertainment Group",
    "eps_estimate": null,
    "reported_eps": 1.43,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "OKLO",
    "company": "Oklo Inc.",
    "eps_estimate": null,
    "reported_eps": -0.18,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "TIGO",
    "company": "Millicom International Cellular S.A.",
    "eps_estimate": null,
    "reported_eps": 0.85,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "BNT",
    "company": "Brookfield Wealth Solutions Ltd.",
    "eps_estimate": null,
    "reported_eps": null,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "ARMK",
    "company": "Aramark",
    "eps_estimate": null,
    "reported_eps": 0.48,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "AG",
    "company": "First Majestic Silver Corp.",
    "eps_estimate": null,
    "reported_eps": 0.31,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "ONON",
    "company": "On Holding AG",
    "eps_estimate": null,
    "reported_eps": 0.27,
    "surprise_pct": null,
    "date": "2026-05-12"
  },
  {
    "ticker": "RDY",
    "com

data/ratings_test.json

[{"ticker":"NVDA","company":"NVIDIA Corp","surprise_pct":23.5,"ratings":[{"source":"Morgan Stanley","url":"","snippet":"Upgrade to Overweight, target price $180","action":"Upgrade","rating":"Overweight","target_price":"180"},{"source":"Goldman Sachs","url":"","snippet":"Reiterated Buy, target price $175","action":"Reiterated","rating":"Buy","target_price":"175"}]}]

Sponsored

Ads related to Stock Alert Workflow and adjacent AI workflows.