語調選択付きAIメールジェネレーター

中級

これはContent Creation, Multimodal AI分野の自動化ワークフローで、15個のノードを含みます。主にSet, Code, Form, FormTrigger, Agentなどのノードを使用。 OpenAI GPTを使って、カスタムトーンのプロフェッショナルなメールを生成

前提条件
  • OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "zQkM15rEmD23HAeW",
  "meta": {
    "instanceId": "8e5c0196cd9c25c3b614ccc37109266dd4ae7fef2aa858eab9011bdc62218bf1",
    "templateCredsSetupCompleted": true
  },
  "name": "AI Email Generator with Tone Selection",
  "tags": [
    {
      "id": "sBLDO4c3ubWvhiSj",
      "name": "n8n creator",
      "createdAt": "2025-09-30T20:55:34.201Z",
      "updatedAt": "2025-09-30T20:55:34.201Z"
    }
  ],
  "nodes": [
    {
      "id": "a7d25cbb-f1f1-451c-bb89-7dcfaa5f8915",
      "name": "メール生成フォーム",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        416,
        288
      ],
      "webhookId": "email-gen-form",
      "parameters": {
        "options": {},
        "formTitle": "AI Email Generator",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Recipient Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Email Subject",
              "requiredField": true
            },
            {
              "fieldType": "textarea",
              "fieldLabel": "Email Context",
              "requiredField": true
            },
            {
              "fieldType": "dropdown",
              "fieldLabel": "Tone",
              "fieldOptions": {
                "values": [
                  {
                    "option": "Professional"
                  },
                  {
                    "option": "Friendly"
                  },
                  {
                    "option": "Formal"
                  },
                  {
                    "option": "Casual"
                  }
                ]
              },
              "requiredField": true
            }
          ]
        },
        "formDescription": "Generate professional emails with your chosen tone"
      },
      "typeVersion": 2.2
    },
    {
      "id": "336e7273-30ca-4800-a8b2-01eaadaa0e32",
      "name": "フォームデータ抽出",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        288
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "recipient-field",
              "name": "recipient",
              "type": "string",
              "value": "={{ $json['Recipient Name'] }}"
            },
            {
              "id": "subject-field",
              "name": "subject",
              "type": "string",
              "value": "={{ $json['Email Subject'] }}"
            },
            {
              "id": "context-field",
              "name": "context",
              "type": "string",
              "value": "={{ $json['Email Context'] }}"
            },
            {
              "id": "tone-field",
              "name": "tone",
              "type": "string",
              "value": "={{ $json['Tone'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fd094524-76b1-45cd-ac72-402aefc39ff9",
      "name": "AIプロンプト構築",
      "type": "n8n-nodes-base.code",
      "position": [
        864,
        288
      ],
      "parameters": {
        "jsCode": "const recipient = $input.item.json.recipient;\nconst subject = $input.item.json.subject;\nconst context = $input.item.json.context;\nconst tone = $input.item.json.tone.toLowerCase();\n\nlet toneInstructions = '';\n\nswitch(tone) {\n  case 'professional':\n    toneInstructions = 'Use a professional, business-appropriate tone. Be clear, concise, and respectful. Maintain a balance between friendliness and formality.';\n    break;\n  case 'friendly':\n    toneInstructions = 'Use a warm, friendly tone while remaining appropriate. Be conversational and approachable, but maintain professionalism.';\n    break;\n  case 'formal':\n    toneInstructions = 'Use a highly formal, diplomatic tone. Use proper salutations and maintain strict formality throughout. Be respectful and courteous.';\n    break;\n  case 'casual':\n    toneInstructions = 'Use a casual, relaxed tone. Be conversational and natural, as if writing to a colleague or friend.';\n    break;\n  default:\n    toneInstructions = `Use a ${tone} tone.`;\n}\n\nconst prompt = `Write a complete email with the following details:\n\nRecipient: ${recipient}\nSubject: ${subject}\nContext: ${context}\n\nTone Instructions: ${toneInstructions}\n\nFormat the email properly with:\n- An appropriate greeting\n- A clear body that addresses the context\n- A professional closing\n- Do not include a signature line (the user will add their own)\n\nWrite only the email content, nothing else.`;\n\nreturn {\n  json: {\n    prompt: prompt,\n    recipient: recipient,\n    subject: subject,\n    tone: tone\n  }\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "a34dcc52-0851-406d-8197-e47458bba309",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1072,
        496
      ],
      "parameters": {
        "model": "gpt-3.5-turbo",
        "options": {
          "maxTokens": 500,
          "temperature": 0.7
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "N0CW82ghPMjVVpjB",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "cffb3447-a441-4c94-9eb4-bdada01d4124",
      "name": "メール生成",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1104,
        288
      ],
      "parameters": {
        "text": "={{ $json.prompt }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "e35fba09-e164-4333-9caa-5928f0f028dc",
      "name": "出力フォーマット",
      "type": "n8n-nodes-base.set",
      "position": [
        1408,
        288
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "email-body",
              "name": "email_body",
              "type": "string",
              "value": "={{ $json.output }}"
            },
            {
              "id": "email-subject",
              "name": "subject",
              "type": "string",
              "value": "={{ $('Extract Form Data').item.json.subject }}"
            },
            {
              "id": "email-tone",
              "name": "tone",
              "type": "string",
              "value": "={{ $('Extract Form Data').item.json.tone }}"
            },
            {
              "id": "email-recipient",
              "name": "recipient",
              "type": "string",
              "value": "={{ $('Extract Form Data').item.json.recipient }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "7b0de931-82fa-46f6-aaa2-565c41bfceb5",
      "name": "生成メール表示",
      "type": "n8n-nodes-base.form",
      "position": [
        1632,
        288
      ],
      "webhookId": "email-completion",
      "parameters": {
        "options": {},
        "operation": "completion",
        "completionTitle": "✅ Email Generated Successfully!",
        "completionMessage": "=**Subject:** {{ $json.subject }}\n\n**Tone:** {{ $json.tone }}\n\n**Recipient:** {{ $json.recipient }}\n\n---\n\n{{ $json.email_body }}\n\n---\n\n*Copy the email above and add your signature before sending.*"
      },
      "typeVersion": 1
    },
    {
      "id": "c5bc8234-00b1-4af0-a2e4-f6b9a547aaf0",
      "name": "概要説明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -128
      ],
      "parameters": {
        "color": 5,
        "width": 844,
        "height": 1033,
        "content": "![5min Logo](https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=175,q=95/d9573nnb9LioR05g/logo_tr-Yleq6B4J5WtDk64q.png)\n\n## AI Email Generator with Tone Selection\n**Made by [Biznova](https://www.biznova.tech/en)**\n **on [Tiktok](https://www.tiktok.com/@biznova_tech)**\n\n\n\n### 📧 What This Does\nThis workflow creates a professional email generator that allows users to:\n- Choose from multiple tones (Professional, Friendly, Formal, Casual)\n- Input recipient details, subject, and context\n- Generate a complete, well-formatted email using AI\n\n### 👥 Who's It For\n- Business professionals who need to write emails quickly\n- Customer support teams responding to inquiries\n- Sales teams crafting outreach messages\n- Anyone who wants help writing professional emails\n\n### 🎯 How It Works\n1. User fills out a form with email details and selects a tone\n2. The workflow processes the input and creates an AI prompt\n3. OpenAI generates a complete email based on the tone\n4. The formatted email is displayed for the user to copy\n\n### ⚙️ Setup Requirements\n- OpenAI API key (get one at https://platform.openai.com)\n- n8n instance (cloud or self-hosted)\n\n### 🚀 How to Use\n1. Set up your OpenAI credentials in the \"OpenAI Chat Model\" node\n2. Activate the workflow\n3. Share the form URL with users\n4. Users fill out the form and receive a generated email instantly"
      },
      "typeVersion": 1
    },
    {
      "id": "daec94b3-1af5-4305-baca-75a2b05bdc34",
      "name": "セットアップ手順",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        512
      ],
      "parameters": {
        "color": 4,
        "width": 396,
        "height": 457,
        "content": "### 🔧 Setup Steps\n\n**1. OpenAI API Key**\n   - Go to https://platform.openai.com/api-keys\n   - Create a new API key\n   - Add it to the \"OpenAI Chat Model\" node credentials\n\n**2. Customize Tones (Optional)**\n   - Edit the \"Build AI Prompt\" node\n   - Modify the tone instructions to match your needs\n   - Add new tones to the form dropdown\n\n**3. Adjust AI Settings (Optional)**\n   - In \"OpenAI Chat Model\" node:\n   - Change model (gpt-4 for better quality)\n   - Adjust temperature (0.5-0.9)\n   - Modify max tokens for longer/shorter emails\n\n**4. Test the Workflow**\n   - Click \"Test workflow\" button\n   - Fill out the form\n   - Check the generated email\n\n**5. Share the Form**\n   - Activate the workflow\n   - Copy the form URL\n   - Share with your team or customers"
      },
      "typeVersion": 1
    },
    {
      "id": "fc3da369-ac70-420d-bcf4-aca4c1eb9b6d",
      "name": "ステップ1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 218,
        "height": 98,
        "content": "**Step 1:** User Input\nForm collects email details and tone preference"
      },
      "typeVersion": 1
    },
    {
      "id": "fa8e49fc-63bc-4df2-8d11-0124509d233a",
      "name": "ステップ2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 218,
        "height": 98,
        "content": "**Step 2:** Extract & Organize\nPrepare data for AI processing"
      },
      "typeVersion": 1
    },
    {
      "id": "7574b96c-cff4-42c9-a128-bf82a9b971d0",
      "name": "ステップ3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 218,
        "height": 98,
        "content": "**Step 3:** Build Prompt\nCreate AI instructions based on selected tone"
      },
      "typeVersion": 1
    },
    {
      "id": "2c9c5651-cb91-447a-9b27-5d2cf72142d0",
      "name": "ステップ4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 218,
        "height": 98,
        "content": "**Step 4:** AI Generation\nOpenAI creates the email content"
      },
      "typeVersion": 1
    },
    {
      "id": "1c68f2f6-f826-4798-9ffe-64653475122f",
      "name": "ステップ5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        176
      ],
      "parameters": {
        "color": 7,
        "width": 258,
        "height": 98,
        "content": "**Step 5:** Format & Display\nShow the generated email to the user"
      },
      "typeVersion": 1
    },
    {
      "id": "8992c076-cc45-48f4-af4c-494622cb72cc",
      "name": "API Key Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        624
      ],
      "parameters": {
        "color": 3,
        "height": 80,
        "content": "⚙️ **Configure Your API Key Here**\nAdd your OpenAI credentials"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a7bf2666-fe9a-4709-87d6-e6f8874f169f",
  "connections": {
    "e35fba09-e164-4333-9caa-5928f0f028dc": {
      "main": [
        [
          {
            "node": "7b0de931-82fa-46f6-aaa2-565c41bfceb5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cffb3447-a441-4c94-9eb4-bdada01d4124": {
      "main": [
        [
          {
            "node": "e35fba09-e164-4333-9caa-5928f0f028dc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fd094524-76b1-45cd-ac72-402aefc39ff9": {
      "main": [
        [
          {
            "node": "cffb3447-a441-4c94-9eb4-bdada01d4124",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "336e7273-30ca-4800-a8b2-01eaadaa0e32": {
      "main": [
        [
          {
            "node": "fd094524-76b1-45cd-ac72-402aefc39ff9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a34dcc52-0851-406d-8197-e47458bba309": {
      "ai_languageModel": [
        [
          {
            "node": "cffb3447-a441-4c94-9eb4-bdada01d4124",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "a7d25cbb-f1f1-451c-bb89-7dcfaa5f8915": {
      "main": [
        [
          {
            "node": "336e7273-30ca-4800-a8b2-01eaadaa0e32",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7b0de931-82fa-46f6-aaa2-565c41bfceb5": {
      "main": [
        []
      ]
    }
  }
}
よくある質問

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

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

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

中級 - コンテンツ作成, マルチモーダルAI

有料ですか?

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

関連ワークフロー

AI DJ:LinkupとGPT4を活用したテキストからSpotifyプレイリスト生成ツール
AI DJ:LinkupとGPT4を活用したテキストからSpotifyプレイリスト生成ツール
Set
Form
Spotify
+
Set
Form
Spotify
17 ノードGuillaume Duvernay
コンテンツ作成
Airtop、GPT-4 Mini、Gmailを使ってウェブサイトのUXとSEO品質を分析
Airtop、GPT-4 Mini、Gmailを使ってサイトのUXとSEO品質を分析
Set
Code
Html
+
Set
Code
Html
33 ノードLukaszB
コンテンツ作成
WordPressブログの自動化プロフェッショナル版(先端研究)v2.1マーケットプラグイン
GPT-4o、Perplexity AI、そして多言語対応を使ったSEO最適化ブログ作成の自動化
If
Set
Xml
+
If
Set
Xml
125 ノードDaniel Ng
コンテンツ作成
OpenAI、ElevenLabs、Fal.ai を使用した動画・パ odcast・ASM R向けのウイルス性コンテンツ自動作成
OpenAI、ElevenLabs、そして Fal.ai を使って動画、ポッドキャスト、ASMR に向けたウイルスのコンテンツ作成を自動化
Set
Code
Wait
+
Set
Code
Wait
97 ノードAdam Crafts
コンテンツ作成
OpenAIとFirecrawlを使って製品URLからAI生成のMeta広告キャンペーンを作成する
OpenAI と Firecrawl を使って製品 URL から AI 生成の Meta 広告キャンペーンを作成
If
Set
Code
+
If
Set
Code
40 ノードAdam Crafts
コンテンツ作成
長いドキュメントを生成する
GPT-5とGoogle Docsで簡単な見出しから長文書を生成
Set
Form
Split Out
+
Set
Form
Split Out
14 ノードNghia Nguyen
コンテンツ作成
ワークフロー情報
難易度
中級
ノード数15
カテゴリー2
ノードタイプ7
難易度説明

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

作成者
Biznova

Biznova

@biznova

Automating your biz, one workflow at a time. I build and share powerful n8n workflows to save you hours and boost productivity. All workflows are completely free. Streamline your operations with no-code.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34