WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

💬 **CHATTING** · Send Event Message

AI-generated

Summary

Send a WhatsApp event message to a specified chat via the WhatGHL API.

Inputs

  • Session Mode — Determines how the sender session is selected: 'Auto' for default backend selection, 'By Session Name' to specify a WAHA session name, or 'Select Session' to pick from available sessions for the API key.
  • Session — When 'Select Session' mode is used, choose the specific session shown in WhatGHL UI to send messages from.
  • Session Name — When 'By Session Name' mode is selected, specify the WAHA session name to use as sender.
  • Chat ID (required) — Target chat's ID where the event message will be sent. Can be mapped from trigger or previous node data.
  • Event Name (required) — Title of the event to include in the message.
  • Event Description — Detailed description of the event supporting newlines (\n) and WhatsApp formatting like bold.
  • Event Start Time (required) — Event start timestamp in Unix time (seconds since epoch). Must be a positive integer.
  • Event End Time — Optional event end timestamp in Unix time (seconds). Set to 0 or omit to leave empty.
  • Event Location Name — Optional location name for the event.
  • Allow Extra Guests — Boolean indicating if attendees can bring additional guests.

Output shape

a single JSON object per input item containing the API response from WhatGHL about the send event action.

Requires valid WhatGHL credentials and correct session selection depending on Session Mode. The node uses the WhatGHL /actions endpoint to send the event message. Errors will be thrown if mandatory parameters are missing or invalid.

Examples

Example 1: Send a calendar event notification to a customer's WhatsApp chat.

Set 'Chat ID' to the recipient's WhatsApp chat ID, specify the event name, start time (Unix timestamp), and optionally provide event description, end time, location, and if extra guests are allowed. Choose session mode according to your session configuration.

Links

Discussion