Skip to content

Code Generator

Overview

The Code Generator feature allows users to dynamically create code in JavaScript (ES6) or Python through natural language instructions. This tool streamlines the coding process, enabling you to focus on problem-solving logic rather than boilerplate setup.

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: Describe what you want the code to do, and the system will generate it in either JavaScript or Python.
  • 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 JavaScript version is designed primarily for generating JS code within this environment, while the Python version operates with the same principles. The tool is intended to help jumpstart development but does not replace a qualified developer and may not handle very complex logic reliably.

How to Use the Code Generator

  1. Access the Code Generator Interface

    • Access the script editor within the Digital Suite.
    • Select your desired language: JavaScript (ES6) or Python.
    • 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.