Instagram インフルエンサーの成果物および契約準拠性の自動化
これはSocial Media, AI Summarization分野の自動化ワークフローで、26個のノードを含みます。主にIf, Set, Code, Cron, Slackなどのノードを使用。 Claude AI と Slack アラートを使って Instagram インフルエンサー契約の合従性を自動化
- •Slack Bot Token または Webhook URL
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •ターゲットAPIの認証情報が必要な場合あり
- •Google Sheets API認証情報
{
"id": "xl4Z2irVR0uBoHoJ",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "Influencer Deliverable & Contract Compliance Automation For Instagram",
"tags": [],
"nodes": [
{
"id": "03e0f79e-fd01-474c-8135-4bf0f0faeb1d",
"name": "スケジュールトリガー",
"type": "n8n-nodes-base.cron",
"position": [
-624,
-176
],
"parameters": {},
"typeVersion": 1
},
{
"id": "33aa1cec-3a0b-418a-b0ed-9af18722ef10",
"name": "契約書の取得",
"type": "n8n-nodes-base.googleSheets",
"position": [
-400,
-176
],
"parameters": {
"options": {},
"sheetId": "your-contracts-sheet-id!A:H"
},
"credentials": {
"googleApi": {
"id": "ScSS2KxGQULuPtdy",
"name": "Google Sheets- test"
}
},
"typeVersion": 1
},
{
"id": "5516f33e-16a1-4beb-bf07-f573ba8ccd08",
"name": "契約のループ処理",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-176,
-176
],
"parameters": {
"options": {},
"batchSize": 1
},
"typeVersion": 1
},
{
"id": "af25ad56-9311-49e8-842c-204b328d0ced",
"name": "期限ステータスの計算",
"type": "n8n-nodes-base.code",
"position": [
48,
-176
],
"parameters": {
"jsCode": "const deadline = new Date($json['deadline']);\nconst now = new Date();\nconst daysToDeadline = Math.ceil((deadline - now) / (1000 * 60 * 60 * 24));\n\nreturn {\n json: {\n ...$json,\n daysToDeadline,\n isApproaching: daysToDeadline > 0 && daysToDeadline <= 3,\n isPassed: daysToDeadline <= 0\n }\n};"
},
"typeVersion": 1
},
{
"id": "6cb537be-9f88-4ef3-a6a7-d730ab782227",
"name": "期限が近づいている場合",
"type": "n8n-nodes-base.if",
"position": [
272,
-272
],
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ $json[\"isApproaching\"] }}",
"value2": true
}
]
}
},
"typeVersion": 1
},
{
"id": "fb583c49-8842-49c1-92ac-45511abeb67b",
"name": "リマインダー送信(Slack)",
"type": "n8n-nodes-base.slack",
"position": [
496,
-272
],
"parameters": {
"text": "=Reminder: Influencer {{ $json[\"influencerName\"] }} - Post due in {{ $json[\"daysToDeadline\"] }} days for campaign {{ $json[\"campaignId\"] }}. Required hashtag: {{ $json[\"requiredHashtag\"] }}",
"channel": "your-slack-channel",
"attachments": [],
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "MQ0fgwuS8AzfwFvy",
"name": "Slack account - test "
}
},
"typeVersion": 1
},
{
"id": "2b15e005-aee0-4b23-a078-cb0f07004b1d",
"name": "期限が過ぎた場合",
"type": "n8n-nodes-base.if",
"position": [
288,
112
],
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ $json[\"isPassed\"] }}",
"value2": true
}
]
}
},
"typeVersion": 1
},
{
"id": "a08ad880-39e2-46e4-9428-56f019e43072",
"name": "インフルエンサーの投稿を取得",
"type": "n8n-nodes-base.httpRequest",
"position": [
544,
96
],
"parameters": {
"url": "=https://graph.facebook.com/v12.0/{{ $json[\"influencerUserId\"] }}/media?access_token=YOUR_INSTAGRAM_ACCESS_TOKEN",
"options": {}
},
"typeVersion": 1
},
{
"id": "07a09646-85c3-4b67-a69b-8386e13589d2",
"name": "投稿コンプライアンスの確認(Claude AI)",
"type": "n8n-nodes-base.httpRequest",
"position": [
784,
96
],
"parameters": {
"url": "https://api.anthropic.com/v1/messages",
"options": {},
"requestMethod": "POST",
"jsonParameters": true,
"bodyParametersJson": "={\"model\": \"claude-3-5-sonnet-20241022\", \"max_tokens\": 1024, \"messages\": [{\"role\": \"user\", \"content\": \"Check if any of these recent Instagram posts contain the required hashtag '{{ $json[\"requiredHashtag\"] }}' and match the campaign description '{{ $json[\"campaignDescription\"] }}'. Posts: {{ JSON.stringify($json[\"data\"]) }}. Output: is_compliant: yes/no\"}]}"
},
"typeVersion": 1
},
{
"id": "dcbc21bb-95b1-4041-9bde-50fb12edc097",
"name": "違反が検出された場合",
"type": "n8n-nodes-base.if",
"position": [
992,
96
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json[\"content\"][0][\"text\"].toLowerCase().split(':')[1].trim() }}",
"value2": "no"
}
]
}
},
"typeVersion": 1
},
{
"id": "cf595681-b060-4f83-9733-b8e7fb3966b1",
"name": "違反通知(Slack)",
"type": "n8n-nodes-base.slack",
"position": [
1200,
-144
],
"parameters": {
"text": "=Contract Breach Alert! Influencer {{ $json[\"influencerName\"] }} failed to post for campaign {{ $json[\"campaignId\"] }} by deadline {{ $json[\"deadline\"] }}.",
"channel": "manager-slack-channel",
"attachments": [],
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "MQ0fgwuS8AzfwFvy",
"name": "Slack account - test "
}
},
"typeVersion": 1
},
{
"id": "0f2431e2-d59e-4051-ac2c-29c6708cc529",
"name": "違反の記録",
"type": "n8n-nodes-base.googleSheets",
"position": [
1200,
48
],
"parameters": {
"options": {},
"sheetId": "your-logs-sheet-id!A:F",
"operation": "append"
},
"credentials": {
"googleApi": {
"id": "ScSS2KxGQULuPtdy",
"name": "Google Sheets- test"
}
},
"typeVersion": 1
},
{
"id": "17dc2dd5-0e30-47e6-98a3-2ab651b9486e",
"name": "終了(準拠パス)",
"type": "n8n-nodes-base.set",
"position": [
1200,
288
],
"parameters": {
"options": {},
"keepOnlySet": true
},
"typeVersion": 1
},
{
"id": "99da3762-46c3-4f66-b95d-84b818e71011",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-656,
-368
],
"parameters": {
"color": 3,
"width": 176,
"height": 480,
"content": "Runs daily at 9 AM or via webhook (/influencer-compliance)\n"
},
"typeVersion": 1
},
{
"id": "11643a92-6d5d-4899-aef5-a6fc4787eeb9",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
-368
],
"parameters": {
"color": 5,
"width": 176,
"height": 336,
"content": "Processes each contract individually\n"
},
"typeVersion": 1
},
{
"id": "a37ac9a7-71b4-4c4a-b835-cb730aef9074",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
480,
-64
],
"parameters": {
"color": 4,
"width": 176,
"height": 336,
"content": "Fetches recent posts from influencer’s Instagram\n"
},
"typeVersion": 1
},
{
"id": "afd669d8-0961-4204-bc74-f04f27d6b25a",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
-64
],
"parameters": {
"width": 176,
"height": 336,
"content": "Branches if deadline has passed\n"
},
"typeVersion": 1
},
{
"id": "5d3990be-46b6-49f7-89e8-98a7d5a974a2",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
-448
],
"parameters": {
"color": 3,
"width": 176,
"height": 336,
"content": "Notifies influencer/team of upcoming deadline\n"
},
"typeVersion": 1
},
{
"id": "a6f8c630-09e3-41ee-93d1-98d2a9463a69",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
-448
],
"parameters": {
"color": 6,
"width": 176,
"height": 336,
"content": "Branches if within 3 days\n"
},
"typeVersion": 1
},
{
"id": "656ce4fc-f52d-477d-83f4-b40f2969bb7a",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
16,
-368
],
"parameters": {
"color": 4,
"width": 176,
"height": 336,
"content": "Computes days to deadline, flags approaching/passed\n"
},
"typeVersion": 1
},
{
"id": "c1844ae1-a433-47af-8d61-b979bd283676",
"name": "付箋7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
-368
],
"parameters": {
"width": 176,
"height": 336,
"content": "Loads influencer contracts from Contracts sheet\n"
},
"typeVersion": 1
},
{
"id": "a69a2e61-b0c5-4430-9dd8-da77a0003450",
"name": "付箋8",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
-64
],
"parameters": {
"color": 2,
"width": 176,
"height": 336,
"content": "Branches if non-compliant\n"
},
"typeVersion": 1
},
{
"id": "fada9646-ea1a-41dc-a727-9e2233de03ba",
"name": "付箋9",
"type": "n8n-nodes-base.stickyNote",
"position": [
736,
-64
],
"parameters": {
"color": 5,
"width": 176,
"height": 336,
"content": "Uses AI to verify if post matches contract requirements\n"
},
"typeVersion": 1
},
{
"id": "8327329c-e485-4c3f-a75b-a9c8699e6dd4",
"name": "付箋10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1168,
-544
],
"parameters": {
"color": 3,
"width": 176,
"height": 976,
"content": "Alerts manager of contract breach\nand Records breach details in Logs sheet\n also\tTerminates compliant branches"
},
"typeVersion": 1
},
{
"id": "318f9ab4-7200-4975-8e0c-9c401c1c48af",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-624,
-16
],
"webhookId": "f50af7ff-5c16-4985-9f9f-d10b805b11d4",
"parameters": {
"path": "f50af7ff-5c16-4985-9f9f-d10b805b11d4",
"options": {}
},
"typeVersion": 2.1
},
{
"id": "ff7449ef-d08d-4a4f-b5f6-b2f83433aaa9",
"name": "Webhookへの応答",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1200,
-336
],
"parameters": {
"options": {}
},
"typeVersion": 1.4
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a53b3923-88f0-485d-a994-5eee37e4b1f5",
"connections": {
"318f9ab4-7200-4975-8e0c-9c401c1c48af": {
"main": [
[
{
"node": "33aa1cec-3a0b-418a-b0ed-9af18722ef10",
"type": "main",
"index": 0
}
]
]
},
"33aa1cec-3a0b-418a-b0ed-9af18722ef10": {
"main": [
[
{
"node": "5516f33e-16a1-4beb-bf07-f573ba8ccd08",
"type": "main",
"index": 0
}
]
]
},
"03e0f79e-fd01-474c-8135-4bf0f0faeb1d": {
"main": [
[
{
"node": "33aa1cec-3a0b-418a-b0ed-9af18722ef10",
"type": "main",
"index": 0
}
]
]
},
"dcbc21bb-95b1-4041-9bde-50fb12edc097": {
"main": [
[
{
"node": "cf595681-b060-4f83-9733-b8e7fb3966b1",
"type": "main",
"index": 0
},
{
"node": "0f2431e2-d59e-4051-ac2c-29c6708cc529",
"type": "main",
"index": 0
},
{
"node": "ff7449ef-d08d-4a4f-b5f6-b2f83433aaa9",
"type": "main",
"index": 0
}
],
[
{
"node": "17dc2dd5-0e30-47e6-98a3-2ab651b9486e",
"type": "main",
"index": 0
}
]
]
},
"2b15e005-aee0-4b23-a078-cb0f07004b1d": {
"main": [
[
{
"node": "a08ad880-39e2-46e4-9428-56f019e43072",
"type": "main",
"index": 0
}
]
]
},
"5516f33e-16a1-4beb-bf07-f573ba8ccd08": {
"main": [
[
{
"node": "af25ad56-9311-49e8-842c-204b328d0ced",
"type": "main",
"index": 0
}
]
]
},
"a08ad880-39e2-46e4-9428-56f019e43072": {
"main": [
[
{
"node": "07a09646-85c3-4b67-a69b-8386e13589d2",
"type": "main",
"index": 0
}
]
]
},
"6cb537be-9f88-4ef3-a6a7-d730ab782227": {
"main": [
[
{
"node": "fb583c49-8842-49c1-92ac-45511abeb67b",
"type": "main",
"index": 0
}
]
]
},
"af25ad56-9311-49e8-842c-204b328d0ced": {
"main": [
[
{
"node": "6cb537be-9f88-4ef3-a6a7-d730ab782227",
"type": "main",
"index": 0
},
{
"node": "2b15e005-aee0-4b23-a078-cb0f07004b1d",
"type": "main",
"index": 0
}
]
]
},
"07a09646-85c3-4b67-a69b-8386e13589d2": {
"main": [
[
{
"node": "dcbc21bb-95b1-4041-9bde-50fb12edc097",
"type": "main",
"index": 0
}
]
]
}
}
}このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - ソーシャルメディア, AI要約
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Oneclick AI Squad
@oneclick-aiThe AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.
このワークフローを共有