Open in TheBrain

AI Scripts

Overview

An AI Script is a saved set of AI instructions you can run again and again without retyping them. If you find yourself asking Cerebro to do the same kind of thing often — summarize a thought, draft a reply, restructure children a certain way — turn it into a script once and run it in a step from then on. Scripts can take parameters so one script handles many variations.

Creating and Managing Scripts

Scripts live in Settings > AI > AI Scripts, where you can Create Script, edit existing ones, organize them into categories, and reset to the built-in examples. A script editor lets you write the instruction in a visual or code mode and define:

You can insert variables (such as the active thought) into a script's instruction so it works against whatever you're looking at.

The AI Scripts tab in Settings, listing the built-in scripts in their folders

Running a Script

There are three ways to run a script:

If the script has parameters, you fill them in first, and it then runs as a Cerebro instruction, using its tools just like a normal request and obeying the same tool permissions (see Cerebro Tools and Permissions).

  • The built-in example scripts are a good starting point; copy and adapt them.