> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a prompt

> A guide to create, version, deploy, and share prompts.

## What is Prompts?

Prompts are instructions that guide LLM responses. You can create, version, share, and deploy prompt templates easily.

## Why use Prompts?

* You can create, version, share, and deploy prompt templates.
* You can collaborate with your team on prompts easily.
* You can monitor prompt performance.

## Quick start

<Steps>
  <Step title="Create a new prompt">
    Once you have signed up and created an account, you can create a new prompt on the platform. Go to the [Prompts page](https://platform.keywordsai.co/platform/prompts) and click on the "Create new prompt" button. You should name your prompt and could add a description to it.

    <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/get-started/create-new-prompt.png" alt="Create prompt placeholder" />
  </Step>

  <Step title="Configure the prompt">
    Once you have created a new prompt, you can configure it. Go to the `Editor` tab and you can begin to write your prompt. The right side of the screen defines your prompt. You can set parameters like `Model`, `Temperature`, `Max Tokens`, and `Top P`. You can also add function calls and fallback models to your prompt. Check out the details [here](/api-endpoints/observe/logs/request-logging-endpoint).

    <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/get-started/configure-prompt.png" alt="Create prompt placeholder" />
  </Step>

  <Step title="Write the content">
    Once you have configured your prompt, you can write the content of your prompt. Click on the `+ Add message` button to add a new message to your prompt. You can change the role of the message to `user` or `assistant` by clicking on the role name.

    <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/get-started/write-prompt.png" alt="Create prompt placeholder" />
  </Step>

  <Step title="Variables in the prompt">
    You can also add variables to your prompt. Variables are placeholders for dynamic content that can be used to generate prompts. Simply add double curly braces `{{variable_name}}` to your prompt and you will be able to use the variable in your prompt.

    Replace the User message with this:

    ```
    Please develop an optimized Python function to {{task_description}}, 
    utilizing {{specific_library}},include error handling, and write unit tests for the function.
    ```

    <Note>
      The format of the variable can't be `{{task description}}`. It should be `{{task_description}}` with "\_" instead of spaces.
    </Note>

    <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/get-started/prompt-variables.png" alt="Create prompt placeholder" />
  </Step>

  <Step title="Commit the first version">
    After did this, you can:

    1. Add a value for each variable in the `Variables` tab.
    2. Click `Run` to test your prompt.

    You now just finished writing your first version of the prompt.

    You can click on the `Commit` button and write a commit message, which is helpful for you to track the changes you made to your prompt.

    <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/get-started/prompt-commit.png" alt="Create prompt placeholder" />

    Congrats! You just created your first prompt on Keywords AI platform.
  </Step>

  <Step title="Deploy to production">
    Once you have committed your prompt, you can deploy it to production. Go to the `Deployments` tab and click on the `Deploy` button. You can choose the environment you want to deploy to.

    <Frame>
      <img src="https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/prompt/prompts-deploy.jpg" alt="Create prompt placeholder" />
    </Frame>
  </Step>
</Steps>

<Card title="Use your prompt in code" icon="square-terminal" href="/documentation/products/prompt_management/use_prompt_in_code/use_prompt_in_llms">
  Click here to use your prompt in code.
</Card>
