- Updating copy or instructions without a code deploy or redeployment.
- Sharing a single prompt definition across multiple services or environments.
- Letting non-engineers iterate on prompts through the UI without touching code.
- Testing prompt variations safely in staging before promoting to production.
Quick Start
Reference pre-created Prompts instead of inline messages.Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique prompt identifier from Orq.ai |
version | "latest" | Yes | Currently only “latest” supported |
messages (Chat Completions format) and orq.prompt config in the same request. input (Responses API) can be combined with orq.prompt.
Workflow
- Create a Prompt in Orq.ai.
- Copy prompt ID from the Prompts page.
- Reference in code using prompt config.
- Deploy safely knowing prompts are version-controlled.
Version Control Benefits
Production safety:- Changes to prompts don’t immediately break production.
- Test prompt changes before releasing.
- Rollback capability if issues arise. Development workflow:
Code examples
Error Handling
Best Practices
Prompt management:- Use descriptive names for prompts.
- Document prompt purpose and usage.
- Test prompt changes in staging first.
- Maintain prompt versioning strategy. Environment strategy:
Troubleshooting
“Prompt not found” errors- Verify prompt ID is correct.
- Check prompt exists in the Orq.ai account.
- Ensure prompt is published/active.
- Confirm API Key has access to the prompt. Outdated prompt content
- Remember “latest” version may have delays.
- Check prompt was saved in dashboard.
- Verify the correct environment is selected. Performance issues
- Prompt resolution adds minimal latency (~10ms).
- Cache prompt responses like regular requests.
- Consider local caching for frequently used prompts.
Monitoring
Track prompt usage:- Which prompts are used most frequently?
- What’s the error rate per prompt?
- How often do we fall back to inline messages?
- What’s the performance impact of prompt resolution?
Advanced Usage
Dynamic prompt selection:Limitations
- Pre-creation required: Prompts must exist in Orq.ai before use.
- Version limitations: Only “latest” version currently supported.
- Exclusive usage: Cannot mix prompt config with inline messages.
- Network dependency: Requires connection to Orq.ai for prompt resolution.
- Account scoped: Prompts cannot be shared across different Orq.ai accounts.
Migration from Inline Messages
Before (inline messages):Team Collaboration
Roles and responsibilities:- Developers: Implement prompt references in code.
- Product managers: Create and refine prompts in dashboard.
- QA: Test prompt changes before production.
- DevOps: Manage prompt deployments and rollbacks. Communication workflow:
- Product team updates prompt in dashboard
- Notifies dev team of changes
- Dev team tests with “latest” version
- Deploy to production when ready
- Monitor performance and rollback if needed