WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Contact → Get Common Groups

AI-generated

Summary

Retrieves the list of WhatsApp groups that a specified contact belongs to.

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • contactId (required) — Unique WhatsApp identifier for the contact (format: number@c.us).

Output shape

array of group objects

Each group includes at least its ID and name; may contain additional chat metadata. The array can be empty if the contact shares no groups.

Examples

Example 1: Add the common groups of a contact to a notification channel

resource=Contact, operation=Get Common Groups, sessionId set to a valid session, contactId set to the target contact ID

Example 2: Identify overlapping groups between two contacts for community analysis

resource=Contact, operation=Get Common Groups, sessionId set, contactId set to the first contact (second contact implied via workflow logic)

Links

Discussion