Create a custom promptbook

Completed

In this exercise, you create a custom promptbook from an existing session and then run that promptbook.

Note

The environment for this exercise is a simulation generated from the product. As a limited simulation, links on a page may not be enabled and text-based inputs that fall outside of the specified script may not be supported. A pop-up message will display stating, "This feature is not available within the simulation." When this occurs, select OK and continue the exercise steps.
Screenshot of pop-up screen indicating that this feature is not available within the simulation.

Exercise

For this exercise, you're logged in as Avery Howard and have the Copilot owner role. You'll work in the standalone experience of Microsoft Copilot for Security.

This exercise should take approximately 10 minutes to complete.

Note

When a lab instruction calls for opening a link to the simulated environment, it is generally recommended that you open the link in a new browser window so that you can simultaneously view the instructions and the exercise environment. To do so, select the right mouse key and select the option.

Task: Create the promptbook from an existing session

In this task, you create the promptbook. As part of the process, you templatize one of the prompts by editing the prompt with an input parameter, and then add a new prompt.

  1. Open the simulated environment by selecting this link: Microsoft Copilot for Security.

  2. There’s a session from earlier in the day that identified failed logins that you want to use. Since that session isn't listed on the landing page, select View all sessions.

  3. Select the session labeled, what are the last three failed logins, it's the last session on the My Sessions list.

  4. The complete session is displayed. Scroll up/down to verify two prompts are listed.

  5. To include a subset of all the prompts, you can select the box next to each individual prompt. Or you can select the box next to the pin icon to include all the prompts. In this case, you want to select all the prompts from the session. Select the box icon box icon next to the pin icon to select all the prompts.

  6. Now that you’ve selected the prompts, select the Create promptbook sources icon icon. The Create a promptbook window opens. Here you populate the name, tags, and description fields for the promptbook, you configure an input parameter, and add a prompt. For the simulation, we've provided the input values to use. You can use copy/paste to enter those values or type them in as shown.

    1. Name: Failed logins
    2. Tags: Microsoft Entra
    3. Description: Find the last failed logins
    4. The first prompt is to show the last three failed logins. For your custom promptbook, you want to replace the number three with an input parameter. To configure the input parameter, place your mouse over the first prompt, then select the edit edit icon icon.
      1. Replace the word three with an easily understood parameter that contains no spaces and is delineated with angle brackets. For this simulation, enter <number>.
      2. To confirm the edit, select the checkmark checkmark icon icon. The number parameter is now listed in the section labeled "Inputs you’ll need." For this promptbook, this is the only input needed, but you can create promptbooks that use multiple inputs.
    5. For your promptbook, you'll add a new prompt. Select + Add prompt.
      1. Select the edit edit icon icon.
      2. Enter What are the authentication methods for the failed logins.
      3. Select the checkmark checkmark icon icon.
    6. The next step is to select who can use this promptbook. Select the drop-down to view the options. For now, leave the setting to Just me.
    7. To create the custom promptbook, select Create.
    8. With your promptbook created, you can choose to view the details, share the promptbook, or go to the promptbook library. Select Promptbook library.

Task: Run the promptbook

In this task, you explore the options available for the newly created promptbook and run the promptbook.

  1. Select My promptbooks.

  2. Place your mouse over the newly created promptbook, until it's highlighted. With the promptbook highlighted select the ellipses to view the available options. Select the ellipses again to close the window with the available options.

  3. Select the run run icon icon to start a new session.

    1. You want Copilot to return information on the last two failed logins.
    2. Select the Run button.
  4. Review the responses generated by Copilot.

Review

In this exercise, you created a custom promptbook from an existing session and ran that promptbook.