# Writing scripts with an AI

The AI prompt button copies a prompt that teaches any AI the language.

The Script Editor's AI prompt button (the robot; in the ... menu on a narrow editor) copies a prompt that contains this whole language guide. Paste it into Claude, ChatGPT or any other AI and describe what you want at the end. Three kinds:

- Write a new script: describe the indicator.
- Change this script: it includes your script and its current problems.
- Translate from Pine: paste the Pine script at the end.

Paste the answer into the editor. If anything is wrong, the editor says what and where; copy the Change prompt and the AI gets the problems with the script.

See also: [Coming from Pine Script](/documentation/vex/coming-from-pine-script), [Errors and the value inspector](/documentation/vex/errors-and-the-value-inspector)
