> ## Documentation Index
> Fetch the complete documentation index at: https://docs.therefrain.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SNS・炎上監視

> SNS 上のブランド言及・レビュー・炎上の兆候を早期検知し、スクリーンショット付きでアラート。

## 概要

SNS 上のブランド評判は数時間で大きく変わります。マーケティング・広報チームは、ネガティブな言及やレビューの急増、炎上の兆候をエスカレートする前に察知する必要があります。複数プラットフォームを手動で監視するのは現実的ではありません。

Refrain は監視ループを自動化します。各プラットフォームにアクセスし、ブランド言及を検索し、スクリーンショットを撮影して、対応が必要な場合は Slack でチームに通知します。

## 手順書の例

```yaml theme={null}
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 }}"
```

## 生成と実行

<Steps>
  <Step title="手順書を生成する">
    ```bash theme={null}
    npx @refrainai/cli generate -- \
      --url https://reviews.example.com \
      --goal "ブランド言及を検索し、最新のレビューを取得する" \
      --context ./context.md \
      --output ./brand-monitor.yaml
    ```
  </Step>

  <Step title="スクリーンショット付きで実行する">
    各ページの状態をスクリーンショットとして記録します：

    ```bash theme={null}
    npx @refrainai/cli execute -- \
      --runbook ./brand-monitor.yaml \
      --screenshots ./screenshots \
      --notify slack
    ```
  </Step>

  <Step title="定期チェックをスケジュールする">
    Web コンソールのスケジューラーで毎日・毎時の監視を設定します。
  </Step>
</Steps>

## Refrain が向いている理由

* **クロスプラットフォーム** — 複数のレビューサイト・SNS をそれぞれの手順書で監視。
* **スクリーンショット証跡** — 監査やエスカレーション用にページ状態を記録。
* **Slack 通知** — 新しい言及が検出されたら即座にアラート。
* **自己修復** — プラットフォームの UI 変更があっても監視が止まらない。

## 次のステップ

<CardGroup cols={2}>
  <Card title="承認と通知" icon="bell" href="/ja/guides/approval-and-notifications">
    Slack / Teams / Discord の通知を設定する。
  </Card>

  <Card title="手順書を実行する" icon="play" href="/ja/guides/execute-runbook">
    スクリーンショットやレポートのオプションを学ぶ。
  </Card>
</CardGroup>
