Skip to main content

Overview

Brand reputation can shift in hours on social media. Marketing and PR teams need to spot negative mentions, review spikes, and emerging crises before they escalate. Manual monitoring across multiple platforms doesn’t scale. Refrain automates the monitoring loop — navigate to each platform, search for brand mentions, capture screenshots, and alert your team via Slack when something needs attention.

Example runbook

name: brand-mention-check
url: https://reviews.example.com
variables:
  - name: brand_name
    source: fixed
    value: "Acme Corp"
steps:
  - action: navigate
    url: "https://reviews.example.com/search?q={{ brand_name }}"
  - action: wait
    selector: ".search-results"
  - action: extract
    selector: ".review-count"
    capture: review_count
  - action: extract
    selector: ".latest-review"
    capture: latest_review
  - action: export
    format: csv
    fields:
      - name: brand
        value: "{{ brand_name }}"
      - name: review_count
        value: "{{ review_count }}"
      - name: latest_review
        value: "{{ latest_review }}"

Generate and execute

1

Generate the runbook

npx @refrainai/cli generate -- \
  --url https://reviews.example.com \
  --goal "Search for brand mentions and extract the latest reviews" \
  --context ./context.md \
  --output ./brand-monitor.yaml
2

Execute with screenshots

Capture visual evidence of each page state:
npx @refrainai/cli execute -- \
  --runbook ./brand-monitor.yaml \
  --screenshots ./screenshots \
  --notify slack
3

Schedule daily checks

Use the Web Console scheduler to run the monitoring runbook daily or hourly.

Why this works well

  • Cross-platform — Monitor multiple review sites and social platforms with separate runbooks.
  • Screenshot evidence — Capture the page state for audit and escalation.
  • Slack notifications — Get alerted immediately when new mentions are detected.
  • Self-healing — Platform UI changes don’t break the monitoring flow.

What’s next