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 →
{
"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
}
]
]
}
}
}
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
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
Onsite Photos to Jobs (SMS Agent). Uses dataTable, twilio, httpRequest, airtable. Webhook trigger; 62 nodes.
W1 - IN WhatsApp Adapter (Secure + Fast ACK). Uses postgres, redis, httpRequest. Webhook trigger; 50 nodes.
W1 - IN WhatsApp Adapter (Secure + Fast ACK). Uses postgres, redis, httpRequest. Webhook trigger; 48 nodes.