Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/langsmith/create-a-prompt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ The prompt is made up of messages, each of which has a _role_, including:
- **System**: The "instruction manual". Use this to define the AI's persona, tone, and ground rules (e.g., "You are a helpful assistant that explains things like the weather").
- **Human**: The "user". This represents the person asking questions or providing instructions to the AI.
- **AI**: The "assistant". This is the model’s response. In the playground, you can use this to provide "few-shot" examples—showing the AI exactly how you want it to respond.



- **Tool / Function**: These roles represent the output from external tools (like a calculator or a search engine). They help you test how the AI should behave after receiving specific data.
- **Chat**: A general-purpose role, often used when importing logs or conversation history where specific labels haven't been assigned.
- **Messages List**: A dynamic placeholder. This allows you to add a variable that contains an entire list of previous messages, making it easy to manage long conversation histories.
Expand Down Expand Up @@ -89,7 +86,7 @@ Use the **[Polly](/langsmith/polly)** AI assistant in the Playground to generate

## Run the prompt

To run a prompt, use <Icon icon="circle-play"/> **Start** at the top of the right panel in the playground.
To run a prompt, use <Icon icon="player-play"/> **Start** at the top of the right panel in the playground.

## Save your prompt

Expand All @@ -107,7 +104,7 @@ After you've created a prompt, you can view a table of your prompts under **Prom

## Add metadata

To add metadata to your prompt, click the <Icon icon="ellipsis-vertical"/> **More** icon on the top right-hand side of the page and then click the <Icon icon="pencil"/> **Update metadata** from the dropdown. This brings you to a page where you can add additional information about the prompt, including a description and README.
To add metadata to your prompt, click the <Icon icon="dots-vertical"/> **More** icon on the top right-hand side of the page and then click the <Icon icon="pencil"/> **Update metadata** from the dropdown. This brings you to a page where you can add additional information about the prompt, including a description and README.

# Next steps

Expand Down