This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Promptbooks in Microsoft Security Copilot contain one or more prompts that were together to accomplish specific security-related tasks. They run one prompt after another, building on previous responses.
You can create your own promptbook with the promptbook builder to automate investigation flows and optimize repetitive steps in Copilot that’s customized to your needs and requirements. Check if you have appropriateaccess and permissions to create promptbooks.
You can also share the promptbooks you’ve created with other users like your team mates so they can also benefit from your work.
Watch the following video to learn more about building your own promptbooks:
In the course of interacting with Security Copilot for your security workflows, you might realize that you regularly run the same set of prompts for different entities. This is a good opportunity to build your own promptbook, which allows you to specify a parameter if needed.
To create your own promptbook, you can start with an existing session that contains the prompts you want to work with.
Select the checkboxes beside the prompts to include them or select the top box to include all prompts in the session. Selecting any, or all, of the prompts light up theCreate promptbook button.
SelectCreate promptbook to start building it. Give your promptbook aName.
SupplyTags. Separate each tag or keyword by pressingEnter.
Add aDescription for your promptbook.
You can tweak the prompt text further and reorder the prompts, but keep in mind that this might affect Copilot’s response in unexpected ways.
Review your prompts. Decide which items you need as input, if any, the next time you run your promptbook.
For example, if a threat actor name is a required input, replace the threat actor name with<threatactorname> or<ThreatActor> or any easily understood parameter name as long as you useangle brackets andno spaces to define it.
You can add more than one parameter.

Double-check that you have properly defined your required inputs by reviewing the sectionInputs you’ll need. Your defined parameter should appear here. Otherwise, edit the prompt to make sure the parameter is defined by angle brackets with no spaces in between.
You can set any of the prompts to move to the next prompt if that prompt fails by selecting the pencil icon beside the prompt. ToggleContinue on failure (this setting is off by default) and save the promptbook.

You can edit this setting after creating your promptbook, too.
You can only set a prompt to continue on failure in promptbooks that you can edit.
You can also add a system capability in your prompt so that it calls the desired action directly, allowing more efficient response generation. To view the list of system capabilities, select the sparkle button on the right side of the individual prompt.

Selecting the button displays the system capabilities that you currently have access to. Choose one to use.
Add prompt text if desired. Select the check icon to save.

Saving the prompt that uses the system capability displays the capability along with the required or optional inputs for the capability to work.

Required inputs appear with a red asterisk (as in above), while optional inputs appear below them (see below).

You can then define if this promptbook can be used only by you (Just me) or if you would like to share it (Anyone in my organization). You can change this setting later.

Finally, selectCreate to create your new promptbook. Wait for the loading screen to finish until you see thePromptbook created message.
To immediately test your promptbook, select theView icon that appears after promptbook creation.

Another way to access your promptbook is to go to the main prompt bar and select the sparkle icon
. Enter the first few characters of your new promptbook until it appears in the drop up menu.Select your promptbook.
Select your promptbook.
In the promptbook Run page, insert any required parameters that you set earlier and selectRun.
If you need to make changes to your new promptbook, read the following section,Edit your promptbook.
To run a promptbook, readRun a promptbook.
To edit your existing promptbook, go to thePromptbook library from the main menu and look for your promptbook.
Select the ellipses (
) then selectEdit from the options. You can only edit existing promptbooks if you're the owner of the promptbook.
You can edit the promptbookName,Tags,Description, prompt details, parameter inputs, and the like, including the order of the prompts.
Important
Editing the prompt text or the order of prompts might affect Copilot’s response in unexpected ways. Promptbooks can contain a series of prompts that are run one after another building on the previous responses, so reordering prompts, for instance, might result in unexpected responses.
Once you're satisfied with your edits, selectSave.
You can duplicate an existing promptbook, whether or not you own it, so that you can preserve the original promptbook while tweaking the prompts for your own purposes.
To do this, go to thePromptbook library in the main menu and look for the promptbook you want to duplicate.
You can either:
then selectDuplicate from the options, or
then selectDetails from the options and select theDuplicate icon in the upper right cornerTheDuplicate promptbook dialog box allows you to edit the promptbookName,Tags,Description, prompt details, parameter inputs, and the like, including the order of the prompts.

Once you're satisfied with your edits, selectDuplicate.
You can then find the duplicate promptbook in the Promptbook library with a "(Copy)" string at the end of the promptbook name.
To share an existing promptbook that you own, go to thePromptbook library in the main menu and look for your promptbook.
Select
, then selectDetails from the options.
If you're the owner of the promptbook, you can selectShare to get a link to the promptbook, which you can then share with other users in your organization.
Important
If you share a promptbook with a user who has different roles, permissions, or level of access to services or plugins than you do, the user might receive a different response from Copilot. The promptbook runs the prompts in the user’s session and Copilot reasons over data that is available to the currently signed in user.
Go to thePromptbook library in the main menu and look for the promptbook that you want to run.
You can run the promptbook immediately by selecting the arrow that appears when you hover the promptbook row. This starts a new session and prompts you to fill in any required inputs.
As with any session, you can reorder and edit the prompts before running it. However, the changes only take effect in the current session unless you save the changes to the promptbook.
SelectRun once done.
Alternatively, you can check the details of the promptbook first by selecting the ellipses then selectingDetails from the options.
From here, you can read the details of the promptbook. SelectStart new session to run the promptbook. This opens the promptbook window where you can fill in the required inputs.
SelectRun once done.
In the promptbook library, select the ellipses beside the promptbook name.SelectDelete. The following confirmation message appears.
SelectDelete to confirm permanent deletion of the selected promptbook.
Promptbooks are a great way to automate investigation flows in Copilot by security teams. Consider the following best practices and concepts when creating your own promptbooks: