New Feature Announcement: Presend Message Hooks
Blog post from Stream
Presend Message Hooks offer a moderation tool that allows users to intercept and modify or discard messages before they are saved and visible in a chat channel, ensuring compliance with content guidelines and preventing the sharing of sensitive information. These hooks are particularly useful in applications where privacy laws or regulations, such as HIPAA, require the removal of personally identifiable information. Presend Message Hooks can scrub messages for sensitive data using AI, restrict the sharing of contact information, and use regular expressions to detect specific words or phrases. The feature integrates with Stream Chat, requiring a fast response from the webhook endpoint to prevent delays, and provides functionality to either rewrite or discard messages according to predefined rules. If the webhook becomes unavailable, Stream Chat will pause its use until it is restored, ensuring seamless operation.