The Custom Code block is a powerful data block. It provides the utmost flexibilty to place logic in your workflows. It can also generate source code using GPT-4. The current supported languages are Javascript and Python.


The settings page can be accessed through the sidebar when clicking on the Custom Code block itself. In the settings, you can add secrets, choose the programming language, and add source code. Secrets and inputs to the Custom Code block can be inserted dynamically to the source code.


Secrets are where you can store any API Keys you need to call your API. Anything stored in secrets is encrypted and will not be shared when spells are published publicly.