0Pricing
OpenClaw Academy · レッスン

requireMentionとmentionPatternsでグループルールを設定する

グループのrequireMentionとメッセージのmentionPatternsを設定し、明示的に呼びかけられた場合のみOpenClawが応答するようにします。

「requireMentionとmentionPatternsでグループルールを設定する」はCoddyKit上の無料OpenClaw Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはOpenClaw Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 OpenClaw Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Calm in Group Chats

In a busy group, you do not want your assistant replying to everything. Group rules let it stay quiet until it is actually addressed. 🤫

Meet requireMention

The key for this is requireMention. Turn it on for a group and OpenClaw only answers when someone explicitly mentions it.

groups: {
  "*": { requireMention: true }
}

The Star Means All

That * wildcard means every group. Setting requireMention under it applies the rule to all groups on that channel at once.

Where It Lives

requireMention sits inside a channel's groups block. So it is per platform, letting you keep group manners channel by channel.

whatsapp: {
  groups: { "*": { requireMention: true } }
}

Meet mentionPatterns

Next, how does it know it was mentioned? mentionPatterns lists the words that count as calling your assistant by name.

messages: {
  groupChat: { mentionPatterns: ["@openclaw"] }
}

Where mentionPatterns Sits

mentionPatterns lives under messages.groupChat. It is a list, so you can register more than one way people might tag the assistant.

Adding Patterns

Want a friendlier handle? Add more entries to the list. Any matching mention in a group will wake your assistant up.

mentionPatterns: ["@openclaw", "@claw"]

How They Work Together

The two pair up: requireMention says wait to be called, and mentionPatterns defines what being called sounds like.

A Combined Example

Here both keys work as a team in openclaw.json: groups require a mention, and the patterns define the trigger word.

channels: { whatsapp: {
  groups: { "*": { requireMention: true } }
} }

Less Noise

Together these settings cut the noise. Your assistant ignores normal chatter and steps in only when a group member tags it.

Apply and Test

Save the file, restart OpenClaw, then send a mention in a group. A reply confirms your patterns and requireMention are working.

Quick Check

Match each key to its job.

Recap

You tamed group chats: requireMention waits to be called, and mentionPatterns defines the call. Next, the smart defaults. ✅

よくある質問

「requireMentionとmentionPatternsでグループルールを設定する」レッスンは無料ですか?

はい。「requireMentionとmentionPatternsでグループルールを設定する」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、OpenClaw Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 OpenClaw Academyコースには全4レッスンが含まれています。

「requireMentionとmentionPatternsでグループルールを設定する」で何を学びますか?

グループのrequireMentionとメッセージのmentionPatternsを設定し、明示的に呼びかけられた場合のみOpenClawが応答するようにします。 ブラウザで直接実行するハンズオンコードでOpenClaw Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

OpenClaw Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのOpenClaw Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「requireMentionとmentionPatternsでグループルールを設定する」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このOpenClaw Academyレッスンでコードを書いて実行できますか?

はい。すべてのOpenClaw Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. openclaw.json 設定ファイル
  2. allowFromで送信者を許可リストに登録する
  3. requireMentionとmentionPatternsでグループルールを設定する
  4. 何も設定しない場合のデフォルト
← OpenClaw Academyに戻る