.prompt.mdx files in your editor, or use the visual editor in the Dashboard — both produce the same format and are fully interchangeable. Run them via SDK, CLI, or the Dashboard Playground.
What are AgentMark Prompts?
AgentMark prompts are.prompt.mdx files that combine the readability of Markdown with the power of JSX templating. They provide a structured, version-controllable way to define LLM prompts with type safety and reusability.
- Readable — Human-friendly syntax that’s easy to review and understand
- Reusable — Share components across prompts and use variables for dynamic content
- Type-Safe — Full TypeScript support for props and outputs
- Version-Controlled — Store prompts in git alongside your code
- Testable — Run experiments with datasets and automated evaluations
Basic Structure
Every AgentMark prompt consists of two parts:1. Frontmatter (YAML)
Defines the prompt’s metadata and configuration:example.prompt.mdx
2. Template Content
The actual prompt using message tags and dynamic content:Creating Prompts
- Cloud
- Local
Use the Dashboard’s visual editor to create and edit prompts — no coding or git knowledge required.

- Write and edit prompts with syntax highlighting
- Test prompts directly in the editor
- Configure model settings through visual controls
- Preview outputs in real-time
Key Features
Message Tags
Structure conversations with role tags:<System>— System-level instructions<User>— User messages<Assistant>— Assistant responses (for few-shot examples)
Dynamic Variables
Access runtime data using props:Conditional Logic and Loops
Generation Types
AgentMark supports multiple output formats:- Text — Natural language responses
- Object — Structured JSON with schema validation
- Image — Image generation
- Speech — Audio generation
Advanced Features
- Tools & Agents — Extend prompts with function calling and multi-step agent workflows
- Components — Create shared, reusable components across prompts
- Schema References — Reuse JSON schema definitions across prompts
- File Attachments — Include images and documents in prompts
- MCP Integration — Connect to Model Context Protocol servers
- Playground — Compare prompts across multiple models side-by-side
- Version Control — Track and manage prompt versions
Next Steps
Running Prompts
Execute prompts in your application via SDK
Generation Types
Explore text, object, image, and speech generation
Tools & Agents
Build multi-step agents with function calling
TemplateDX Syntax
Learn the full template syntax
Have Questions?
We’re here to help! Choose the best way to reach us:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions