# Prompt Quick Start

By the end of this guide, you'll have a prompt running in the dashboard and a public cURL snippet you can use to invoke it from your app.

## Prerequisites

* A Fetch Hive workspace
* A workspace API key if you want to run the public cURL example - see [API Keys](/your-workspace/api-keys.md)

## Step 1: Create a prompt

Open **Prompts** in the sidebar, then click **Add Prompt**.

Enter a **Name**. If your workspace uses categories, you can also choose a **Category**. Click **Save** to open the editor.

## Step 2: Add your first message

In the editor, find the **Prompt** section and click **Add Message**.

For a minimal prompt, add one short instruction. For example:

```
You are a helpful assistant. Summarize the user's text in one sentence.
```

If you want the prompt to accept dynamic input, include a variable such as `{{text}}`. When your prompt contains variables, you can click **Variables** to open the **Input Values** sheet and provide test values before you run it.

## Step 3: Test the prompt in the editor

Click **Run**.

The response appears in the **Model Response** area on the right side of the editor. Use this step to confirm that your prompt behaves the way you expect before you create a prompt deployment.

This in-editor run is for dashboard testing. It is not the same as the public API invoke flow.

## Step 4: Save a named version

Click **Save Version** in the editor header.

Enter a short description of what changed, then save the version. This gives you a named checkpoint you can refer back to later.

## Step 5: Create a deployment

Click **Deploy**, then choose **Create a Deployment**.

Enter a **Deployment key** and save it. This creates the live prompt deployment you can invoke outside the dashboard.

Use **Deploy** and **deployment** language here. In Fetch Hive, this is the step that makes your prompt available as a prompt deployment through the public API.

## Step 6: Copy the public invoke snippet

Open **More** in the sidebar, then click **Get Code**.

Select your **Deployment** and **Variant**. The dialog shows a cURL snippet for `POST /v1/invoke`.

The dialog provides a cURL snippet here. The **Python** and **TypeScript** tabs are still marked **Coming Soon**.

```bash
curl 'https://api.fetchhive.com/v1/invoke' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
    "deployment": "YOUR_DEPLOYMENT_NAME",
    "variant": "YOUR_VARIANT_NAME",
    "inputs": {
      "text": "Fetch Hive helps teams ship AI products faster."
    },
    "streaming": true
  }' \
  --compressed
```

Replace `YOUR_API_KEY`, `YOUR_DEPLOYMENT_NAME`, `YOUR_VARIANT_NAME`, and the `inputs` object with your real values.

## Next steps

* [Prompts](/prompts/prompts.md)
* [Publishing and Versioning](/prompts/publishing-and-versioning.md)
* [Run with API](/prompts/run-with-api.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fetchhive.com/getting-started/prompt-quick-start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
