Webhook を通じたコンテンツ要約ジェネレーター (ApyHub)

中級

これはBuilding Blocks分野の自動化ワークフローで、8個のノードを含みます。主にWebhook, HttpRequest, RespondToWebhookなどのノードを使用。 Webhook を使った要約生成ツール (ApyHub)

前提条件
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "OxmCguByCxCKPcQm",
  "meta": {
    "instanceId": "1777696fb9fddfee653e70940936c2b1e28ba1f1bde53b7182fbd6eb01988706"
  },
  "name": "Content Summarizer via Webhook (ApyHub)",
  "tags": [],
  "nodes": [
    {
      "id": "ee098e2b-3cfa-4c0c-9ad7-caf1fd4abe74",
      "name": "Webhook トリガーの注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        240
      ],
      "parameters": {
        "width": 280,
        "height": 340,
        "content": "This node listens for incoming POST requests. It expects a JSON body with a 'content' property (the text to summarize) and a 'summary_length' (optional, e.g., 'short', 'medium', 'long'). Your 'apy-token' must be provided in the request headers."
      },
      "typeVersion": 1
    },
    {
      "id": "dca324db-c26d-400a-bab9-e3200f78407c",
      "name": "要約ジョブ開始の注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        240
      ],
      "parameters": {
        "color": 2,
        "width": 260,
        "height": 340,
        "content": "This node sends a POST request to ApyHub's summarization API. It passes the 'content' from the webhook body and your 'apy-token' from the headers. It initiates the summarization job and returns a 'job_id'."
      },
      "typeVersion": 1
    },
    {
      "id": "325504c9-8c6e-4b6a-9479-88bd85ca92a9",
      "name": "要約結果取得の注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        240
      ],
      "parameters": {
        "color": 3,
        "width": 260,
        "height": 340,
        "content": "This node polls ApyHub's API using the 'job_id' to check the status of the summarization. Once the status is 'finished', it retrieves the summarized content. This ensures you get the result only when processing is complete."
      },
      "typeVersion": 1
    },
    {
      "id": "fd5bf412-b7b4-4b36-b1d4-71f2bc2012ce",
      "name": "Webhook レスポンスの注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        240
      ],
      "parameters": {
        "color": 4,
        "height": 340,
        "content": "This node sends the final summarized text back to the original caller of the webhook. You can insert other nodes before this to store, share, or further process the summarized content."
      },
      "typeVersion": 1
    },
    {
      "id": "cbf7a742-47c7-4a9e-8803-36a428097750",
      "name": "要約ジョブ開始",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        300,
        420
      ],
      "parameters": {
        "url": "=https://api.apyhub.com/sharpapi/api/v1/content/summarize",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"content\": \"{{ $json.body.content }}\",\n  \"summary_length\": \"{{ $json.body.summary_length || 'medium' }}\"\n}",
        "sendBody": true,
        "jsonHeaders": "={\n  \"Content-Type\": \"application/json\",\n  \"apy-token\": \"{{ $json.headers['apy-token'] }}\"\n}",
        "sendHeaders": true,
        "specifyBody": "json",
        "specifyHeaders": "json"
      },
      "typeVersion": 4.2
    },
    {
      "id": "d1fb7874-f72c-4298-a95f-04ea3c75bcc2",
      "name": "コンテンツ Webhook 受信",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -20,
        420
      ],
      "webhookId": "6f7b6d29-ed7c-4251-9810-d127d5c36ad0-unique-id",
      "parameters": {
        "path": "summarize-content",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "5d70b7ab-ff27-4a21-a976-718466b5dd17",
      "name": "要約済みコンテンツで応答",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        900,
        420
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    },
    {
      "id": "2faf0d84-3195-479c-9843-fbdcedf3d419",
      "name": "要約結果を取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        420
      ],
      "parameters": {
        "url": "=https://api.apyhub.com/sharpapi/api/v1/content/summarize/job/status/{{ $json.job_id }}",
        "options": {},
        "jsonHeaders": "={\n  \"Content-Type\": \"application/json\",\n  \"apy-token\": \"{{ $('Receive Content Webhook').item.json.headers['apy-token'] }}\"\n}",
        "sendHeaders": true,
        "specifyHeaders": "json"
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1fd30d32-1f0c-46fc-9af7-ace9d9190fb2",
  "connections": {
    "d1fb7874-f72c-4298-a95f-04ea3c75bcc2": {
      "main": [
        [
          {
            "node": "cbf7a742-47c7-4a9e-8803-36a428097750",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cbf7a742-47c7-4a9e-8803-36a428097750": {
      "main": [
        [
          {
            "node": "2faf0d84-3195-479c-9843-fbdcedf3d419",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2faf0d84-3195-479c-9843-fbdcedf3d419": {
      "main": [
        [
          {
            "node": "5d70b7ab-ff27-4a21-a976-718466b5dd17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - ビルディングブロック

有料ですか?

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

ワークフロー情報
難易度
中級
ノード数8
カテゴリー1
ノードタイプ4
難易度説明

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

作成者
ist00dent

ist00dent

@ist00dent

I’m a dedicated automation engineer passionate about no-code and low-code solutions. I design and implement robust n8n workflows—integrating APIs, databases, and messaging—to eliminate manual tasks and accelerate delivery. Leveraging Python and C#, I build scalable, adaptable automations that empower teams to focus on high-value work.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34