AutomationFlowsAI & RAG › W CMS Sync

W CMS Sync

W_CMS_SYNC. Uses httpRequest. Webhook trigger; 3 nodes.

Webhook trigger★★★★☆ complexity3 nodesHTTP Request
AI & RAG Trigger: Webhook Nodes: 3 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "W_CMS_SYNC",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "webhook/cms-sync",
        "options": {}
      },
      "name": "Strapi Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        100,
        200
      ]
    },
    {
      "parameters": {
        "language": "javascript",
        "jsCode": "const model = $json.model;\nconst data = $json.data || {};\nconst payload = { data: {} };\n\nfor (const [key, value] of Object.entries(data)) {\n  if (['id', 'createdAt', 'updatedAt', 'publishedAt', 'createdBy', 'updatedBy', 'documentId'].includes(key)) continue;\n  payload.data[key] = value;\n}\n\nlet endpoint = '';\nif (model === 'system-config') {\n  endpoint = '/api/system-config';\n} else {\n  let plural = model + 's';\n  if (model === 'delivery-zone') plural = 'delivery-zones';\n  endpoint = `/api/${plural}/${data.documentId || data.id}`;\n}\n\nreturn [{ json: { ...($json), _syncPayload: payload, _endpoint: endpoint } }];"
      },
      "name": "Format URL & Payload",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        350,
        200
      ]
    },
    {
      "parameters": {
        "method": "PUT",
        "url": "={{ $env.STRAPI_URL || 'http://strapi:1337' }}{{ $json._endpoint }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer {{ $env.STRAPI_API_TOKEN }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json._syncPayload) }}"
      },
      "name": "Upsert Strapi Model",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        600,
        200
      ],
      "continueOnFail": true
    }
  ],
  "connections": {
    "Strapi Webhook": {
      "main": [
        [
          {
            "node": "Format URL & Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format URL & Payload": {
      "main": [
        [
          {
            "node": "Upsert Strapi Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

W_CMS_SYNC. Uses httpRequest. Webhook trigger; 3 nodes.

Source: https://github.com/zerAda/RestaurantAgentAutomation/blob/41a4d42dcd66e57b1e87b4750c0fd5fbf7058f68/workflows/W_CMS_SYNC.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Jigsaw API key for image processing, I use this as a gatekeeper/second pair of eyes. LINK to their website https://jigsawstack.com/ SECOND A postgress DATABASE (I use Supabase) LlamaCloud for the pars

HTTP Request, Postgres, Stop And Error +2
AI & RAG

Whatsapp Multi Agent System optimized copy 2.0. Uses airtable, httpRequest, errorTrigger. Webhook trigger; 44 nodes.

Airtable, HTTP Request, Error Trigger
AI & RAG

Invoice Agent. Uses httpRequest, emailSend. Webhook trigger; 29 nodes.

HTTP Request, Email Send
AI & RAG

Reputation Engine — SEO QA Agent. Uses httpRequest. Webhook trigger; 28 nodes.

HTTP Request
AI & RAG

This workflow handles incoming voice calls or audio messages, transcribes them using Whisper (OpenAI) or ElevenLabs, extracts booking intent and preferred time slots using AI, checks availability on C

HTTP Request