{
  "workflow": {
    "id": 3818,
    "name": "Sync new Shopify customers to Odoo contacts",
    "views": 1367,
    "recentViews": 0,
    "totalViews": 1367,
    "createdAt": "2025-05-01T10:40:04.019Z",
    "description": "This workflow functions by integrating Shopify customers into Odoo customers.\n\n1. Trigger: Shopify – New Customer Created\n   The workflow starts when a new customer is added in Shopify.\n\n2. Action: Odoo – Search Contact by Email\n   It checks in Odoo to see if a contact already exists with the same email address as the Shopify customer.\n\n3. Condition: Email Match Check\n    If a contact with the same email is found, the workflow ends (no duplicate contact is created).\n    If no match is found, the workflow proceeds to the next step.\n\n4. Action: Odoo – Create New Contact\n   A new contact is created in Odoo using the customer's:\n    Full name\n    Email address\n    Phone number\n    Full Address (whichever is available)",
    "workflow": {
      "id": "Zp0R3I1dUjZOIz2l",
      "meta": {
        "instanceId": "6b3e8c6c30cdfbf06283a3fa57016932c6b4ec959896c5c546ef5865ff697ff1",
        "templateCredsSetupCompleted": true
      },
      "name": "Sync New Shopify Customers to Odoo Contacts",
      "tags": [],
      "nodes": [
        {
          "id": "ae072919-4f88-4722-b139-2628e24b89ba",
          "name": "Filter",
          "type": "n8n-nodes-base.filter",
          "position": [
            -420,
            -40
          ],
          "parameters": {
            "conditions": {
              "boolean": [
                {
                  "value1": "={{ $json.existing }}"
                }
              ]
            }
          },
          "typeVersion": 1
        },
        {
          "id": "a36747d5-3381-43b8-9def-e3dbc8942dbd",
          "name": "Search Odoo Contact",
          "type": "n8n-nodes-base.odoo",
          "position": [
            -800,
            -40
          ],
          "parameters": {
            "limit": 1,
            "options": {},
            "resource": "custom",
            "operation": "getAll",
            "filterRequest": {
              "filter": [
                {
                  "value": "={{ $('Shopify Trigger').item.json.email }}",
                  "fieldName": "email"
                }
              ]
            },
            "customResource": "res.partner"
          },
          "credentials": {
            "odooApi": {
              "id": "credential-id",
              "name": "odooApi Credential"
            }
          },
          "typeVersion": 1,
          "alwaysOutputData": true
        },
        {
          "id": "a52d6acf-e8c2-48cd-b44c-903617c23e9e",
          "name": "Shopify Trigger",
          "type": "n8n-nodes-base.shopifyTrigger",
          "position": [
            -1060,
            -40
          ],
          "webhookId": "30b89f06-e54c-4461-9e1e-9ef7f221e08b",
          "parameters": {
            "topic": "customers/create",
            "authentication": "accessToken"
          },
          "credentials": {
            "shopifyAccessTokenApi": {
              "id": "credential-id",
              "name": "shopifyAccessTokenApi Credential"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "f3023805-dc0b-4745-ab7b-77b2d81137e3",
          "name": "Create Contact",
          "type": "n8n-nodes-base.odoo",
          "position": [
            -240,
            -40
          ],
          "parameters": {
            "resource": "custom",
            "customResource": "res.partner",
            "fieldsToCreateOrUpdate": {
              "fields": [
                {
                  "fieldName": "name",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].name }}"
                },
                {
                  "fieldName": "email",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.email }}"
                },
                {
                  "fieldName": "street",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].address1 }}"
                },
                {
                  "fieldName": "street2",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].address2 }}"
                },
                {
                  "fieldName": "city",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].city }}"
                },
                {
                  "fieldName": "zip",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].zip }}"
                },
                {
                  "fieldName": "phone",
                  "fieldValue": "={{ $('Shopify Trigger').item.json.addresses[0].phone }}"
                }
              ]
            }
          },
          "credentials": {
            "odooApi": {
              "id": "credential-id",
              "name": "odooApi Credential"
            }
          },
          "typeVersion": 1,
          "alwaysOutputData": false
        },
        {
          "id": "4cef59ef-0ba4-4eee-83b6-27254ffd5974",
          "name": "Code",
          "type": "n8n-nodes-base.code",
          "position": [
            -600,
            -40
          ],
          "parameters": {
            "mode": "runOnceForEachItem",
            "jsCode": "\n\nvar contact_detail = $('Shopify Trigger').item.json\nconsole.log('-------contact_detail--------',contact_detail)\nvar existing_contact = $('Search Odoo Contact').item.json\nconsole.log('-------existing_contact--------',existing_contact,existing_contact.valueOf)\nreturn {existing:existing_contact.id ? true:false,contact_detail:contact_detail}\n"
          },
          "typeVersion": 2
        }
      ],
      "active": false,
      "pinData": {},
      "settings": {
        "executionOrder": "v1"
      },
      "versionId": "4c04743a-c0c3-4900-9963-3ca05b65908c",
      "connections": {
        "Code": {
          "main": [
            [
              {
                "node": "Filter",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Filter": {
          "main": [
            [
              {
                "node": "Create Contact",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Shopify Trigger": {
          "main": [
            [
              {
                "node": "Search Odoo Contact",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Search Odoo Contact": {
          "main": [
            [
              {
                "node": "Code",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 29,
    "workflowInfo": {
      "nodeCount": 5,
      "nodeTypes": {
        "n8n-nodes-base.code": {
          "count": 1
        },
        "n8n-nodes-base.odoo": {
          "count": 2
        },
        "n8n-nodes-base.filter": {
          "count": 1
        },
        "n8n-nodes-base.shopifyTrigger": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "Evozard",
      "username": "evozardconsulting",
      "bio": "🚀 AI & Automation Expert | n8n Creator\n\nI specialize in building AI-powered automation and workflow solutions using n8n and no-code/low-code tools. With extensive experience in process automation, system integration, and AI-driven workflows, I help businesses streamline operations, enhance productivity, and reduce manual effort. Passionate about scalable automation that drives efficiency and growth.",
      "verified": true,
      "links": [
        "https://www.evozard.com/business-workflow-and-automation"
      ],
      "avatar": "https://gravatar.com/avatar/c74b93180318a4ab4566d518d50ed5f006499d46e6b129f70c093a51978ad41e?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 107,
        "icon": "file:shopify.svg",
        "name": "n8n-nodes-base.shopifyTrigger",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.shopifytrigger/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/shopify/"
                }
              ]
            },
            "categories": [
              "Sales"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "Shopify Trigger"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB2aWV3Qm94PSIwIDAgNTggNjYiPjx1c2UgeGxpbms6aHJlZj0iI2EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9ImEiIG92ZXJmbG93PSJ2aXNpYmxlIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSI+PHBhdGggZmlsbD0iIzk1YmY0NyIgZD0iTTQ5LjI1NSAxMi40ODRhLjYzLjYzIDAgMCAwLS41NjQtLjUyN2MtLjIyNS0uMDM3LTUuMTctLjM3Ni01LjE3LS4zNzZsLTMuNzctMy43N2MtLjM0LS4zNzYtMS4wOTItLjI2Ni0xLjM3Ni0uMTg4LS4wMzcgMC0uNzUyLjIyNS0xLjkyMi42MDUtMS4xMzctMy4zLTMuMTUtNi4zMDYtNi42OTYtNi4zMDZoLS4zMDNDMjguNDM4LjYwNSAyNy4xOTQgMCAyNi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jQ2Ny0zLjg4NS05LjQ2Ny0zLjg4NWwxLjY2NS01LjU1czMuMjggMi44MyA2LjA3MyAyLjgzYTIuNDcgMi40NyAwIDAgMCAyLjU2NC0yLjQ5YzAtNC4zNC03LjEtNC41MjctNy4xLTExLjYxOCAwLTUuOTYyIDQuMjk4LTExLjc3IDEyLjkzNC0xMS43NyAzLjM5NC4wNSA1LjAxOCAxIDUuMDE4IDF6Ii8+PC9nPjwvc3ltYm9sPjwvc3ZnPg=="
        },
        "displayName": "Shopify Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 2,
            "name": "Sales"
          }
        ]
      },
      {
        "id": 559,
        "icon": "file:odoo.svg",
        "name": "n8n-nodes-base.odoo",
        "codex": {
          "data": {
            "alias": [
              "ERP"
            ],
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.odoo/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/odoo/"
                }
              ]
            },
            "categories": [
              "Data & Storage"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Odoo"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTAiIGhlaWdodD0iMTUwIj48Y2lyY2xlIGN4PSI3NSIgY3k9Ijc1IiByPSI3Mi40IiBmaWxsPSIjOWM1Nzg5Ii8+PGNpcmNsZSBjeD0iNzUiIGN5PSI3NSIgcj0iNDIuNyIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg=="
        },
        "displayName": "Odoo",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 3,
            "name": "Data & Storage"
          }
        ]
      },
      {
        "id": 834,
        "icon": "file:code.svg",
        "name": "n8n-nodes-base.code",
        "codex": {
          "data": {
            "alias": [
              "cpde",
              "Javascript",
              "JS",
              "Python",
              "Script",
              "Custom Code",
              "Function"
            ],
            "details": "The Code node allows you to execute JavaScript in your workflow.",
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"
                }
              ]
            },
            "categories": [
              "Development",
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers",
                "Data Transformation"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Code"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTcxXzQ0MSkiPgo8cGF0aCBkPSJNMTcwLjI4MyA0OEgxOTYuNUMyMDMuMTI3IDQ4IDIwOC41IDQyLjYyNzQgMjA4LjUgMzZWMTJDMjA4LjUgNS4zNzI1OCAyMDMuMTI3IDAgMTk2LjUgMEgxNzAuMjgzQzEyNi4xIDAgOTAuMjgzIDM1LjgxNzIgOTAuMjgzIDgwVjE3NkM5MC4yODMgMjA2LjkyOCA2NS4yMTA5IDIzMiAzNC4yODMgMjMySDIzQzE2LjM3MjYgMjMyIDExIDIzNy4zNzIgMTEgMjQ0VjI2OEMxMSAyNzQuNjI3IDE2LjM3MjQgMjgwIDIyLjk5OTYgMjgwTDM0LjI4MyAyODBDNjUuMjEwOSAyODAgOTAuMjgzIDMwNS4wNzIgOTAuMjgzIDMzNlY0NDBDOTAuMjgzIDQ3OS43NjQgMTIyLjUxOCA1MTIgMTYyLjI4MyA1MTJIMTk2LjVDMjAzLjEyNyA1MTIgMjA4LjUgNTA2LjYyNy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MjY4VjI0NEM1MDIgMjM3LjM3MyA0OTYuNjI4IDIzMiA0OTAgMjMyTDQ3OC45NzkgMjMyQzQ0OC4wNTEgMjMyIDQyMi45NzggMjA2LjkyOCA0MjIuOTc4IDE3NlY4MEM0MjIuOTc4IDM1LjgxNzIgMzg3LjE2MSAwIDM0Mi45NzkgMEgzMTdDMzEwLjM3MyAwIDMwNSA1LjM3MjU4IDMwNSAxMlYzNloiIGZpbGw9IiNGRjk5MjIiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMTcxXzQ0MSI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="
        },
        "displayName": "Code",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 5,
            "name": "Development"
          },
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 844,
        "icon": "fa:filter",
        "name": "n8n-nodes-base.filter",
        "codex": {
          "data": {
            "alias": [
              "Router",
              "Filter",
              "Condition",
              "Logic",
              "Boolean",
              "Branch"
            ],
            "details": "The Filter node can be used to filter items based on a condition. If the condition is met, the item will be passed on to the next node. If the condition is not met, the item will be omitted. Conditions can be combined together by AND(meet all conditions), or OR(meet at least one condition).",
            "resources": {
              "generic": [],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.filter/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Flow",
                "Data Transformation"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Filter",
          "color": "#229eff"
        },
        "iconData": {
          "icon": "filter",
          "type": "icon"
        },
        "displayName": "Filter",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 39,
        "name": "CRM"
      }
    ],
    "image": []
  }
}