ZAPIN icon

ZAPIN

Interact with Zapin EVO

Chat → Find Messages

AI-generated

Overview

This node operation interacts with a chat API to find and retrieve messages from a specified contact within a chat instance. It supports pagination by allowing users to specify the page number and the number of messages per page. This is useful for scenarios where users need to fetch chat history or specific messages from a contact in a controlled and paginated manner.

Use Case Examples

  1. Fetching the first 10 messages from a contact in a chat instance named 'SupportChat'.
  2. Retrieving the second page of messages with 20 messages per page from a specific contact for review or processing.

Properties

Name Meaning
Instance Name The name of the chat instance to query messages from.
Contact The contact number whose messages are to be found.
Page The page number of the message results to retrieve, supporting pagination.
Quantity Per Page The number of messages to retrieve per page, controlling the size of each paginated result set.

Output

JSON

  • messages - An array of messages retrieved from the specified contact in the chat instance.

Dependencies

  • Requires authentication with the chat API via an API key or similar credential.

Troubleshooting

  • Ensure the instance name and contact number are correctly specified to avoid empty or failed queries.
  • Pagination parameters (page and quantity per page) should be positive integers; invalid values may cause errors or unexpected results.
  • If the API returns an error, check the API credentials and network connectivity.

Discussion