typebot.io
typebot.io copied to clipboard
Implement a "Flush" logic block
Flush Block Feature Specification
Overview
New Logic block that forces the engine to send accumulated content as a chunk to the client and wait for resume. Enables creators to display messages before slow operations. Would do exactly the same as Wait block with Pause the flow option. But it would just make more sense to have a dedicated block
Block Properties
- Category: Logic
- Name: "Flush"
- Configuration: None
Behavior
- Engine sends all accumulated blocks up to the Flush as one chunk
- Engine waits for empty request from client to resume
- Client automatically sends empty resume request when processing flush action
- Multiple Flush blocks allowed in single flow
Implementation
- Backend: Handle chunk sending and empty resume requests
- Frontend: Block component + client-side action processor integration
- Search terms: "Flush"
Use Case
Creator places Flush after "Hold on, let me check this..." bubble and before HTTP request block to show message immediately before the slow operation.