Training
Module
Create prompt actions for Microsoft 365 Copilot in Copilot Studio - Training
Use Copilot Studio to create prompt actions that return generative responses to user prompts in Microsoft 365 Copilot.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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 appropriate access 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 the Create promptbook button.
Select Create promptbook to start building it. Give your promptbook a Name.
Supply Tags. Separate each tag or keyword by pressing Enter.
Add a Description 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 use angle brackets and no spaces to define it.
You can add more than one parameter.
Double-check that you have properly defined your required inputs by reviewing the section Inputs 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 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, select Create to create your new promptbook. Wait for the loading screen to finish until you see the Promptbook created message.
To immediately test your promptbook, select the View 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 select Run.
If you need to make changes to your new promptbook, read the following section, Edit your promptbook.
To run a promptbook, read Run a promptbook.
To edit your existing promptbook, go to the Promptbook library from the main menu and look for your promptbook.
Select the ellipses () then select Edit from the options. You can only edit existing promptbooks if you're the owner of the promptbook.
You can edit the promptbook Name, 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, select Save.
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 the Promptbook library in the main menu and look for the promptbook you want to duplicate.
You can either:
The Duplicate promptbook dialog box allows you to edit the promptbook Name, Tags, Description, prompt details, parameter inputs, and the like, including the order of the prompts.
Once you're satisfied with your edits, select Duplicate.
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 the Promptbook library in the main menu and look for your promptbook.
Select , then select Details from the options.
If you're the owner of the promptbook, you can select Share 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 the Promptbook 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.
Select Run once done.
Alternatively, you can check the details of the promptbook first by selecting the ellipses then selecting Details from the options.
From here, you can read the details of the promptbook. Select Start new session to run the promptbook. This opens the promptbook window where you can fill in the required inputs.
Select Run once done.
In the promptbook library, select the ellipses beside the promptbook name. Select Delete. The following confirmation message appears.
Select Delete 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:
Training
Module
Create prompt actions for Microsoft 365 Copilot in Copilot Studio - Training
Use Copilot Studio to create prompt actions that return generative responses to user prompts in Microsoft 365 Copilot.