New Feature: Custom Code Tool
Develop a Custom Code Tool that enables users to run serverless functions through their bots in Mattermost. This feature will support flexible, real-time automation using custom logic.
Objective:
Add support for a custom code tool that allows users to run their own serverless functions or scripts from within Mattermost via their bots.
Goals:
- Design a secure interface for uploading or pasting code blocks (JavaScript, Python, etc.)
- Implement sandboxed execution environment with input/output handling
- Allow bots to trigger custom code
- Provide logs and error handling feedback to the user within Mattermost
- Ensure user-defined functions respect permission scopes and runtime limits
Outcome:
Users can define lightweight custom logic that bots can execute, enabling more flexible automation and on-demand task handling directly in chat.