Create a prompt - Create or edit an out-of-the-box prompt, including detach and attach and automation settings. - Administrator Guide - Cortex CLOUD

Cortex Cloud Runtime Security Documentation

Product
Cortex Cloud Application Security > Cortex CLOUD
License
Cloud Runtime Security
Creation date
2024-12-24
Last date published
2026-06-10
Category
Administrator Guide
Abstract

Create or edit an out-of-the-box prompt, including detach and attach and automation settings.

Creating a prompt enables you to turn your own custom requests into reusable, shareable AI prompts in playbooks and as Actions for Agents.

  1. Navigate to Investigation & ResponseAutomationAI Prompts and click + New Prompt.

  2. Add an identifying name for the prompt.

  3. Save the prompt.

  4. Enter prompt settings.

  5. Enter the prompt in the Prompt pane as well as any relevant inputs.

    Inputs can be set with either context path or specific value. You can choose whether the input is a variable using ${<input name>}.

    • For help writing effective prompts, see Write effective prompts.

    • The Prompt Helper also provides a list of prompt writing tips, including:

  6. (Optional) Click Optimize to optimize and improve the prompt based on predefined system guidelines.

    The suggested prompt replaces the existing one. You can undo the optimization if needed.

  7. Click Save Version to save the prompt version.

  8. (Recommended) Click Test to validate your prompt.

    1. In the Arguments section, provide values for any inputs your prompt requires. These inputs are used to simulate how the prompt will behave in a live playbook, or how the prompt as an Action for an Agent will run as part of an executed plan.

      You can add input values manually.

    2. Click Run.

      The tests are executed in a Playground environment. Review the output generated by the AI to validate the prompt's behavior and ensure it produces the expected results. The output is typically a text summary or another structured format that you have defined.

  9. (Optional) Click three-dots-dark.png and select Register new Action to register the prompt as an Action and make it available for Agents. For more information, see Manage actions.Manage actions

  10. (Optional) Add the prompt as an AI prompt task to a playbook.

    1. Edit or create a playbook.

    2. In the playbook editor, expand the Task Library and select AI Prompts.

      The System tab contains system AI prompt tasks, and the Custom tab contains custom AI prompt tasks.

    3. Select the relevant AI prompt task and drag it onto the playbook editor.

      The Task Details pane opens with the prompt appearing in the Prompt field.

    4. Click OK.

      The prompt appears in the playbook editor.