Generate custom scripts with Monica in seconds, even if you don’t know how to code. Describe what you need in simple terms and Monica will write the code for you. Test scripts on demand, iterate rapidly, and fine-tune them into production-ready versions in minutes.
Note: AI-powered script generation is available on the Super and Standard RMM plans only.
Enable script generation
First, go to Settings > Monica. Scroll down to the 'AI for RMM' section and enable Script Generation. If you don't want to use AI-powered script generation, keep this toggle turned off.
Minimum agent version: 202503111577. SuperOps will automatically upgrade you to the latest version in a phased manner, but if you would like to use the feature immediately, please reach out to us.
Generate scripts with Monica
1. Click on Modules > Scripts > +Script.
2. Select the language of choice and fill in other fields under the Script data section on the right. PowerShell, Bat, Bash, and VBScript are supported.
3. Next, click on the script editor and use the shortcut (## for PowerShell, :: for Bat, ## for Bash, and '' for VBScript) displayed on the screen to prompt Monica. Or, you can bring up the prompt window by clicking on the wand icon.
4. Inside the prompt window, describe what you want your script to do in detail. Monica is capable of understanding natural language, and will generate the perfect script for you based on how specific your prompt is. Check out this guide to see how to write effective prompts and make the most of this feature.
5. Let's ask Monica to write a script to help us prepare the list of assets that are nearing Windows 10 end-of-life. The prompt for this could be as follows:
Write a script to check if an asset is compatible with Windows 11.
6. In seconds, Monica will generate a script, which you can review and edit as required. Based on your prompt, Monica can also suggest variables to include in your script. In our case, since we said "check if an asset", Monica suggests we include a variable.
Suggested variables
7. You can choose to approve/reject suggested variables with their respective buttons here. If you decide to accept a suggestion, choose what kind of variable you want to use - run time, or placeholder.
8. Monica can also generate a Readme for your script, giving other technicians in your team clear context on what the script does and when to use it. Click on Generate to create a Readme.
9. Eyeball the Readme quickly, and click Insert if you are happy with it. Additionally, you can share feedback on the response to make Monica's suggestions better.
10. Once you're happy with the script, hit Save. Remember to add a name and description for your script.
Testing a script
Now that your script has been generated, it's time to test and see if it works as expected. You can test a script on a device of your choice, and see output (including errors) with an in-line console.
Let's see how you can test a script:
Full test
Click on Run Test and select a device.
If you have a dedicated test device, you will simply have to select it here once. SuperOps will then automatically use this device for future tests, unless you want to change it.
The console will show up at the bottom of the screen, where you can see the output of your script.
Partial test
You also have the option to test parts of a script as you co-write it with Monica. Simple click and select lines of codes (a specific function for example), and click on the Run Test icon.
Then, select a test device and click on Run Test.
This way, you can test scripts and iterate rapidly, and create a production-ready script in no time, and deploy it on custom devices confidently.