Actions21
- Campo Personalizado Actions
- Contato Actions
- Disparo Actions
- Fluxo Actions
- LiveChat Actions
- Tag Actions
- WhatsApp Template Actions
LiveChat → Obter Historico
AI-generatedSummary
Retrieve the chat message history of a specific contact identified by their unique user namespace (user_ns).
Inputs
- User NS Name or ID (required) — Select or specify the unique identifier (user_ns) of the contact whose chat history you want to fetch.
- Limite — Set the maximum number of chat messages to return, defaulting to 50 if not specified.
Output shape
a list of chat message records related to the specified contact, each representing a message in the conversation history.
The number of returned records respects the specified 'Limite' parameter. If the contact identifier is invalid or the API call fails, an error object may be returned unless 'Continue On Fail' is enabled, in which case the error will be output alongside any successful data.
Examples
Example 1: Get last 20 chat messages for a contact with user_ns equal to 'abc123'
Set 'User NS Name or ID' to 'abc123' and 'Limite' to 20 in the node parameters.