Webhook Data Tables Combine Multiple Chat Messages Into One
What this workflow does
The workflow contains these steps: Run Once to Create Buffer Table → Receive Chat Message → Retry Every 30 Minutes → Buffer Settings → Setup Run? → Create Buffer Table → Check Request → Request Valid? → Reject Invalid Message → Find Buffer Table → Buffer Table Found? → Caller Waiting? → Report Missing Table → From Webhook? → Add to Buffer → Message Stored? → Report Store Failure → Accept Message → Wait for Quiet Period → Load Sender Waiting Messages → Decide Who Sends → Load Overdue Messages → Group Overdue by Sender → Loop Over Batches → Claim Batch → Load Claimed Messages → Build Combined Message → Anything Claimed? → Send to Bot Workflow → Clear Delivered Messages → Check Bot Result → Bot Failed? → Count Failed Attempt → Release or Park Batch → Find Parked or Stuck Batches → Fail Run for Parked or Stuck Batches → When Batch Is Ready (Example Bot) → Example Bot Reply.
What you need
- An n8n instance to import and run the workflow.
- StickyNote access for the StickyNote steps listed in this workflow.
- ManualTrigger access for the ManualTrigger steps listed in this workflow.
- Webhook access for the Webhook steps listed in this workflow.
- Schedule access for the Schedule steps listed in this workflow.
- Set access for the Set steps listed in this workflow.
- IF access for the IF steps listed in this workflow.
- DataTable access for the DataTable steps listed in this workflow.
- Code access for the Code steps listed in this workflow.
- RespondToWebhook access for the RespondToWebhook steps listed in this workflow.
- Wait access for the Wait steps listed in this workflow.
- Batch access for the Batch steps listed in this workflow.
- ExecuteWorkflow access for the ExecuteWorkflow steps listed in this workflow.
- StopAndError access for the StopAndError steps listed in this workflow.
- ExecuteWorkflowTrigger access for the ExecuteWorkflowTrigger steps listed in this workflow.
Workflow nodes
- Run Once to Create Buffer Table (n8n-nodes-base.manualTrigger)
- Receive Chat Message (n8n-nodes-base.webhook)
- Retry Every 30 Minutes (n8n-nodes-base.scheduleTrigger)
- Buffer Settings (n8n-nodes-base.set)
- Setup Run? (n8n-nodes-base.if)
- Create Buffer Table (n8n-nodes-base.dataTable)
- Check Request (n8n-nodes-base.code)
- Request Valid? (n8n-nodes-base.if)
- Reject Invalid Message (n8n-nodes-base.respondToWebhook)
- Find Buffer Table (n8n-nodes-base.dataTable)
- Buffer Table Found? (n8n-nodes-base.if)
- Caller Waiting? (n8n-nodes-base.if)
- Report Missing Table (n8n-nodes-base.respondToWebhook)
- From Webhook? (n8n-nodes-base.if)
- Add to Buffer (n8n-nodes-base.dataTable)
- Message Stored? (n8n-nodes-base.if)
- Report Store Failure (n8n-nodes-base.respondToWebhook)
- Accept Message (n8n-nodes-base.respondToWebhook)
- Wait for Quiet Period (n8n-nodes-base.wait)
- Load Sender Waiting Messages (n8n-nodes-base.dataTable)
- Decide Who Sends (n8n-nodes-base.code)
- Load Overdue Messages (n8n-nodes-base.dataTable)
- Group Overdue by Sender (n8n-nodes-base.code)
- Loop Over Batches (n8n-nodes-base.splitInBatches)
- Claim Batch (n8n-nodes-base.dataTable)
- Load Claimed Messages (n8n-nodes-base.dataTable)
- Build Combined Message (n8n-nodes-base.code)
- Anything Claimed? (n8n-nodes-base.if)
- Send to Bot Workflow (n8n-nodes-base.executeWorkflow)
- Clear Delivered Messages (n8n-nodes-base.dataTable)
- Check Bot Result (n8n-nodes-base.code)
- Bot Failed? (n8n-nodes-base.if)
- Count Failed Attempt (n8n-nodes-base.code)
- Release or Park Batch (n8n-nodes-base.dataTable)
- Find Parked or Stuck Batches (n8n-nodes-base.code)
- Fail Run for Parked or Stuck Batches (n8n-nodes-base.stopAndError)
- When Batch Is Ready (Example Bot) (n8n-nodes-base.executeWorkflowTrigger)
- Example Bot Reply (n8n-nodes-base.set)
Need this workflow customized or debugged? Book a 30-min scope call →
Want this set up for you? Book a 30-min scope call
I build and fix n8n workflows for agencies and SaaS teams. 30-minute scope call — bring the problem, leave with an estimate.