{
  "openruna_format": "flow-graph-v1",
  "title": "AI-Generated Summary Block for WordPress Posts - with OpenAI, WordPress, Google Sheets & Slack",
  "slug": "ai-generated-summary-block-for-wordpress-posts-with-openai-wordpress-google-sheets-slack-2",
  "source_filename": "1273_Datetime_Webhook_Create_Webhook.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Text Classifier",
      "name": "Text Classifier",
      "integration": "@n8n/n8n-nodes-langchain.textClassifier",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Schedule Trigger",
      "name": "Schedule Trigger",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "Wordpress - Update Post",
      "name": "Wordpress - Update Post",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Google Sheets - Get rows",
      "name": "Google Sheets - Get rows",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "HTML to Markdown",
      "name": "HTML to Markdown",
      "integration": "markdown",
      "kind": "action"
    },
    {
      "id": "OpenAI",
      "name": "OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Google Sheets - Add Row",
      "name": "Google Sheets - Add Row",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Slack - Notify Channel",
      "name": "Slack - Notify Channel",
      "integration": "slack",
      "kind": "action"
    },
    {
      "id": "Set fields - From Webhook input",
      "name": "Set fields - From Webhook input",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Date & Time - Substract",
      "name": "Date & Time - Substract",
      "integration": "dateTime",
      "kind": "logic"
    },
    {
      "id": "Set fields - Prepare data for Gsheets & Slack",
      "name": "Set fields - Prepare data for Gsheets & Slack",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "WordPress - Get Post2",
      "name": "WordPress - Get Post2",
      "integration": "wordpress",
      "kind": "action"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "WordPress - Get Last Posts",
      "name": "WordPress - Get Last Posts",
      "integration": "wordpress",
      "kind": "action"
    },
    {
      "id": "WordPress - Get Post1",
      "name": "WordPress - Get Post1",
      "integration": "wordpress",
      "kind": "action"
    },
    {
      "id": "WordPress - Get All Posts",
      "name": "WordPress - Get All Posts",
      "integration": "wordpress",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Loop Over Items"
    },
    {
      "from": "If",
      "to": "WordPress - Get Post2"
    },
    {
      "from": "OpenAI",
      "to": "Wordpress - Update Post"
    },
    {
      "from": "Webhook",
      "to": "Set fields - From Webhook input"
    },
    {
      "from": "Loop Over Items",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Loop Over Items",
      "to": "Google Sheets - Get rows"
    },
    {
      "from": "Text Classifier",
      "to": "OpenAI"
    },
    {
      "from": "Text Classifier",
      "to": "Loop Over Items"
    },
    {
      "from": "HTML to Markdown",
      "to": "Text Classifier"
    },
    {
      "from": "Schedule Trigger",
      "to": "Date & Time - Substract"
    },
    {
      "from": "WordPress - Get Post2",
      "to": "HTML to Markdown"
    },
    {
      "from": "Slack - Notify Channel",
      "to": "Loop Over Items"
    },
    {
      "from": "Date & Time - Substract",
      "to": "WordPress - Get Last Posts"
    },
    {
      "from": "Google Sheets - Add Row",
      "to": "Slack - Notify Channel"
    },
    {
      "from": "Wordpress - Update Post",
      "to": "Set fields - Prepare data for Gsheets & Slack"
    },
    {
      "from": "Google Sheets - Get rows",
      "to": "If"
    },
    {
      "from": "WordPress - Get All Posts",
      "to": "Loop Over Items"
    },
    {
      "from": "Set fields - From Webhook input",
      "to": "WordPress - Get Post1"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "WordPress - Get All Posts"
    },
    {
      "from": "Set fields - Prepare data for Gsheets & Slack",
      "to": "Google Sheets - Add Row"
    }
  ]
}