Quepasa (Whatsapp) icon

Quepasa (Whatsapp)

Non Official Whatsapp API

Actions11

Overview

The Quepasa (Whatsapp) node's "Message" resource with the "Where" operation allows users to query and retrieve messages from a WhatsApp bot using the Quepasa API. This operation is useful for searching or filtering messages based on certain criteria, such as retrieving recent messages, paginating through message history, or fetching all available messages.

Common scenarios:

  • Fetching a list of received or sent messages for analysis or reporting.
  • Integrating WhatsApp message data into other workflows or systems.
  • Automating responses or actions based on message content.

Practical example:
A business could use this node to automatically pull all customer inquiries received via WhatsApp in the last 24 hours and forward them to a CRM system.


Properties

Display Name Type Description
Authentication options Selects the authentication method: either manual parameters or predefined credentials.
BaseUrl string The base URL of the Quepasa API. Required if using parameter-based authentication.
Token string The token for the WhatsApp bot. Required if using parameter-based authentication.
Return All boolean Whether to return all results or limit the number of returned messages.
Limit number Maximum number of results to return (only shown if "Return All" is false).

Notes:

  • "BaseUrl" and "Token" are only required when "Authentication" is set to "Parameters".
  • "Limit" is only applicable if "Return All" is set to false.

Output

The output is an array of JSON objects, each representing a WhatsApp message retrieved from the Quepasa API. The exact structure depends on the API response, but typically includes fields such as:

[
  {
    "id": "string",
    "from": "string",
    "to": "string",
    "timestamp": "string",
    "body": "string",
    // ...other message-specific fields
  }
]
  • Each item in the output array corresponds to a single message.
  • If an error occurs and "Continue On Fail" is enabled, the output may include error information in the error field.

Dependencies

  • External Service: Requires access to the Quepasa (WhatsApp) API.
  • API Key / Token: You must provide a valid API token for the WhatsApp bot.
  • n8n Credentials: Optionally, you can configure predefined credentials in n8n for easier reuse and management.

Troubleshooting

Common issues:

  • Invalid Token or BaseUrl: Ensure that the token and base URL are correct and correspond to your Quepasa instance.
  • Authentication Errors: If you see errors like Authentication failed or 401 Unauthorized, double-check your credentials.
  • API Connectivity Issues: Network problems or incorrect URLs can result in connection errors.
  • Empty Results: If no messages are returned, verify that there are messages matching your query and that your bot is active.

Error Handling:

  • If "Continue On Fail" is enabled, errors for individual items will be included in the output under an error field.
  • Otherwise, the node will stop execution and throw an error.

Links and References

Discussion