1. Using Serialization
The fastest way to migrate is using AgentMark’s serialization utilities to convert your existing completion parameters into AgentMark files:TypeScript
2. Importing Markdown Files
If you have existing markdown files containing prompts (without frontmatter), you can convert them to AgentMark format by importing them into your prompt file:example.prompt.mdx
3. Manual Migration
For more control, you can manually migrate your prompts following these steps:- Create a new
.prompt.mdx
file - Add frontmatter configuration:
- Convert messages to AgentMark components:
- Replace hardcoded values with props:
Example Migration
Before (OpenAI format):Best Practices
- Start with a small subset of prompts to test the migration
- Use serialization when possible to quickly convert existing prompts
- Manually migrate complex prompts with custom logic
- Make use of reusable components to keep your prompts clean and organized
- Test prompts after migration to ensure behavior matches
Have Questions?
We’re here to help! Choose the best way to reach us:
- Join our Discord community for quick answers and discussions
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions