PDFをMarkdownに変換

中級

これはDocument Extraction, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にIf, Wait, FormTrigger, HttpRequestなどのノードを使用。 LlamaIndex Cloud APIを使用してPDFドキュメントを抽出し、Markdown形式に変換

前提条件
  • ターゲットAPIの認証情報が必要な場合あり

使用ノード (7)

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "rnBhMZpP6vRnoQ8Z",
  "meta": {
    "instanceId": "7578372eeadee5ee5414cdf5a06141eebec63e21f295454563ddce7b1217363f",
    "templateCredsSetupCompleted": true
  },
  "name": "transform pdf tot markdown",
  "tags": [],
  "nodes": [
    {
      "id": "5653ad40-2f56-4e18-be4b-04b4dd10b107",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        816,
        -256
      ],
      "webhookId": "a0518843-31f8-44f9-bd8e-1189e16de0f1",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "ef584ef5-1aeb-434a-9ed2-f837a329486f",
      "name": "ドキュメントアップロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        -256
      ],
      "parameters": {
        "url": "https://api.cloud.llamaindex.ai/api/v1/parsing/upload",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "file"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "Content-Type",
              "value": "multipart/form-data"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "1Sr92y8U8gwgeguP",
          "name": "Bearer Auth account"
        },
        "httpHeaderAuth": {
          "id": "EvU6DvmyXtGiv4p0",
          "name": "LlamaCloud"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "63c299af-dae8-4dd5-a4a9-159302c9a18a",
      "name": "条件分岐",
      "type": "n8n-nodes-base.if",
      "position": [
        1232,
        -256
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "7a07aec1-fc5f-4b76-94d9-6fa8f509ac8e",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "SUCCESS"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "3bf86ec3-5cbe-4581-a615-528c0e6b783b",
      "name": "フォーム送信時",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        416,
        -256
      ],
      "webhookId": "5d1027e0-2885-4436-840f-a0e95cde60a2",
      "parameters": {
        "options": {},
        "formTitle": "Upload file",
        "formFields": {
          "values": [
            {
              "fieldType": "file",
              "fieldLabel": "File",
              "acceptFileTypes": "pdf"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "f451ade2-fccd-4636-b11c-7971b9d32b5e",
      "name": "待機2",
      "type": "n8n-nodes-base.wait",
      "position": [
        1504,
        -112
      ],
      "webhookId": "8da5da31-1ebd-4c82-8c6a-476d5d277cdd",
      "parameters": {
        "amount": 60
      },
      "typeVersion": 1.1
    },
    {
      "id": "8f7d2640-7fd4-425b-bb03-bb71b73a7dc3",
      "name": "ステータス確認",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1008,
        -256
      ],
      "parameters": {
        "url": "=https://api.cloud.llamaindex.ai/api/parsing/job/{{ $('Upload_doc').item.json.id }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "1Sr92y8U8gwgeguP",
          "name": "Bearer Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0c488546-7ec6-4c95-bc18-255d792705d4",
      "name": "コンテンツ抽出",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1504,
        -304
      ],
      "parameters": {
        "url": "=https://api.cloud.llamaindex.ai/api/v1/parsing/job/{{ $json.id }}/result/markdown",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "1Sr92y8U8gwgeguP",
          "name": "Bearer Auth account"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a0fb030f-88ae-4c19-8662-b83f55dbeced",
  "connections": {
    "63c299af-dae8-4dd5-a4a9-159302c9a18a": {
      "main": [
        [
          {
            "node": "0c488546-7ec6-4c95-bc18-255d792705d4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "f451ade2-fccd-4636-b11c-7971b9d32b5e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5653ad40-2f56-4e18-be4b-04b4dd10b107": {
      "main": [
        [
          {
            "node": "8f7d2640-7fd4-425b-bb03-bb71b73a7dc3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f451ade2-fccd-4636-b11c-7971b9d32b5e": {
      "main": [
        [
          {
            "node": "8f7d2640-7fd4-425b-bb03-bb71b73a7dc3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ef584ef5-1aeb-434a-9ed2-f837a329486f": {
      "main": [
        [
          {
            "node": "5653ad40-2f56-4e18-be4b-04b4dd10b107",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3bf86ec3-5cbe-4581-a615-528c0e6b783b": {
      "main": [
        [
          {
            "node": "ef584ef5-1aeb-434a-9ed2-f837a329486f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8f7d2640-7fd4-425b-bb03-bb71b73a7dc3": {
      "main": [
        [
          {
            "node": "63c299af-dae8-4dd5-a4a9-159302c9a18a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - 文書抽出, マルチモーダルAI

有料ですか?

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

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

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

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34