Ednan Abdullayev Yes — this is definitely possible with something like Upstash/Redis. To solve the message grouping challenge, we’ll implement a “Buffer and Wait” strategy using Redis. I recommend Upstash, since its simple REST API integrates smoothly with n8n’s HTTP Request node. The core idea is a configurable grouping window (e.g. 5 seconds) - the max time the system will wait for related parts of a single task. If messages from the same user arrive within this window, they’re grouped as one task. Outside this window, they’re handled separately. Step 1. Create an Upstash Database - Go to Upstash and create a free account. - Click Create Database. - Name your project (e.g. AIS+). - Select your region, leave defaults as-is. - In the dashboard, select cURL as the language option. - Copy the cURL command with your credentials. Step 2. Add a Buffer Node - Create an HTTP Request node in n8n: - Method: POST - URL: https://your-upstash-url.upstash.io/pipeline (example: https://saved-shark-44929.upstash.io/pipeline ) - Authentication: Import from cURL or manually add the Bearer token. - Body Type: JSON - Body Content (sample): [ ["ZADD", "buffer:" + $json.body.entry[0].messaging[0].sender.id + "@instagram", Date.now().toString(), JSON.stringify($json.body.entry[0].messaging[0])], ["EXPIRE", "buffer:" + $json.body.entry[0].messaging[0].sender.id + "@instagram", "60"] ] The value 60 sets the key timeout in seconds. After this time, the key is automatically deleted (you can adjust or omit this as needed). Test execution — you should see an output like: [ { "result": 1 }, { "result": 1 } ] You can also confirm in your Upstash Dashboard. Step 3. Add a Wait Node - Time: 5 seconds (configurable)