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

# Prompts

# Getting Started with Prompts

## What is a prompt?

In the world of LLMs and GPTs and AIs, a *Prompt* is a text instruction, or set of instructions. For example:

* Explain the Crusades
* Why can't we see infrared?
* Give me a vegan bolognese recipe without soy
* What are common reasons for missing a plane?

## How do Prompts work?

Besides the usual way of *prompting* a model with a question like those above, it's also possible to store instructions that will
be applied to the prompt performing the request. This can also be understood as *predefined instructions* for an app.

Let's understand what this means:

* When requesting a model `M` via our app `A`, we ask for something specific: `Hello World!`
* Before that, however, we specify that all prompts to app `A` should do a certain transformation to the prompt: `Translate to German: ...`
* This will result on the model `M` receiving, through the app `A`, the text: `Translate to German: Hello World!`
* The response generated will be `Hallo, Welt!`

## How to add a custom Prompt to an App?

<Steps>
  <Step title="Create a Prompt">
    To create a prompt, navigate to Prompts and click on "Create Prompt":

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/iIc-koTvEb657C0a/_images/prompts/prompts-1-menu.png?fit=max&auto=format&n=iIc-koTvEb657C0a&q=85&s=866cb0b4c7c64d7e38a3f74c1383c472" width="502" height="664" data-path="_images/prompts/prompts-1-menu.png" />
      </Frame>
    </div>

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/iIc-koTvEb657C0a/_images/prompts/prompts-2-create.png?fit=max&auto=format&n=iIc-koTvEb657C0a&q=85&s=0bbbbe6454da28381539680a7ae1e539" width="776" height="346" data-path="_images/prompts/prompts-2-create.png" />
      </Frame>
    </div>
  </Step>

  <Step title="Customize the prompt">
    Enter the desired prompt, without forgetting the placeholder `{{prompt}}`. Then, enter the Title/Description and click Save

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-3-prompt.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=14260ba70da7004f7e06bdf36243ebe8" width="1408" height="914" data-path="_images/prompts/prompts-3-prompt.png" />
      </Frame>
    </div>

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-4-metadata.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=d3fdd151b3271887faf09ad3b9d89a47" width="700" height="1050" data-path="_images/prompts/prompts-4-metadata.png" />
      </Frame>
    </div>
  </Step>

  <Step title="Create an App and go to Settings">
    Create an App (in our case, we call it `translate`) and go to the App Settings page

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-5-app-settings.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=2b8277c81aa7e3f63cc57f74fd751440" width="848" height="468" data-path="_images/prompts/prompts-5-app-settings.png" />
      </Frame>
    </div>
  </Step>

  <Step title="Configure App to use the Prompt">
    To connect this App to the Prompt we just created, we scroll to the bottom of the Policies. In particular, to the `Prompt ID` field:

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-6-select-prompt.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=763d967449f1e72e52ff863901ee0ec5" width="828" height="426" data-path="_images/prompts/prompts-6-select-prompt.png" />
      </Frame>
    </div>

    We select a prompt by clicking on it, and confirm selection

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-7-confirm-selection.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=fbbe703fb27a4ccd83272c859be1332c" width="1758" height="1284" data-path="_images/prompts/prompts-7-confirm-selection.png" />
      </Frame>
    </div>

    Finally, we save the App configuration changes.
  </Step>

  <Step title="Perform a request">
    Your app is now ready to receive requests, so let's have a look:

    <div style={{maxWidth: 400, margin: "0 auto"}}>
      <Frame>
        <img src="https://mintcdn.com/pulzeai/SPhFJdoS8Z13fZf2/_images/prompts/prompts-8-result.png?fit=max&auto=format&n=SPhFJdoS8Z13fZf2&q=85&s=c2e42090d364b6cf752126a357633e6e" width="1420" height="1196" data-path="_images/prompts/prompts-8-result.png" />
      </Frame>
    </div>

    Indeed, without the need to send any instructions, we directly receive an answer: A translated text
  </Step>
</Steps>
