Skip to content

Code Generator

Overview

The Code Generator feature on the Digital Suite empowers users to dynamically create RunMyScript code (based on JavaScript ES6) by providing plain language prompts. The generator simplifies coding tasks, enabling users to focus on problem-solving rather than boilerplate code writing.

Note: ⚠️ This is a BETA release. Please note that generative AI is prone to hallucinations. Always manually review and test the generated code — it should be treated as initial guidance only, not production-ready output.

Key Features

  • Natural Language Input: Users can describe their desired functionality in the input prompt, and the platform will generate the corresponding JavaScript code.
  • Integrated Editor: The generated code is directly displayed in the editor, where users can review and refine it.
  • Quick Iteration: Modify prompts and instantly regenerate code for faster prototyping.
  • Real-Time Feedback: Test generated scripts within the platform before saving or applying them.

Note: ℹ️ The sole purpose of the JS Code Generator is to produce JavaScript code. It is not a general-purpose AI assistant. The generator is designed to help you get started — it is not a silver bullet and may not handle complex prompts reliably. The more specific and simple your request, the better the output.

How to Use the Code Generator

  1. Access the Code Generator Interface

    • Access the script editor within the Digital Suite.
    • Select JavaScript ES6 from the language dropdown menu.
    • Click the Generate Code button.

    Use the text field labeled “Describe the code you want to generate...” to describe what you want the code to do.

    Be very precise in your prompt. The GenAI knowledge base has been enhanced with RunMyProcess custom functions — use RunMyProcess-specific keywords for best results (e.g., say "insert data into a Mongo collection" rather than "save data").

    ✅ Start your prompt explicitly with phrases such as:

    • “Provide the code for …”
    • “Produce code that does the following …”

    Examples of effective prompts:

    • “Provide the code for querying a MongoDB collection and save the results into a variable.”
    • “Produce code that extracts the data from an Excel file as a JSON object and save it into a new variable.”
  2. Generate Code

    • Click the Send button to produce JavaScript code based on your input.
  3. Review and Refine

    • Click the Use Generated Code button to insert the code in the script editor.
    • Inspect the generated code displayed in the editor.
    • Make any necessary adjustments to customize the functionality further.
  4. Test Your Script

    • Switch to the Test Code tab to validate the generated code within the platform.
  5. Save

    • Save the finalized code for use in your current project.

Additional Actions

Information

Access the Vele AI Code Generator Tips and the RunMyScript API Reference.

Delete

This button allows you to clear all chat history from the AI Code Generator interface.

Copy

Copy the generated code into the clipboard.