{
“name”: “My workflow”,
“nodes”: [
{
“parameters”: {
“form”: “={{251806190613150}}”,
“onlyAnswers”: false
},
“type”: “n8n-nodes-base.jotFormTrigger”,
“typeVersion”: 1,
“position”: [
60,
-60
],
“id”: “e9f70b40-9779-40da-a21c-f424dbd03c5f”,
“name”: “JotForm Trigger”,
“webhookId”: “26f1de8b-fe26-4e27-9e58-28e3eb6ec657”,
“credentials”: {
“jotFormApi”: {
“id”: “XdxvvZYXlf2kKsFP”,
“name”: “JotForm account 2”
}
}
},
{
“parameters”: {
“resource”: “pdf”,
“pdfTemplateId”: “f8f77b236a9af1d2”,
“jsonParameters”: true,
“propertiesJson”: “={\n "name": "{{ $json.Full_Name1 }}",\n "email": "{{ $json.Email }}",\n "Address_Line1": "{{ $json.Address_Line1 }}",\n"Phone":"{{ $json.Phone }}",\n "Date of Birth": "{{ $json.DOB }}",\n"Program":"{{ $json.Program }}",\n"Country":"{{ $json.Country }}",\n"State":"{{ $json.State }}",\n"Zipcode":"{{ $json.Zipcode }}",\n"Weight goal":"{{ $(‘Edit Fields’).item.json.rawRequest.What_are_your_current_weight_goals }}",\n"Are_you_currently_pregnant_or_breastfeeding":"{{ $(‘Edit Fields’).item.json.rawRequest.Are_you_currently_pregnant_or_breastfeeding }}"\n}”
},
“type”: “n8n-nodes-base.apiTemplateIo”,
“typeVersion”: 1,
“position”: [
940,
-60
],
“id”: “9232fedb-2200-4337-8865-e1b0a3602f18”,
“name”: “APITemplate.io”,
“credentials”: {
“apiTemplateIoApi”: {
“id”: “7CtjtIOMjumtJeJu”,
“name”: “APITemplate.io account”
}
}
},
{
“parameters”: {
“resource”: “contact”,
“operation”: “getAll”,
“returnAll”: true,
“options”: {}
},
“type”: “n8n-nodes-base.zohoCrm”,
“typeVersion”: 1,
“position”: [
500,
-60
],
“id”: “643619a3-86da-490e-af3e-8190cd404933”,
“name”: “Zoho CRM2”,
“credentials”: {
“zohoOAuth2Api”: {
“id”: “5Ts1oE98W8QXKplY”,
“name”: “Zoho account 4”
}
}
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “51ca2315-1982-4d71-89f8-f65be03d8d0d”,
“leftValue”: “={{ $json.Email }}”,
“rightValue”: “={{ $(‘JotForm Trigger’).item.json.rawRequest["Preferred Account Email"] }}”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.2,
“position”: [
720,
-60
],
“id”: “4e0460d7-fcc4-4331-8c5f-3b3c71a54562”,
“name”: “Filter”
},
{
“parameters”: {
“resource”: “contact”,
“operation”: “upsert”,
“lastName”: “={{ $(‘Filter’).item.json.Last_Name }}”,
“additionalFields”: {
“customFields”: {
“customFields”: [
{
“fieldId”: “url”,
“value”: “={{ $json.download_url }}”
}
]
}
}
},
“type”: “n8n-nodes-base.zohoCrm”,
“typeVersion”: 1,
“position”: [
1160,
-60
],
“id”: “b315eb35-337a-4de4-8540-ec70120c8854”,
“name”: “Zoho CRM3”,
“alwaysOutputData”: false,
“credentials”: {
“zohoOAuth2Api”: {
“id”: “5Ts1oE98W8QXKplY”,
“name”: “Zoho account 4”
}
}
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “1c4798ea-52f8-4763-b1a6-d83080d03fb3”,
“name”: “rawRequest["Lets_Calculate_your_BMI "]”,
“value”: “={{ $json.rawRequest["Let’s Calculate your BMI "] }}”,
“type”: “string”
},
{
“id”: “3e0b9aef-15f1-4945-8c8d-2bad3511aff1”,
“name”: “rawRequest["What_are_your_current_weight_goals"]”,
“value”: “={{ $json.rawRequest["What are your current weight goals?"] }}”,
“type”: “array”
},
{
“id”: “3de60b41-98f5-46e3-92e0-5255ef351b9e”,
“name”: “rawRequest["Are_you_currently_pregnant_or_breastfeeding"]”,
“value”: “={{ $json.rawRequest["Are you currently pregnant or breastfeeding?"] }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
280,
-60
],
“id”: “92af9234-93b9-4af1-8e9b-6f93de9fac60”,
“name”: “Edit Fields”
}
],
“pinData”: {},
“connections”: {
“JotForm Trigger”: {
“main”: [
[
{
“node”: “Edit Fields”,
“type”: “main”,
“index”: 0
}
]
]
},
“APITemplate.io”: {
“main”: [
[
{
“node”: “Zoho CRM3”,
“type”: “main”,
“index”: 0
}
]
]
},
“Zoho CRM2”: {
“main”: [
[
{
“node”: “Filter”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter”: {
“main”: [
[
{
“node”: “APITemplate.io”,
“type”: “main”,
“index”: 0
}
]
]
},
“Edit Fields”: {
“main”: [
[
{
“node”: “Zoho CRM2”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”
},
“versionId”: “53f6e6af-586d-45ae-89aa-7f3d07d1decf”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “fcf385b986cea77d966bfb6fc08c795d7f3fadfa6cb8edd7d0a38cbc4b592966”
},
“id”: “ERhRfrusClz1RrSq”,
“tags”:
}