CodeWords raises $9M seed round
Blog

whatsapp-group-automation


title: WhatsApp group automation: how to build bots for group chats description: >- Learn how WhatsApp group automation works — use cases, trigger design, and how to connect your own number to build bots for group chats using CodeWords. date: '2026-07-15' author: Rebecca Pearson authorAvatar: /blog/authors/rebeca-avatar.webp category: Resources cover: /blog/whatsapp-group-automation/blog-thumbnail-blank.png readingTime: 5 tags:


WhatsApp groups are where a lot of real business communication happens — team chats, client groups, community channels. Adding automation to those groups can transform how they work: answering common questions, surfacing information, moderating content, and sending announcements without anyone having to do it manually. Here's how WhatsApp group automation works and how to build it today.

TL;DR

  • Group bots need a trigger — without one, the bot replies to every message and becomes noise. A "?" prefix is a common and effective pattern.
  • Personal Device connection is the right path for group automation — it connects your existing WhatsApp number, so you can interact with your own groups immediately.
  • The full flow goes: customer sends trigger message → bot reads it → AI generates a response → bot replies in the group.

Why group bots are different from DM bots

A bot in a one-to-one conversation has a simple job: reply to the person who messaged. In a group, the dynamic is messier. Multiple people are talking. Conversations overlap. The bot needs to know when to speak and when to stay quiet.

Without a trigger mechanism, a group bot becomes noise — replying to every "morning everyone" and "happy birthday" until people get frustrated and mute the group. A well-designed group bot is selective, useful, and invisible when it's not needed.

Use cases for WhatsApp group bots

Team assistant — a group for your ops team or field staff where anyone can ask "?" followed by a question and get an instant answer. "? What's the policy on overtime pay?" "? When does the supplier deliver on Thursdays?" The bot pulls from a knowledge base and replies in-group.

Community Q&A — a group for customers, members, or a community where common questions keep coming up. The bot handles the FAQs so the human moderators can focus on genuine discussion.

Announcements — the bot can send scheduled messages into a group. Daily briefings, weekly summaries, price updates, shift reminders. This is one-way communication: the bot sends, the humans discuss.

Moderation — detecting keywords, removing spam-style messages, or flagging content for a moderator. This is a more advanced use case, but the logic is straightforward: if a message matches a pattern, trigger an action.

Why group bots need a trigger

The most important design decision in any group bot is the trigger. The trigger tells the bot: this message is meant for you, reply to this one.

The cleanest pattern is a prefix — "?" is popular because it's a single character, universally understood as a question, and easy to type on a phone. Members learn quickly that "?" before a message summons the bot.

Other trigger patterns include:

  • @BotName — mention the bot by name to summon it
  • A specific keyword — "ask:", "bot:", or the bot's actual name
  • A reply to a pinned message — using WhatsApp's native reply feature as the trigger

Whichever pattern you choose, document it in the group description. People can't use a feature they don't know about.

The Personal Device connection for group automation

Group bot support via the Business API has been temporarily paused while WhatsApp's product team refines the policy around automated messages in groups. The path that works today — and works well — is the Personal Device connection.

The Personal Device connection links your existing WhatsApp number to CodeWords. Because it's your actual number, you're already a member of your own groups. The bot can read messages in those groups (when triggered) and reply as you.

This is important: the bot replies as your number, not a separate bot account. For internal team groups and personal productivity use cases, this is exactly right. For customer-facing community groups, you might want to be transparent about when the bot is responding — a simple "Auto-reply:" prefix in the message does the job.

To set up Personal Device, connect your number in CodeWords, then tell Cody: "In my group chats, when a message starts with ?, read the message, generate a helpful reply, and send it back to the group."

The group bot flow, step by step

Here's what happens when a group bot receives a trigger message:

  1. A group member sends a message starting with "?" — for example, "? What time does the warehouse close?"
  2. The bot receives the message. It checks: is this in a group chat? Does it start with "?"? If yes, continue.
  3. The bot sends the message content (minus the "?") to the AI model along with any system prompt context — your knowledge base, business details, policies.
  4. The AI generates a response.
  5. The bot sends the reply into the group chat.

The whole process takes a few seconds. From the group member's perspective, it looks like a very fast human response.

Suppressing the bot's own messages

An important technical detail: the bot needs to ignore messages it sends itself. Without this filter, a bot that replies to every group message would see its own reply, try to reply to that, and create an infinite loop.

In CodeWords, Cody handles this automatically when you describe the flow — the direction gate is built in. But if you're building this flow manually on another platform, make sure you filter out messages where the sender matches your own number.

What you can build with group automation

Some practical examples:

Ops team assistant — field team members ask questions during the day. The bot answers from a policy document or FAQ. Frees up the ops manager from repetitive Slack-style messages.

Customer community — a group for paying customers where the bot handles "how do I do X?" questions while you focus on relationship-building and product conversations.

Daily briefing — the bot sends a morning message every day at 7am: the day's orders, the weather, open tasks. Triggered by a schedule, not by incoming messages.

Inventory alerts — when a product goes below a threshold, the bot sends an alert into the stock management group. Triggered by an external system, delivered to the group.

Getting started with CodeWords

If you want to build a WhatsApp group bot today, the Personal Device connection in CodeWords is the fastest path. Connect your number, describe your group bot to Cody, and test it in one of your own groups first.

Start simple — a "?" trigger that answers FAQ-style questions. Once that's working reliably, you can add more sophisticated logic: checking a calendar, querying a spreadsheet, routing different question types to different responses.


Related reading

Get started today

Your first agent is free to build.

Describe what you need. Cody handles the build, the connections, and the deployment.