We have added the button "Try Generate by AI" to the JS node. Generate JS by AI
This will only work if you have your OpenAI account connected under your workspace integrations. Once done you can give a prompt and see the code being automatically added to the code block;