Actions32
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Sending Actions
- Service Actions
- Receiving Actions
Service → Get Chats
AI-generatedSummary
Retrieve all chats from the connected Green‑API WhatsApp instance.
Inputs
None.
Output shape
JSON payload returned by the Green‑API 'getChats' endpoint (typically an object containing a 'chats' array)
The node returns the response wrapped in an array; each workflow item receives the raw JSON response.
Examples
Example 1: Get the list of chats for the current WhatsApp instance
Resource: Service, Operation: Get Chats
Example 2: Consume the chat list in a subsequent node
Follow with a 'Split' or 'Function' node using {{$json[0].chats]}}
Example 3: Handle case when no chats are returned
Check {{$json[0]}} for presence before iterating