WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation decrypts a poll vote from WhatsApp using the WARest WhatsApp REST API. It is useful for processing raw poll vote data received from WhatsApp webhook payloads to extract meaningful decrypted information about the vote. This can be applied in scenarios where you need to analyze or verify poll votes in WhatsApp group chats or channels.

Use Case Examples

  1. Decrypt a poll vote received from a WhatsApp webhook to analyze user responses in a poll.
  2. Use decrypted poll vote data to trigger further automation based on poll results.

Properties

Name Meaning
Session Identifier of the WhatsApp session to use for the operation, selected from existing sessions or entered manually.
Poll Update Vote (JSON) Raw pollUpdateVote object from WhatsApp webhook payloads containing the encrypted poll vote data to decrypt.
Additional Fields Optional additional parameters for poll decryption such as poll secret key, poll message ID, poll creator JID, and voter JID.

Output

JSON

  • json - Decrypted poll vote data returned from the API

Dependencies

  • WARest WhatsApp REST API

Troubleshooting

  • Ensure the session ID is valid and active to avoid authentication errors.
  • Verify the pollUpdateVote JSON is correctly formatted and contains the expected encrypted poll vote data.
  • Check that the poll secret and related additional fields are correctly provided if required for decryption.
  • Common errors include invalid session, malformed pollUpdateVote data, or missing decryption keys. Verify inputs and credentials to resolve these.

Links

Discussion