Skip to main content

1. Create a prompt

Open the create menu in the Dashboard to start a new prompt.Create-prompt menu in the DashboardThe Create menu in the top bar lets you add a new prompt, dataset, or component to the current app.

2. Name your prompt

Give your prompt a descriptive name and choose the generation type (Text, Object, Image, or Speech).Prompt name and generation-type selection dialogThe new-prompt dialog takes a name (used as the filename under agentmark/) and a generation type — Text, Object, Image, or Speech — which determines the frontmatter config key and supported message tags.

3. Write your prompt

Select your model and write your prompt using message tags.Prompt editor with message tagsThe editor has a model selector, frontmatter for config (model, temperature, etc.), and a message-tag editor for the prompt body (<System>, <User>, <Assistant>). Syntax highlighting and inline validation help catch frontmatter or tag errors as you type.

4. Run your prompt

Add your input variables and run the prompt to see results.Running a prompt with input variablesFill the input-variable fields (any {props.foo} references in your prompt), then click Run to execute the prompt. The output streams into the right panel in real time.

5. Publish

Publish to save your changes and make them available to your application.Publish button in the prompt editorThe Publish button commits your edits to the app’s default Git branch and makes the new version available to your application via the SDK or CLI.Every change is automatically versioned. You can view the full version history, compare changes between versions, and rollback to any previous version from the Dashboard. See Version Control for details.

Next steps

Running Prompts

Execute prompts from your application via SDK

Playground

Compare models and prompts side-by-side

Generation Types

Text, object, image, and speech output

TemplateDX Syntax

Variables, conditionals, loops, and components

Have Questions?

We’re here to help! Choose the best way to reach us: