AIシステムプロンプトジェネレーターとオプティマイザー(n8n + OpenAI)

中級

これは自動化ワークフローで、8個のノードを含みます。主にAgent, ChatTrigger, LmChatOpenAi, MemoryBufferWindowなどのノードを使用。 AIシステムプロンプトジェネレーターとオプティマイザー(n8n + OpenAI)

前提条件
  • OpenAI API Key

カテゴリー

-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "8f16c045-53e2-4405-9053-7dd634d6e82f",
      "name": "付箋33",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2048,
        8448
      ],
      "parameters": {
        "width": 400,
        "height": 752,
        "content": "## ⚙️ Setup Instructions\n\n### 1️⃣ Set Up OpenAI Connection\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  \n\n\n\n## 📬 Contact Information\nNeed help customizing this workflow or building similar automations?\n\n📧 [robert@ynteractive.com](mailto:robert@ynteractive.com)  \n🔗 [Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)  \n🌐 [ynteractive.com](https://ynteractive.com)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1faa8374-59e4-4371-a7ed-c17301b8aca7",
      "name": "付箋34",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        8448
      ],
      "parameters": {
        "color": 7,
        "width": 1104,
        "height": 752,
        "content": "# 🛠️ AI System Prompt Generator & Optimizer (n8n + OpenAI)\n\nThis workflow acts as a **System Prompt Optimizer Agent**.  \nYou send it a draft prompt or goal, and it returns:  \n1. A rewritten **optimized system prompt** that is clear, specific, and actionable.  \n2. A recommendation for the **best OpenAI model** to use based on reasoning needs, complexity, and latency/cost tradeoffs.  \n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "39899c3c-ec7e-4598-873a-0172a79db705",
      "name": "OpenAI チャットモデル10",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1040,
        9040
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5",
          "cachedResultName": "gpt-5"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b325fa59-0b59-4535-a0a9-7f3be237044f",
      "name": "付箋35",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        8864
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### 1️⃣ Set Up OpenAI Connection\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  "
      },
      "typeVersion": 1
    },
    {
      "id": "fae4be3e-f184-490e-bd98-4108ac657d5f",
      "name": "シンプルメモリ2",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -688,
        9024
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "12da8616-e4ac-4a4d-8e3b-0387a4c3748f",
      "name": "AI Prompt Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -976,
        8672
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a System Prompt Optimizer.  \nYour job is to take a user’s goal or draft prompt and return an optimized system prompt that is clear, specific, and actionable.  \n\n### Rules:\n- Always rewrite the input into a polished, professional **system prompt**.  \n- Ensure the system prompt includes explicit rules, roles, and constraints where useful.  \n- Make it concise but detailed enough to remove ambiguity.  \n- Recommend the **best OpenAI model** to use for this prompt, based on complexity, reasoning needs, and latency/cost tradeoffs.  \n"
        },
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "77d09a63-9b3c-47cf-a7a4-de76d4a84a07",
      "name": "付箋36",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        8736
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### example question\n\nI need a system prompt for an agent that summarizes meeting transcripts into 3 bullet points for executives.\n  "
      },
      "typeVersion": 1
    },
    {
      "id": "a5c3ebce-f05b-4985-96ef-b98b8db66a22",
      "name": "Chat Message",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1440,
        8880
      ],
      "webhookId": "ccaca032-7964-4a83-9417-91a223bc1485",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.3
    }
  ],
  "pinData": {},
  "connections": {
    "a5c3ebce-f05b-4985-96ef-b98b8db66a22": {
      "main": [
        [
          {
            "node": "12da8616-e4ac-4a4d-8e3b-0387a4c3748f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory2": {
      "ai_memory": [
        [
          {
            "node": "12da8616-e4ac-4a4d-8e3b-0387a4c3748f",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "12da8616-e4ac-4a4d-8e3b-0387a4c3748f": {
      "main": [
        []
      ]
    },
    "OpenAI Chat Model10": {
      "ai_languageModel": [
        [
          {
            "node": "12da8616-e4ac-4a4d-8e3b-0387a4c3748f",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

AIウェブサイトチャットボット - GPTとGoogleスプレッドシートによるCRMリード収集
GPTとGoogleスプレッドシートを統合したAIウェブサイトチャットボット - CRMリード収集システム
Code
Google Sheets
Agent
+
Code
Google Sheets
Agent
14 ノードRobert Breen
リード獲得
GPT-4.1-miniチャットアシスタントを使用してプロジェクトタスクをGoogleシートに追加
GPT-4.1-miniチャットアシスタントでプロジェクトタスクをGoogleスプレッドシートに追加
If
Google Sheets
Chat
+
If
Google Sheets
Chat
17 ノードRobert Breen
プロジェクト管理
GPT-5 Nano を使った多言語チャットボットによる EC 顧客サポートの自動化
GPT-5 Nano多言語チャットボットを使ってEC向け顧客サポートを自動化
Set
Merge
Split Out
+
Set
Merge
Split Out
13 ノードRobert Breen
AIチャットボット
GPT-4o-mini エージェントを使用したリーダーポテンシャルの資格設定とカスタマー支持の自動化
GPT-4o-mini アジェントを使用したリードの自動クオリフィケーションとカスタマーサポート
If
Set
Code
+
If
Set
Code
16 ノードRobert Breen
リードナーチャリング
インタビュー scheduling ツール
GPT-4oとGoogle Calendarを使用したインタビューのチャットボットでのスケジュール自動設定
If
Set
Code
+
If
Set
Code
25 ノードRobert Breen
人事
ブログ作成・エディタ
Google Sheetsに基づくブログライティング&エディタ(GPT-4)
If
Code
Filter
+
If
Code
Filter
18 ノードRobert Breen
コンテンツ作成
ワークフロー情報
難易度
中級
ノード数8
カテゴリー-
ノードタイプ5
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34