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

Group Chat → Set Subject

AI-generated

Summary

Set the subject (name) of the target WhatsApp group chat.

Inputs

  • sessionId (required) — Select the active session; falls back to the default session from credentials if empty.
  • chatId (required) — Unique WhatsApp identifier for the group chat (e.g., 120363XXXXXXXXX@g.us).
  • subject (required) — New name/subject to assign to the group.

Output shape

a single record representing the API response, typically containing a success flag and the updated group chat object

If the request fails, the node throws an error; otherwise the response is merged into the workflow item.

Examples

Example 1: Rename a group chat to "Weekly Sync".

resource: groupChat, operation: setSubject, sessionId: (select), chatId: "120363XXXXXXXXX@g.us", subject: "Weekly Sync"

Example 2: Change group name to "Project Alpha" using a saved session.

resource: groupChat, operation: setSubject, sessionId: "projectSession", chatId: "9876543210@g.us", subject: "Project Alpha"

Example 3: Update group subject via expression using group ID variable.

resource: groupChat, operation: setSubject, sessionId: $workflow.sessionId, chatId: $json.chatId, subject: $json.newSubject

Links

Discussion