Custom prompts

Custom prompts allow you to tailor the Octopus AI Assistant to your organization’s specific needs and business processes. Instead of relying solely on the AI’s general knowledge, you can embed your internal documentation, troubleshooting procedures, and domain-specific guidance directly into the assistant’s responses.

Why use custom prompts?

Custom prompts are particularly valuable for:

  • Platform teams providing self-service support to development teams with organization-specific guidance
  • Embedding internal documentation and troubleshooting procedures into AI responses
  • Standardizing responses across teams with consistent, approved solutions
  • Reducing support burden by providing context-aware, automated first-line support

For example, instead of getting generic advice about deployment failures, a custom prompt can direct users to your internal runbooks, specific team contacts, or approved remediation procedures.

How custom prompts work

Custom prompts are defined using Library Variable Sets in Octopus Deploy and work alongside the AI’s built-in knowledge. When a user interacts with the Octopus AI Assistant on a specific page, any custom prompts configured for that page will appear as suggested options.

There are two types of custom prompt variables:

  • Prompt variables (PageName[#].Prompt) - The text displayed to users and sent to the AI
  • System prompt variables (PageName[#].SystemPrompt) - Optional additional instructions that guide the AI’s response but aren’t shown to users

Adding custom prompts to Octopus

To add custom prompts to your Octopus AI Assistant:

  1. Open the Octopus Deploy web portal
  2. On the main page for the space, click Variable Sets
  3. Click Add Variable Set
  4. Enter OctoAI Prompts for the variable set name
  5. Add variables in the new variable set using the naming convention below

Variable naming convention

Variables must follow this format:

  • PageName[#].Prompt - The prompt displayed in the UI and passed to the LLM
  • PageName[#].SystemPrompt - Optional additional prompt instructions passed to the LLM but not shown in the UI

Where:

  • PageName is one of the supported Octopus Deploy page names (see Supported pages table below)
  • # is a number from 0 to 4 inclusive for up to 5 prompts per page

For example:

  • Project.Deployment[0].Prompt - A prompt displayed in the Octopus AI Assistant when viewing a project deployment
  • Project.Deployment[0].SystemPrompt - The system prompt for that deployment prompt

Writing custom prompts

Basic prompt structure

A basic prompt variable defines what users see and what gets sent to the AI. For example:

Variable nameVariable value
Project.Deployment[0].PromptWhy did the deployment fail? If the deployment didn’t fail, say so. Provide suggestions for resolving the issue.

This prompt relies on the AI’s built-in knowledge and the deployment context (logs, process configuration, etc.) to provide an answer.

Adding system prompts for business context

System prompts allow you to embed your organization’s specific knowledge and procedures. The system prompt guides the AI’s response without being visible to users.

For example:

Variable nameVariable value
Project.Deployment[0].SystemPromptIf the logs indicate that a Docker image is missing, You must only provide the suggestion that the user must visit https://help/missingdocker to get additional instructions to resolve missing docker containers. You will be penalized for offering generic suggestions to resolve a missing docker image. You will be penalized for offering script suggestions to resolve a missing docker image. You will be penalized for suggesting step retries to resolve a missing docker image.

This system prompt is sent to the LLM to provide specific instructions on how to respond to the request, and:

  • Detects a specific condition (missing Docker image)
  • Provides organization-specific guidance (internal documentation link)
  • Prevents generic responses that don’t align with your procedures

Supported pages

The following table shows all the pages where custom prompts can be configured. Each page corresponds to a specific area of the Octopus web interface, allowing you to provide targeted assistance based on what users are currently viewing.

Page NameDescription
DashboardThe main dashboard
TasksThe tasks overview
ProjectThe project dashboard
Project.SettingsThe project settings
Project.VersionControlThe project version control settings
Project.ITSMProvidersThe project ITSM settings
Project.ChannelsThe project channels
Project.TriggersThe project triggers
Project.ProcessThe project deployment process editor
Project.StepAn individual step in the deployment process editor
Project.VariablesThe project variables editor
Project.AllVariablesThe overview of all the project variables
Project.PreviewVariablesThe preview of all the project variables
Project.VariableSetsThe project library variable sets
Project.TenantVariablesThe project tenant variables
Project.OperationsThe project runbooks dashboard
Project.Operations.TriggersAn runbook triggers
Project.DeploymentThe project deployments
Project.ReleaseThe project releases
Project.RunbooksThe project runbooks
Project.Runbook.RunbookAn individual runbook
Project.Runbook.RunA runbook run
LibraryVariableSetsThe library variable sets
LibraryVariableSet.LibraryVariableSetAn individual library variable set
MachinesThe targets dashboard
Machine.MachineAn individual target
AccountsThe accounts dashboard
Account.AccountAn individual account
WorkersThe workers dashboard
WorkerPoolsThe workerpool dashboard
MachinePoliciesAn machine policies dashboard
MachineProxiesAn machine proxies dashboard
FeedsThe feeds dashboard
GitCredentialsThe git credentials dashboard
GitConnectionsThe GitHub App dashboard
LifecyclesThe lifecycles dashboard
PackagesThe built-in feed dashboard
ScriptModulesThe script modules dashboard
StepTemplatesThe step templates dashboard
TagSetsThe tag sets dashboard
TagSets.TagSetAn individual tag set
TenantsThe tenants dashboard
Tenant.TenantAn individual tenant
CertificatesThe certificates dashboard
EnvironmentsThe environments dashboard
Environment.EnvironmentAn individual environment
InfrastructureThe infrastructure dashboard
BuildInformationThe build information dashboard

Help us continuously improve

Please let us know if you have any feedback about this page.

Send feedback

Page updated on Wednesday, July 9, 2025