WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

🏷️ **LABELS** · Get Chats By Label

AI-generated

Summary

Retrieve a list of chats associated with a specific label in the WhatGHL system.

Inputs

  • Session Mode — Select how the node chooses the sender session: Auto, by Session Name, or by selecting from available sessions.
  • Session — Specify the session ID when 'Select Session' mode is chosen.
  • Session Name — Provide the WAHA session name if 'By Session Name' mode is selected.
  • Label ID (required) — Input the numeric or string identifier of the label to filter chats by.

Output shape

a list of chat records each enriched with phoneNumber (in E.164 format) and phoneJid when resolvable from the label identifier

Requires 'labelId' input to be specified. The output is a JSON array of chat objects associated with that label, enabling further workflow processing.

Examples

Example 1: Get all chats labeled with a specific label ID

Provide the Label ID (e.g., "1") and optionally configure session selection; no chat ID required.

Links

Discussion