
Deskzap - Debounce Time Buffer
Acumula mensagens e processa apenas após tempo de silêncio (Debounce).
Overview
This node accumulates messages associated with a unique session key and processes them only after a specified period of silence (debounce time). It is useful in scenarios where you want to gather multiple messages over a short period and then process them together, such as chat message aggregation or batching notifications.
Use Case Examples
- Aggregating chat messages from a user identified by a session key and processing them after 30 seconds of inactivity.
- Collecting multiple input messages from a phone number and sending a combined summary after a quiet period.
Properties
| Name | Meaning |
|---|---|
| Chave da Sessão | Unique identifier for the session (e.g., Chat ID or Phone number). Used to group messages for debouncing. |
| Mensagem | Text of the message to be accumulated in the buffer. |
| Tempo de Espera (Segundos) | Time in seconds to wait for silence before processing the accumulated messages. |
Output
JSON
status- Indicates the processing status, e.g., 'aggregated' when messages are combined.sessionKey- The unique session key used to group messages.messageCount- Number of messages accumulated in the buffer.messages- Array of individual message texts accumulated.text- Concatenated string of all accumulated messages.
Dependencies
- Redis server accessed via credentials (host, port, password, db, SSL)
Troubleshooting
- Ensure Redis credentials are correct and the Redis server is accessible; connection failures will cause errors.
- If messages are not being aggregated, check that the TTL (time to wait) is set appropriately and that messages are sent within the debounce period.
- Errors during message processing are logged with the item index; review logs for specific issues.