Integrations and Features Request for Bit Flows

[Feature Request] Add a Code Node to Allow Custom Scripting in Workflows (Similar to n8n’s Code Node)


Description

I would like to request the addition of a Code Node in Bit-Flow that enables users to write and execute custom scripts, such as JavaScript or PHP, directly within automation workflows. This feature would allow users to manipulate data, create custom logic, and achieve use cases that may not be supported by existing native nodes or modules.


Key Use Cases

  1. Data Manipulation: Perform custom transformations, such as reformatting text, JSON parsing, encoding/decoding, or sophisticated calculations, directly in the workflow.
  2. Flexible Logic Application: Implement custom business rules, condition-based processing, or even conditional branching that non-coding nodes might not allow.
  3. External Service Compatibility: Allow users to preprocess or postprocess data for external services, ensuring compatibility when integrations are limited.
  4. Dynamic Customization: Enable developers and power users to solve unique challenges by integrating their own logic into workflows without requiring external dependencies.

Suggested Features for the Code Node

  1. Code Editor with Syntax Highlighting: A built-in, user-friendly code editor for writing scripts directly in the workflow, with syntax highlighting for supported languages (e.g., JavaScript or PHP).
  2. Input/Output Mapping:
  • Inputs: Pass data from previous nodes to the script seamlessly.
  • Outputs: Return custom values/text/data objects for next steps in the workflow.
  1. Error Handling: Clearly display script errors (e.g., code execution fails, invalid syntax) to help debug issues.
  2. Execution Control: Include features to limit total execution time or resource usage (sandbox environment) to ensure safety and scalability.
  3. Reusable Code Snippets: Allow saving reusable snippets or templates that users can copy into new workflows.

Why This is Important for Bit-Flow

Adding a Code Node would significantly enhance the flexibility and versatility of Bit-Flow for both technical and non-technical users:

  • For Developers and Advanced Users: This unlocks endless possibilities for customized workflows, making Bit-Flow a powerful automation tool for advanced use cases.
  • For General Users: The feature can solve edge cases that would otherwise require external APIs or workarounds.

Examples of How It Could Be Used

  • Data Validation: Validate input fields like email/phone numbers and set custom error flags.
  • API Data Mapping: Modify responses from APIs to match the format of downstream tools.
  • Dynamic Conditions: Use scripts to determine conditional processing not natively supported.

Inspiration from n8n’s Code Node:

n8n’s Code node empowers users to write simple or complex logic using custom JavaScript, enabling dynamic and programmable workflows. Implementing a similar feature in Bit-Flow (with PHP or JavaScript) would put it on par with leading automation tools and appeal to developers looking for flexibility in their workflows.


Conclusion

The addition of a Code Node in Bit-Flow, with support for custom scripting and advanced customization, would significantly improve the platform’s functionality, helping users of all skill levels implement unique and dynamic workflows.

Thank you for considering this request! Looking forward to hearing updates from the team.

5 Likes