# Prompt Manager

The Prompt Manager is a system that provides more control over the prompt-building strategy for Chat Completion APIs.

Access the Prompt Manager by clicking on the "AI Response Configuration" button in the navigation bar. The Prompt Manager is located below the common settings panel.

# Quick Prompts Edit

Provides space to quickly edit common prompt sections, such as Main Prompt, Auxiliary Prompt, and Post-History Instructions. More information on these prompts can be found on the prompt-building page.

# Utility Prompts

These prompts are sent to the Chat Completion model to help it understand the information being sent to it, or to instruct it to act in specific ways during certain types of interactions.

# Format Templates

These are string templates used to wrap the information pulled from World Info and Character Cards.

A special marker is used to indicate where the information should be inserted:

  • {0} for the World Info format template.
  • {{scenario}} for the Scenario format template.
  • {{personality}} for the Personality format template.

# Group Nudge Prompt Template

Used only in group chats. Placed at the end of the prompt to force a reply from a specific character.

Leave this empty to disable Group Nudge functionality.

# New Chat, New Group Chat, New Example Chat

These are sent before the chat history and before each Example Dialogue block to inform the model where background information ends and chat history begins.

  • New Chat: Used for individual chats.
  • New Group Chat: Used for group chats.
  • New Example Chat: Used for example dialogue blocks.

Leave these empty to disable this functionality.

# Continue Nudge

Sent at the end of the prompt to instruct the model on what to do when Continue is triggered, such as when the Continue button is pressed or when triggered by STScript.

# Replace Empty Message

Sends the contents of this field instead of a blank message when the text box is empty and Send a message is pressed.

# Character Names Behavior

Provides different strategies for instructing the model on how to associate messages with characters. If a Chat Completion model is having trouble determining which messages belong to which character, it may need a different strategy selected.

# Continue Postfix

When Continue is triggered, the 'continued' message returned by the model will have the selected Continue Postfix prepended to the beginning. For example, it can add a space before the continued text.

# Additional Settings

# Wrap in Quotes

Wraps the entire user message in hidden quotation marks before sending. This is useful for sessions where characters do not use quotes to indicate speech. If your session uses quotation marks to indicate speech, leave this unchecked.

# Continue Prefill

Sends the Continue Nudge as an Assistant role message instead of a System message. If this is enabled, the Continue Nudge prompt will not be used.

# Squash system messages

Combines consecutive System messages into a single combined message (excluding Example Dialogue).

# Enable web search

Enables web search capabilities provided by the Chat Completion backend. The prompt is usually enriched with search results by the model provider and may incur additional costs.

# Enable function calling

See Function Calling

# Send inline images, Send inline videos

If the Chat Completion model has multimodal capabilities to process submitted images and videos, this toggles its ability to do so. To append media to the prompt, use the Attach A File option in the "Magic Wand" menu.

# Request inline images

Allows the model to return image attachments.

# Use system prompt

Merges all system messages up until the first message with a non-system role (User/Assistant) and sends them as a separate system instruction field.

# Reasoning Settings

If the Chat Completion model uses reasoning, these settings affect its visibility and functionality.

# Request model reasoning

See Adding Reasoning: By Backend.

# Reasoning Effort

See Reasoning Effort.

# "Prompts"

The Prompt Manager forms the backbone of the prompt sent to the Chat Completion model. It controls what is sent as well as the order in which it is sent.

# The 'Prompts' Dropdown

Contains a dropdown list of all (non-default) prompts that the current Chat Completion preset includes. For one of these prompts to be added to the outgoing message, it needs to be selected from the dropdown list and then added to the Prompt Manager by pressing the Insert prompt button. To create a new prompt to add to this dropdown list, press the New prompt button. Once the new prompt is written and saved, it is added to the dropdown and can then be inserted.

# Prompts List

This is a drag-and-drop interface that lists the prompts selected to potentially be sent to the Chat Completion model. Prompts placed closer to the top of the interface are sent earlier. The bottom of the list is the last thing sent to the model (typically, this would be your Post-History Instructions).

# Editing a Prompt

Clicking the pencil button on a prompt will bring you to the Edit interface. Here, you can edit the prompt directly.

# Name

The name of the prompt. This is not sent to the Chat Completion model; it is for your reference within the Prompt Manager only.

# Role

Which role sends the prompt. You can choose between System, AI Assistant, or User.

# Triggers

The generation types for which this prompt is sent. If nothing is selected, the prompt will be sent for all generation types. If one or more are selected, the prompt will only be sent for those specific generation types:

  • Normal: Regular message generation request.
  • Continue: When the Continue button is pressed.
  • Impersonate: When the Impersonate button is pressed.
  • Swipe: When the generation is triggered by swiping.
  • Regenerate: When the Regenerate button is pressed in solo chats.
  • Quiet: Background generation requests, usually triggered by extensions or STscript commands.

# Position

When Position is set to Relative, this prompt is sent where it's located in the drag-and-drop interface with all other prompts. When it is set to In-Chat and given a Depth, it is instead sent within the Chat History as the selected Role, and ignores the order of the drag-and-drop interface.

# Depth

When Position is set to In-Chat, this defines how deep the prompt is sent within the chat history. The higher the number, the deeper it is sent. For example, a Depth of 0 will be sent after the last chat message, a Depth of 1 will be sent before the last chat message, and a Depth of 2 will be sent before the second-to-last chat message, and so on.

# Order

When Position is set to In-Chat, this defines the order in which the prompt is sent within the chat history. The lower the number, the earlier it is sent.

# Building Your Prompt: Tips and Tricks

Visit the prompt-building section of the SillyTavern documentation for more information on how to write effective prompts. The information can largely be applied to Chat Completion presets.