استخدم الدليل الكامل أدناه حتى يفهم النموذج بنية كريفاكس.
أنشئ قوالب كريفاكسباستخدام JSON نظيف وصالح
قدّم هذا الدليل إلى ChatGPT أو Claude أو Gemini أو أي ذكاء اصطناعي آخر قبل أن تطلب منه إنشاء قالب كريفاكس. يحدد الدليل بنية الحزمة وقواعد اتصال Agent / Model / Output الأساسية.
قدّم القواعد للذكاء الاصطناعي قبل الفكرة
انسخ الدليل أو نزّله وأرسله إلى الذكاء الاصطناعي، ثم صف القالب الذي تريده. يجب أن يعيد الذكاء الاصطناعي حزمة .creavax-template.json صالحة فقط. ألصق JSON في «الإنشاء بالذكاء الاصطناعي» وتحقق منه قبل إنشاء المسودة.
اشرح للذكاء الاصطناعي الهدف والمدخلات المطلوبة والإخراج النهائي المتوقع.
احفظ أو انسخ الحزمة الناتجة كملف .creavax-template.json.
يتحقق «الإنشاء بالذكاء الاصطناعي» من البنية والقدرات وسير العمل قبل الاستيراد.
يتولى Agent التنفيذ والإخراج معًا
الـ Model هو تبعية تنفيذية للـ Agent ويجب ألا يتصل مباشرة بالإخراج النهائي. تتصل مدخلات الصورة/المرجع بالـ Agent وتظل متاحة لنموذج ذلك الـ Agent أثناء التشغيل.
Correct:
Input -> Agent
Agent -> Model
Agent -> Output
Forbidden:
Model -> Outputانسخ هذا إلى أي ذكاء اصطناعي
هذا موجه مساعد قابل للنقل ومحايد تجاه مزود الخدمة، ويطلب من النموذج إعادة JSON قالب كريفاكس فقط.
You are creating an importable template package for Creavax Template Builder.
Your final answer must be one valid .creavax-template.json document. Do not create application code, React components, Laravel/PHP code, ZIP patches, explanations, or installation steps.
Required root structure:
{
"schema_version": "1.0",
"type": "creavax_template",
"template": { ... }
}
Creavax workflow architecture:
INPUT -> AGENT
AGENT -> MODEL
AGENT -> AGENT
AGENT -> OUTPUT
The Model is an execution dependency of an Agent. The Model is NOT the producer node of the final Template Output.
Correct:
{ "from": "product_scene_creator", "to": "image_model" }
{ "from": "product_scene_creator", "to": "final_image" }
Forbidden:
{ "from": "image_model", "to": "final_image" }
Never connect a Model directly to an Output. Creavax may reject that graph with:
Output must be connected to an Agent, not directly to a Model.
INPUTS
- Every user-configurable value must be an Input.
- Use meaningful unique snake_case keys.
- Typical input types include image, text and select.
- Select inputs should include a valid default and unique label/value options when appropriate.
AGENTS
- Each Agent must have a unique key, name and clear system_prompt.
- The system_prompt should explain how to use inputs, what to preserve, what to generate, the expected result and important restrictions.
- Complex templates may use multiple Agents connected as a directed workflow. Agent -> Agent is supported.
- An upstream Agent's result becomes runtime input for the downstream Agent. Chains and branches are allowed, but Agent cycles/loops are not.
- Each Agent may use up to three Model slots.
- Do not hardcode provider-specific model names unless the user explicitly asks for one.
MODELS
- Define a Model slot by capability requirements, not by provider ID.
- Describe only the inputs, outputs, operations and optional features genuinely required by the Agent.
- Example for image editing:
"requirements": {
"inputs": ["image", "text"],
"outputs": ["image"],
"operations": ["image_edit"],
"features": []
}
IMAGE / REFERENCE INPUTS
- Connect the image Input to the Agent.
- Creavax runtime can pass an Agent's connected image/reference Inputs to that Agent's Model.
- Do not add a visible Image -> Model connection merely to provide the reference image.
OUTPUTS
- Outputs represent final workflow results.
- Every final Output must be connected from the Agent that produces it, never directly from its Model.
CONNECTIONS
Before returning JSON, verify:
1. Every from/to key exists.
2. Every required Input is connected to the Agent that uses it.
3. Every Model is connected from the Agent that owns/uses it.
4. Agent -> Agent connections may be used for multi-step workflows.
5. Every final Output is connected from an Agent.
6. No Model -> Output connection exists.
7. No Agent cycle/loop exists.
8. No duplicate or meaningless connections exist.
9. All keys are unique.
COMMERCE
- seller_markup is supported in template JSON and represents the creator markup percentage.
- Example: "seller_markup": 25
TRANSLATIONS AND SEO
- Include useful English copy and Persian and Arabic translations when appropriate.
- Use template.translations.fa and template.translations.ar for localized title/description.
- Keep internal machine keys untranslated and stable.
- SEO supports title, description and keywords.
- SEO keywords are limited to a maximum of 10 unique items.
- Example: "seo": { "title": "...", "description": "...", "keywords": ["..."] }
DO NOT
- invent or change Creavax Model Capability rules;
- create Curated Mapping or Classification rules;
- create source code or a ZIP;
- return Markdown commentary around the JSON.
FINAL CHECK
- schema_version is "1.0"
- type is "creavax_template"
- template exists
- JSON syntax is valid
- no comments inside JSON
- no trailing commas
- all connection endpoints exist
- INPUT -> AGENT
- AGENT -> MODEL
- AGENT -> AGENT when a multi-step workflow is needed
- AGENT -> OUTPUT
- no Agent cycles
- never MODEL -> OUTPUT
- no more than 10 SEO keywords
Return only the final valid JSON, ready to save as:
template-name.creavax-template.jsonحزمة Product in Scene بسيطة
يوضح هذا المثال الاتصال الصحيح: تنتقل صورة المنتج إلى Agent، ويستخدم Agent نموذج تحرير صور متوافقًا، ويصدر Agent الصورة النهائية.
{
"schema_version": "1.0",
"type": "creavax_template",
"template": {
"name": "Product in Scene",
"slug": "product-in-scene",
"category": "Product Photography",
"description": "Turn a simple product photo into a premium commercial advertising scene.",
"seller_markup": 20,
"translations": {
"fa": { "title": "محصول در صحنه", "description": "عکس محصول را به تصویر تبلیغاتی حرفهای تبدیل کنید." },
"ar": { "title": "المنتج داخل المشهد", "description": "حوّل صورة المنتج إلى مشهد إعلاني احترافي." }
},
"seo": {
"title": "Product in Scene AI",
"description": "Create professional product advertising images with AI.",
"keywords": ["product photography", "product ads", "AI image edit"]
},
"inputs": [
{ "key": "product_image", "type": "image", "label": { "en": "Product Image", "fa": "تصویر محصول" }, "required": true },
{ "key": "scene_style", "type": "select", "label": { "en": "Scene Style", "fa": "سبک صحنه" }, "required": true, "default": "auto", "options": [{ "label": "Auto", "value": "auto" }, { "label": "Luxury", "value": "luxury" }] }
],
"agents": [
{ "key": "product_scene_creator", "name": "Product Scene Creator", "system_prompt": "Preserve the product identity and create a professional advertising scene." }
],
"models": [
{ "key": "image_model", "label": "Compatible Image Edit Model", "requirements": { "inputs": ["image", "text"], "outputs": ["image"], "operations": ["image_edit"], "features": [] } }
],
"outputs": [
{ "key": "final_image", "type": "image", "label": "Final Advertising Image" }
],
"connections": [
{ "from": "product_image", "to": "product_scene_creator" },
{ "from": "scene_style", "to": "product_scene_creator" },
{ "from": "product_scene_creator", "to": "image_model" },
{ "from": "product_scene_creator", "to": "final_image" }
]
}
}