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

# Notion の週間ステータスダイジェスト

export const UseCaseHero = ({title, description, prompt, category, features, devinUrl, agent, intent, playbookId, type}) => {
  const encodedPrompt = encodeURIComponent(prompt || '');
  const tag = 'docs-use-case-gallery';
  const utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=hero-cta';
  const agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  const devinHref = type === 'schedule' ? 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + (prompt ? '&prompt=' + encodedPrompt : '') : type === 'review' ? 'https://app.devin.ai/review?' + utm : agent === 'ada' ? 'https://app.devin.ai/search?' + utm + '&noSubmit=true' + (prompt ? '&prompt=' + encodedPrompt : '') : devinUrl ? devinUrl.includes('?') ? devinUrl + '&' + utm + agentParams : devinUrl + '?' + utm + agentParams : prompt ? 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encodedPrompt : 'https://app.devin.ai/?' + utm + agentParams;
  const buttonLabel = type === 'schedule' ? 'Schedule in Devin ↗' : type === 'review' ? 'Set Up Devin Review ↗' : agent === 'advanced' ? 'Try in Devin ↗' : agent === 'dana' ? 'Try in Dana ↗' : agent === 'ada' ? 'Try in Ask Devin ↗' : 'Try in Devin ↗';
  const featureList = features ? features.split(',').map(f => f.trim()) : [];
  return <div className="uc-hero">
      <div className="uc-hero-inner">
        <div className="uc-hero-left">
          <h1 className="uc-hero-title">{title}</h1>
          <p className="uc-hero-desc">{description}</p>
          <div>
            <a href={devinHref} target="_blank" rel="noopener noreferrer" className="try-in-devin-btn">
              {buttonLabel}
            </a>
          </div>
        </div>
        <div className="uc-hero-meta">
          <div className="uc-meta-item">
            <span className="uc-meta-label">Author</span>
            <span className="uc-meta-value">Cognition</span>
          </div>
          <div className="uc-meta-item">
            <span className="uc-meta-label">Category</span>
            <span className="uc-meta-value">{category}</span>
          </div>
          {featureList.length > 0 && <div className="uc-meta-item">
              <span className="uc-meta-label">Features</span>
              <span className="uc-meta-value">{featureList.join(', ')}</span>
            </div>}
        </div>
      </div>
    </div>;
};

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<UseCaseHero title="Notion での週間ステータスダイジェスト" description="スケジュールされた Devin が、最近の PR とコミットを要約し、毎週あなたの Notion ページに整形されたステータス更新を投稿します。" prompt="過去 7 日間に、私たちのリポジトリ全体でマージされた PR とコミットを確認してください。リリースされたもの、進行中のもの、そしてブロッカーになっているものを要約してください。Notion の「Engineering Status」ページを、新しい日付付きセクションで更新してください。" category="自動化" features="Schedules, MCP" type="schedule" />

<div className="uc-detail-wrapper">
  <Tip>手動で設定したくない場合は、このページへのリンクを Devin セッションに貼り付けて、すべて設定するよう依頼してください。</Tip>

  <Steps>
    <Step title="Notion MCP を接続する">
      Devin がステータスページを更新するには、あなたの Notion ワークスペースへの書き込み権限が必要です。**Settings > Connections > MCP servers** に移動し、**Notion** を見つけて **Enable** をクリックします。OAuth フローを完了するよう求められるので、組織全体でアクセスを共有できるよう、個人の Notion アカウントではなくサービスアカウントを使用してください。

      接続が完了したら、次のようにして簡単に Devin セッションを開始し、動作を確認します。

      <PromptBlock>
        ```txt Test Notion connection theme={null}
        「Engineering Status」というタイトルの Notion ページを見つけて、その内容を一覧表示してください。
        ```
      </PromptBlock>

      Devin がステータスページを見つけられれば準備完了です。見つからない場合は、Notion 連携に正しいページへのアクセス権があるか確認してください。Notion で該当ページを開き、**...** > **Connections** をクリックして、連携を追加します。
    </Step>

    <Step title="ステータス更新用のプロンプトを書く">
      プロンプトでは、Devin にどのリポジトリを確認するか、何を要約するか、結果をどこに書き込むかを指示します。対象の Notion ページと、望むフォーマットを具体的に指定してください。

      <PromptBlock type="schedule">
        ```txt Weekly status update theme={null}
        過去 7 日間に、私たちのリポジトリ
        (acme/web-app, acme/api-server, acme/infra)
        全体でマージされた PR とコミットを確認してください。

        活動があった主要なプロジェクト領域を要約し、それぞれの領域ごとのコントリビューターを列挙してください。
        Notion の「Engineering Status」ページの一番上に、新しい日付付きセクションを追加して更新してください。
        ```
      </PromptBlock>
    </Step>

    <Step title="毎週実行するようスケジュールする">
      [**Settings > Schedules**](/ja/product-guides/scheduled-sessions) に移動し、**Create schedule** をクリックします。

      * **Name**: `Weekly Engineering Status Update`
      * **Schedule type**: 繰り返し
      * **Frequency**: 毎週 — 月曜日の午前 8:00 (スタンドアップ前)
      * **Prompt**: 前のステップのプロンプトを貼り付ける
      * **Email notifications**: 何か問題が起きたときに通知されるよう、**On failure only** に設定する
      * **Slack channel** (任意): セッション通知を送信するチャンネルを選択する — ステータスページが更新されたときにチームへ通知するのに便利です

      **Save** をクリックします。これで Devin は、毎週月曜日の朝にこのセッションを自動的に実行します。各実行はスケジュール詳細ページの **Past Sessions** に表示されるので、Devin が投稿した内容を確認できます。

      このスケジュールに本番で頼る前に、通常のセッションとして一度手動で実行し、Notion 上の出力が期待どおりか確認してください。結果に応じてプロンプトを調整します。たとえば、Devin が各 PR について詳細を出しすぎる場合は、「説明は 15 語以内に収めてください」のように追記します。
    </Step>
  </Steps>
</div>
