Reguły grup z requireMention i mentionPatterns
Ustaw grupowe requireMention oraz messages mentionPatterns, aby OpenClaw odpowiadał tylko wtedy, gdy zostanie wyraźnie przywołany.
Reguły grup z requireMention i mentionPatterns to bezpłatna lekcja OpenClaw Academy na CoddyKit. To lekcja 3 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej OpenClaw Academy, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs OpenClaw Academy zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
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. ✅
Często zadawane pytania
Czy lekcja „Reguły grup z requireMention i mentionPatterns” jest bezpłatna?
Tak — pełny tekst „Reguły grup z requireMention i mentionPatterns” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu OpenClaw Academy, przejdź na CoddyKit PRO. Kurs OpenClaw Academy zawiera 4 lekcji w sumie.
Co nauczysz się w „Reguły grup z requireMention i mentionPatterns”?
Ustaw grupowe requireMention oraz messages mentionPatterns, aby OpenClaw odpowiadał tylko wtedy, gdy zostanie wyraźnie przywołany. Ćwiczysz OpenClaw Academy z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć OpenClaw Academy?
Nie wymagamy żadnego doświadczenia. OpenClaw Academy w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 3 z 4.
Ile czasu zajmuje lekcja „Reguły grup z requireMention i mentionPatterns”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji OpenClaw Academy?
Tak. Każda lekcja OpenClaw Academy zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Plik konfiguracyjny openclaw.json
- Dodawanie nadawców do listy dozwolonych za pomocą allowFrom
- Reguły grup z requireMention i mentionPatterns
- Wartości domyślne bez konfiguracji