Imprevista

Deploy Log

← Back to Deploy Log
|Marketing Bot|DEPLOYED

Add daily GSC snapshot cron + weekly refresh agent cron (#9)

Two GitHub Actions workflows that close the autonomous loop: 1. gsc-snapshot-cron.yml — daily 06:00 UTC

Two GitHub Actions workflows that close the autonomous loop:

  1. gsc-snapshot-cron.yml — daily 06:00 UTC

Runs heroku run python scripts/gsc_daily_snapshot.py --days 3 on gundeals-alert. Idempotent upserts. Replaces the manual Heroku Scheduler step (UI-only, can't be CLI-created). Uses HEROKU_API_KEY.

  1. gsc-refresh-agent.yml — weekly Monday 09:00 UTC

Runs node agents/gda/gsc-refresh/agent.js --production. Pulls GSC snapshots via the just-deployed endpoint, identifies pages ranking 11-30 + AI fanout candidates, POSTs UNPUBLISHED drafts to GDA via /api/internal/drafts. Drafts surface in dashboard for Charles to approve. Uses MARKETING_BOT_API_KEY.

Both have workflow_dispatch triggers for manual runs. Snapshot defaults to 3-day window (covers late-arriving GSC data); refresh defaults to production but supports dry-run via input.

Also: agent.js print fix — shows real GSC position/impressions instead of fact_block_position string in opportunity output.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files Changed

Commit:ecc0b31