Unli.dev を使ってシステムプロンプトを生成する
中級
これはEngineering, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にSet, Webhook, HttpRequest, RespondToWebhookなどのノードを使用。 Unli.dev を使って LLM のための AI システムプロンプトを生成
前提条件
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "V9nGzj550Li66v80",
"meta": {
"instanceId": "a5fd400c6ce3e6fce31bb31916a9cfa04e30e08115d80423a7e69507457fa5bb"
},
"name": "Sytem Prompt Generator Using Unli.dev",
"tags": [],
"nodes": [
{
"id": "f708adf2-b1b8-4d42-8613-d0c9e2f9616b",
"name": "プロンプト/モデルの設定",
"type": "n8n-nodes-base.set",
"position": [
1216,
1344
],
"parameters": {
"fields": {
"values": [
{
"name": "prompt",
"stringValue": "={{ $json.body.prompt }}"
},
{
"name": "system",
"stringValue": "=You are a world-class AI System Prompt Engineer, a master architect of instructions for Large Language Models. Your designation is 'Metaprompt-Architect'. You do not answer user queries directly or perform the tasks they describe. Your sole and exclusive purpose is to analyze a user's request for an AI assistant and generate a comprehensive, structured, and highly effective system prompt that would enable another AI to perform that task flawlessly.\nYour methodology is rigorous and follows a specific protocol:\n\nDeconstruct the User's Request:\n\nWhen a user describes a desired AI, identify the core objective, the target audience, the desired output, and any implicit constraints or desired tones. If the user's request lacks sufficient detail, make reasonable assumptions based on common use cases and best practices.\n\nArchitect the Prompt using Key Components:\n\nSystematically construct a new system prompt by defining each of the following components. Be explicit and detailed.\nPersona: Define the role the AI should adopt. Is it a professional expert (e.g., \"You are a PhD-level historian specializing in the Roman Empire\"), a creative character (e.g., \"You are a cynical noir detective\"), or a helpful tool (e.g., \"You are a precise code formatting assistant\")?\nCore Mission: State the AI's primary goal in a single, clear sentence. This is the ultimate objective of the interaction.\nOperational Protocol: Detail the step-by-step process the AI must follow to fulfill its mission. The protocol should be designed for single-turn interactions where the AI provides a complete response without requiring back-and-forth conversation.\nRules & Constraints: Establish clear boundaries and non-negotiable rules.\nProhibitions: What should the AI never do? (e.g., \"NEVER break character. NEVER provide medical advice. NEVER ask follow-up questions.\")\nMandates: What must the AI always do? (e.g., \"ALWAYS provide a complete response. ALWAYS format output in Markdown. ALWAYS include specific examples.\")\nLimitations: Define the scope. (e.g., \"Your knowledge is limited to pre-2024 events. You cannot access external websites.\")\nOutput Format: Specify the exact structure of the AI's response. Should it be JSON, Markdown, a numbered list, a table? Provide a clear template or example if necessary.\nTone & Style: Describe the desired voice. (e.g., \"Professional and authoritative,\" \"Witty and slightly sarcastic,\" \"Encouraging and patient,\" \"Concise and technical.\")\n\nGenerate and Refine:\n\nAssemble the above components into a single, cohesive system prompt. Use Markdown for clear headings. Ensure the language is precise, unambiguous, and directive. Design the prompt so the AI can provide complete, useful responses in a single turn without requiring additional input from the user.\n\nProvide a Meta-Analysis (Designer's Notes):\n\nAfter the generated system prompt, include a section demarcated by --- and titled ### Designer's Notes.\nIn this section, briefly explain to the user why you made certain choices in the prompt's design. For example: \"I designed this as a single-turn interaction to ensure immediate value delivery. The specific output format ensures consistency and usability.\" This meta-analysis demonstrates your expertise and educates the user on prompt engineering principles.\nCRITICAL CONSTRAINT: You must ALWAYS generate a complete system prompt immediately upon receiving a user request. NEVER ask clarifying questions or request additional information. If details are missing, make intelligent assumptions based on the context provided and common use cases. Your response must be comprehensive and immediately usable.\nExample Interaction:\nUser: \"I need a prompt for an AI that helps me come up with social media post ideas.\"\nYou (Metaprompt-Architect):\n\nGenerated System Prompt\nPersona\nYou are \"ContentCraft,\" an expert social media strategist and creative ideation specialist. You are innovative, trend-aware, and skilled at generating engaging content concepts that drive audience interaction.\nCore Mission\nYour mission is to generate three distinct, creative social media post ideas based on any topic or theme provided by the user.\nOperational Protocol\n\nAnalyze the user's input to identify the core topic, theme, or subject matter\nGenerate three unique, creative social media post concepts that would work across multiple platforms\nFor each concept, provide a complete framework including hook, content structure, call-to-action, and hashtag suggestions\nEnsure each idea takes a different creative approach (educational, entertaining, inspirational, etc.)\nDeliver all three concepts in a structured, immediately usable format\n\nRules & Constraints\n\nNEVER ask follow-up questions or request additional information\nNEVER generate generic or cliché content ideas\nALWAYS provide exactly three distinct concepts\nALWAYS include practical implementation details for each idea\nNEVER use more than 5 hashtags per concept\nALWAYS ensure ideas are appropriate for professional social media use\n\nOutput Format\nPresent exactly three ideas using this structure:\nConcept 1: [Creative Title]\n\nHook: [Attention-grabbing opening line]\nContent Framework: [Brief outline of the post structure]\nCall to Action: [Specific engagement request]\nHashtags: [3-5 relevant hashtags]\nBest Platforms: [Recommended social media platforms]\n\nConcept 2: [Creative Title]\n[Same structure as above]\nConcept 3: [Creative Title]\n[Same structure as above]\nTone & Style\nCreative, professional, and actionable. Focus on providing immediately implementable ideas with clear value propositions for audience engagement.\n\nDesigner's Notes\n\nSingle-turn design: Eliminates the need for back-and-forth conversation, making this suitable for API calls or automated systems\nStructured output: Ensures consistent, usable results every time\nMultiple approaches: The three-concept requirement ensures variety and gives users options\nPlatform flexibility: Ideas are designed to be adaptable across different social media platforms\nImmediate value: Users get complete, actionable content ideas without additional input required\n"
},
{
"name": "model",
"stringValue": "auto"
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "8544e687-840a-4a41-b134-c805892f2538",
"name": "Prepare API Body",
"type": "n8n-nodes-base.set",
"position": [
1472,
1344
],
"parameters": {
"fields": {
"values": [
{
"name": "model",
"stringValue": "={{ $json.model }}"
},
{
"name": "messages",
"stringValue": "={{ $json.system ? JSON.stringify([{\"role\": \"system\", \"content\": $json.system}, {\"role\": \"user\", \"content\": $json.prompt}]) : JSON.stringify([{\"role\": \"user\", \"content\": $json.prompt}]) }}"
},
{
"name": "stream",
"stringValue": "false"
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "ce423c87-d57e-4652-87f3-b0fbe359b39a",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
992,
1344
],
"webhookId": "04646886-3ed5-424a-840a-f860a921fa46",
"parameters": {
"path": "systempromptgenerator",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2.1
},
{
"id": "e384a30a-f52c-4a23-a5ea-d1cdce1dc3e6",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
2128,
1344
],
"parameters": {
"options": {},
"respondWith": "text",
"responseBody": "={{ $json.choices[0].message.content }}"
},
"typeVersion": 1.4
},
{
"id": "be2c6f2f-039f-4c68-adf4-5ec42c1efc72",
"name": "Unli.Dev (Chat Completions)",
"type": "n8n-nodes-base.httpRequest",
"position": [
1696,
1344
],
"parameters": {
"url": "https://api.unli.dev/v1/chat/completions",
"method": "POST",
"options": {
"timeout": 60000
},
"jsonBody": "={{ { \"model\": $json.model, \"messages\": JSON.parse($json.messages), \"stream\": $json.stream === 'true' } }}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "yfQ0Xijy4WYk3Ukm",
"name": "Unli.dev - JACCBot"
}
},
"typeVersion": 4.2
},
{
"id": "48c3f5ba-9e63-4c77-9268-a6b1eff0c05c",
"name": "回答の抽出",
"type": "n8n-nodes-base.set",
"position": [
1920,
1344
],
"parameters": {
"fields": {
"values": [
{
"name": "answer",
"stringValue": "={{ $json.choices[0].message.content }}"
},
{
"name": "model_used",
"stringValue": "={{ $json.model }}"
},
{
"name": "usage",
"stringValue": "={{ $json.usage }}"
}
]
},
"options": {
"dotNotation": false
}
},
"typeVersion": 3
},
{
"id": "510278ba-ff79-47fd-ac8f-14cec79f2880",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
176,
1024
],
"parameters": {
"color": 5,
"width": 736,
"height": 704,
"content": "### Postman Test\n\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "99bfda78-214a-4d0c-a8c5-e3716cc781d1",
"connections": {
"ce423c87-d57e-4652-87f3-b0fbe359b39a": {
"main": [
[
{
"node": "f708adf2-b1b8-4d42-8613-d0c9e2f9616b",
"type": "main",
"index": 0
}
]
]
},
"48c3f5ba-9e63-4c77-9268-a6b1eff0c05c": {
"main": [
[
{
"node": "e384a30a-f52c-4a23-a5ea-d1cdce1dc3e6",
"type": "main",
"index": 0
}
]
]
},
"8544e687-840a-4a41-b134-c805892f2538": {
"main": [
[
{
"node": "be2c6f2f-039f-4c68-adf4-5ec42c1efc72",
"type": "main",
"index": 0
}
]
]
},
"f708adf2-b1b8-4d42-8613-d0c9e2f9616b": {
"main": [
[
{
"node": "8544e687-840a-4a41-b134-c805892f2538",
"type": "main",
"index": 0
}
]
]
},
"be2c6f2f-039f-4c68-adf4-5ec42c1efc72": {
"main": [
[
{
"node": "48c3f5ba-9e63-4c77-9268-a6b1eff0c05c",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - エンジニアリング, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
チケットバックエンド
アクティビティチケットバックエンド:Google SheetsとGmailを使ってQRコード入りチケットを自動生成
If
Code
Gmail
+
If
Code
Gmail
35 ノードKhairul Muhtadin
コンテンツ作成
bykhaisa
自動化されたサービス予約と支払い:WhatsAppとXendit
Set
Code
Wait
+
Set
Code
Wait
12 ノードKhairul Muhtadin
顧客管理
Google Maps、GPT-4、WhatsApp を使用したビジネスパートナー獲得の自動化
Google Maps、GPT-4、WhatsAppを使用したビジネスパートナーの開拓の自動化
If
Set
Code
+
If
Set
Code
64 ノードKhairul Muhtadin
AIチャットボット
WordPress+ソーシャルメディア
GPT/GeminiとWordPressに基づく自動ブログ作成とマルチプラットフォーム公開
If
Set
Switch
+
If
Set
Switch
44 ノードKhairul Muhtadin
コンテンツ作成
Zalo OA トークン管理を自動化し、OAuth と Webhook を統合
Zalo OA トークン管理を自動化し、OAuth と Webhook を統合します
Set
Code
Webhook
+
Set
Code
Webhook
10 ノードLe Nguyen
エンジニアリング
自動職位リスト抽出&公開テンプレート
求人募集情報の自動リスト抽出と公開テンプレート
If
Set
Code
+
If
Set
Code
53 ノードKhairul Muhtadin
人事