openclaw - 💡(How to fix) Fix [Feature]: whatsapp create group tool for whatsapp-agent-tools [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#74261Fetched 2026-04-30 06:26:36
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Timeline (top)
commented ×1cross-referenced ×1labeled ×1

I need my AI Agent to create group for information storage only

Root Cause

I need my AI Agent to create group for information storage only

RAW_BUFFERClick to expand / collapse

Summary

I need my AI Agent to create group for information storage only

Problem to solve

As a property agent using OpenClaw on WhatsApp, I need my AI assistant to create WhatsApp groups automatically when a new property listing is confirmed.

Current whatsapp-agent-tools only has whatsapp_send — no group creation.

Proposed solution

Add a whatsapp_create_group tool to whatsapp-agent-tools:

  • Tool name: whatsapp_create_group
  • Params: groupName (string), participants (array of phone numbers)
  • Uses Baileys groupCreate (already supported by the underlying library)
  • No new dependencies needed

Alternatives considered

  • System prompt prefixing: Inconsistent, hard to enforce, wastes tokens
  • Post-processing middleware: Possible but adds complexity without a native config option
  • Separate agent configs per channel: Overkill for just a prefix change

Impact

Who is affected: All multi-channel OpenClaw users Severity: Medium Frequency: Daily (every interaction across different channels) Consequences: Manual prefixing in prompts causes inconsistent formatting, wastes prompt tokens, and makes swapping channels painful

Evidence/examples

Real-world workflow:

  1. Property owner confirms listing via WhatsApp
  2. (AI agent) collects: address, photos, unit number
  3. ❌ Currently: human must manually create WhatsApp group ✅ With tool: AI Agent can auto-create group in 1 second

Group members (fixed for each listing):

  • 2x agent numbers
  • 3x spouse/partner numbers
  • (AI agent, same number as agent)

Additional information

  • Must remain backward-compatible with existing config keys
  • If responsePrefix is empty/undefined, no prefix is added (default behavior)
  • Should work for both direct messages and group chat replies

extent analysis

TL;DR

Implement the proposed whatsapp_create_group tool in whatsapp-agent-tools to enable automatic WhatsApp group creation for property listings.

Guidance

  • Review the Baileys library documentation to ensure correct usage of the groupCreate method.
  • Verify that the participants array is correctly formatted and contains all required phone numbers, including the AI agent's number.
  • Test the whatsapp_create_group tool with different input parameters to ensure backward compatibility with existing config keys.
  • Consider adding error handling to handle cases where group creation fails due to invalid parameters or other issues.

Example

const { whatsapp_create_group } = require('whatsapp-agent-tools');

const groupName = 'Property Listing 123';
const participants = ['+1234567890', '+9876543210', '+5555555555']; // agent numbers and spouse/partner numbers
const aiAgentNumber = '+5555555555'; // same number as agent

whatsapp_create_group(groupName, participants);

Notes

The proposed solution assumes that the Baileys library's groupCreate method is correctly implemented and functional. Additionally, the solution may require modifications to the existing whatsapp-agent-tools codebase to accommodate the new whatsapp_create_group tool.

Recommendation

Apply the proposed workaround by implementing the whatsapp_create_group tool, as it provides a straightforward solution to the problem without introducing new dependencies or complexity.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING