Generating JavaScript with AI
Budibase AI makes it easier than ever to write JavaScript within Budibase, even if you're not a JS expert.
Where can you use it?
You can use AI-generated JavaScript in any area of Budibase that supports JavaScript, including:
You’ll see an AI icon with the text "Generate with AI" (usually at the bottom of the code editor, only when on JavaScript). This UI may change depending on whether or not you have activated AI features.

If AI is not activated
The AI button will appear grayed out and labeled "Switch on AI." Click it to enable AI features. You can follow this Quickstart guide for extra information on how to set this up.

If AI is activated
You will be able to type a prompt in the input area and press Enter to generate code.

How to use it
-
Click on the "Generate with AI" area.
-
Type what you want to do.
Return all items that have the Status completed. Return the first and last name of the first item in the array Return all tickets with the Status Open
-
Hit Generate, Budibase AI will provide ready-to-use JavaScript code.
-
Review and amend if needed, or regenerate with a new prompt.
-
Click the Accept button to insert the code.
Or click the Reject button to rewrite your prompt. -
Click the Save button as you normally would.
Tip
Be as clear and specific as possible in your prompts. The better the input, the better the output.
Updated 1 day ago