Want a video tutorial instead? We have a 4-minute video for you. Watch it here.
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.
Make sure you have installed the Agenta web platform or are using the cloud version. If you haven’t done this yet, follow our installation guide.
Step 0: Add your OpenAI API keys
- Access the Agenta web platform.
- Select API keys from the left menu.
- 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).
Step 1: Create a New LLM App
- Click on the “Create New App” button.
- Select “Create from Template” and choose the “Single Prompt Template”; then name the application “get_capital.”
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.
Step 3: Deploy the application
The application was deployed as an API the moment you created it. You can find the API endpoint in the “Endpoints” menu. Copy and paste the code from the “Endpoints” menu to use it in your software.