---
title: "Quick Start"
description: "Create and deploy your first LLM app in one minute"
---

import Image from "@theme/IdealImage";

:::note
This tutorial helps users create LLM apps using templates within the UI. For more complex applications involving code
in Agenta, please refer to Using code in Agenta [Using code in agenta](//custom-workflows/overview){" "}
:::

Want a video tutorial instead? We have a 3-minute video for you. [Watch it here](https://youtu.be/N3B_ZOYzjLg).

<iframe
  width="720"
  height="450"
  src="https://www.youtube.com/embed/N3B_ZOYzjLg?si=3KZoWdynQtM1x-cK"
  title="YouTube video player"
  frameBorder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
  allowFullScreen
></iframe>

## Introduction

Welcome! This beginner-friendly guide will walk you through building a simple LLM app in Agenta using an existing template. We'll create the application, engineer a prompt, and deploy it as an API—all in one minute.

## Prerequisites

This guide assumes you are using [agenta cloud](https://cloud.agenta.ai). If you would like to self-host the agenta platform, please refer to [the self-hosting guide](/self-host/host-locally) for deployment instructions.

<details>
  <summary>In case you are self-hosting agenta</summary>

## Step 0: Add your OpenAI API keys

1. Access the agenta in your webbrowser.
2. Select "Settings" from the left sidebar.
3. Select "LLM Keys" from the top menu.
4. Add your OpenAI API key.

Your OpenAI API keys are saved locally on your browser and are sent to the Agenta server only when you create a new application (as an environment variable in the Docker container).

</details>

## Step 1: Create a New LLM App

1. Click on the "Create New App" button.
2. Select "Create from Template" and choose the "Single Prompt Template"; then name the application "get_capital."

<Image
  img={require("/images/getting-started-ui-screenshots/01_create_new_app.png")}
/>

:::info
{" "}
You've created your first LLM application! Test it out in the playground, play with its parameters, or use it in your software
by copying the code from the "Endpoints" menu.
:::

## Step 2: Test the Application

The provided application template already includes a prompt that states the capital of a country. Let's test it:

- Go to the playground.
- Type "France."
- Click the "Run" button.
- The result should read, "The capital of France is Paris." If you only want to return "Paris," we'll adjust this with prompt engineering in the next step.

<Image
  img={require("/images/getting-started-ui-screenshots/03_playground.png")}
/>

## Step 3: Deploy the application

To deploy the application as an API. You need to click on the button "Publish" in the playground and select an environemnt.

You can now find the API endpoint in the "Endpoints" menu. Copy and paste the code from the "Endpoints" menu to use it in your software.

<Image
  img={require("/images/getting-started-ui-screenshots/06_deployment.png")}
/>

:::info
Congratulations! You've created your first LLM application. Feel free to modify it, explore its parameters, and discover
Agenta's features. Your next steps could include [fetching prompts from Agenta](/prompt-management/quick-start), [building a custom workflow](/custom-workflows/quick-start), or [running an evaluation](/evaluation/overview).
:::
