TableFlow can send notifications to Slack when extractions are completed or fail. This helps your team stay informed about the status of document extractions without constantly checking the dashboard.
For busy workspaces with many extractions, you can set up filters to only receive notifications for specific templates or file types:Example filter to only receive notifications for PDF files:
Copy
function handler(webhook) { if (webhook.payload.file_type?.key !== "document") { webhook.cancel = true; return webhook; } // Continue with formatting the notification webhook.payload = { text: `New ${webhook.payload.file_type.key.toUpperCase()} extraction: ${ webhook.payload.file_name }`, }; return webhook;}
Example filter to only receive notifications for a specific template:
Copy
function handler(webhook) { if (webhook.payload.template_id !== "dk4g1tUg1uHLs8YU") { webhook.cancel = true; return webhook; } // Continue with formatting the notification webhook.payload = { text: `New extraction using template: ${webhook.payload.template_name}`, }; return webhook;}