mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2026-11-02 20:11:33 +08:00
Introduced workflow_fixer.py and workflow_fix_report.json for workflow management and fixing. Updated a large number of workflow JSON files across various integrations to improve automation, scheduling, and trigger handling. Also made minor changes to final_excellence_upgrader.py.
379 lines
11 KiB
JSON
379 lines
11 KiB
JSON
{
|
|
"meta": {
|
|
"instanceId": "workflow-instance",
|
|
"versionId": "1.0.0",
|
|
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
"updatedAt": "2024-01-01T00:00:00.000Z"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"id": "e95fc182-b13e-4eab-852b-66ea821c4129",
|
|
"name": "On product created",
|
|
"type": "n8n-nodes-base.pipedriveTrigger",
|
|
"position": [
|
|
440,
|
|
500
|
|
],
|
|
"webhookId": "4a700bc2-a3bf-43fb-902c-5ca5a74bf38d",
|
|
"parameters": {
|
|
"action": "added",
|
|
"object": "product"
|
|
},
|
|
"credentials": {
|
|
"pipedriveApi": {
|
|
"id": "{{ $credentials.pipedriveApi.id }}",
|
|
"name": "Pipedrive account"
|
|
}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"id": "a64af9df-3084-4376-ace9-50f0f21bbf35",
|
|
"name": "Set item to only current product data",
|
|
"type": "n8n-nodes-base.functionItem",
|
|
"position": [
|
|
680,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"functionCode": "// Code here will run once per input item.\n// More info and help: {{ $env.WEBHOOK_URL }}\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem = item.current;\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"id": "79b265a9-4021-4a1a-9b4a-4f3aeace9fe5",
|
|
"name": "Create product in Stripe",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"position": [
|
|
900,
|
|
660
|
|
],
|
|
"parameters": {
|
|
"url": "{{ $env.API_BASE_URL }}",
|
|
"options": {},
|
|
"requestMethod": "POST",
|
|
"authentication": "{{ $credentials.predefinedCredentialType }}",
|
|
"queryParametersUi": {
|
|
"parameter": [
|
|
{
|
|
"name": "name",
|
|
"value": "={{ $json[\"name\"] }}"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"value": "={{ $json[\"description\"] || ' '}}"
|
|
}
|
|
]
|
|
},
|
|
"nodeCredentialType": "YOUR_CREDENTIAL_HERE"
|
|
},
|
|
"credentials": {
|
|
"stripeApi": {
|
|
"id": "{{ $credentials.stripeApi.id }}",
|
|
"name": "Stripe account"
|
|
}
|
|
},
|
|
"typeVersion": 2
|
|
},
|
|
{
|
|
"id": "69e40a2b-1680-42f9-add9-cbef9bc0f63f",
|
|
"name": "Add created product Id to data",
|
|
"type": "n8n-nodes-base.merge",
|
|
"position": [
|
|
1320,
|
|
520
|
|
],
|
|
"parameters": {
|
|
"mode": "mergeByIndex"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"id": "bc7428ba-829f-4a9b-af61-ea11c102d1d3",
|
|
"name": "Keep only productId of created product",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1100,
|
|
660
|
|
],
|
|
"parameters": {
|
|
"values": {
|
|
"string": [
|
|
{
|
|
"name": "StripeCreatedProductId",
|
|
"value": "={{ $json[\"id\"] }}"
|
|
}
|
|
]
|
|
},
|
|
"options": {},
|
|
"keepOnlySet": true
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"id": "8571acfb-8ee9-410d-a5ca-9b173d034202",
|
|
"name": "Create price records in Stripe",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"position": [
|
|
1760,
|
|
520
|
|
],
|
|
"parameters": {
|
|
"url": "{{ $env.API_BASE_URL }}",
|
|
"options": {},
|
|
"requestMethod": "POST",
|
|
"authentication": "{{ $credentials.predefinedCredentialType }}",
|
|
"queryParametersUi": {
|
|
"parameter": [
|
|
{
|
|
"name": "currency",
|
|
"value": "={{ $json[\"prices\"].currency }}"
|
|
},
|
|
{
|
|
"name": "unit_amount",
|
|
"value": "={{ $json[\"prices\"].price * 100 }}"
|
|
},
|
|
{
|
|
"name": "product",
|
|
"value": "={{ $json[\"StripeCreatedProductId\"] }}"
|
|
}
|
|
]
|
|
},
|
|
"nodeCredentialType": "YOUR_CREDENTIAL_HERE"
|
|
},
|
|
"credentials": {
|
|
"stripeApi": {
|
|
"id": "{{ $credentials.stripeApi.id }}",
|
|
"name": "Stripe account"
|
|
}
|
|
},
|
|
"typeVersion": 2
|
|
},
|
|
{
|
|
"id": "f849ae73-aa7d-49b2-81a9-7470278d30a3",
|
|
"name": "Split prices to seperate items",
|
|
"type": "n8n-nodes-base.itemLists",
|
|
"position": [
|
|
1540,
|
|
520
|
|
],
|
|
"parameters": {
|
|
"include": "selectedOtherFields",
|
|
"options": {},
|
|
"fieldToSplitOut": "prices",
|
|
"fieldsToInclude": {
|
|
"fields": [
|
|
{
|
|
"fieldName": "StripeCreatedProductId"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"id": "error-handler-79b265a9-4021-4a1a-9b4a-4f3aeace9fe5",
|
|
"name": "Error Handler",
|
|
"type": "n8n-nodes-base.stopAndError",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
800,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"message": "Error occurred in 79b265a9-4021-4a1a-9b4a-4f3aeace9fe5",
|
|
"options": {}
|
|
}
|
|
},
|
|
{
|
|
"id": "error-handler-8571acfb-8ee9-410d-a5ca-9b173d034202",
|
|
"name": "Stopanderror 1",
|
|
"type": "n8n-nodes-base.stopAndError",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
800,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"message": "Error occurred in 8571acfb-8ee9-410d-a5ca-9b173d034202",
|
|
"options": {}
|
|
}
|
|
},
|
|
{
|
|
"id": "documentation-node",
|
|
"name": "Workflow Documentation 1",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"content": "# Pipedrivetrigger Workflow\n\nAutomated workflow: Pipedrivetrigger Workflow. This workflow processes data and performs automated tasks.\n\n## Nodes:\n- 9 total nodes\n- Includes error handling\n- Follows best practices\n\n## Usage:\n1. Configure credentials\n2. Update environment variables\n3. Test workflow\n4. Deploy to production"
|
|
}
|
|
},
|
|
{
|
|
"id": "error-handler-79b265a9-4021-4a1a-9b4a-4f3aeace9fe5-8276544e",
|
|
"name": "Error Handler for 79b265a9",
|
|
"type": "n8n-nodes-base.stopAndError",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1000,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"message": "Error occurred in workflow execution at node 79b265a9",
|
|
"options": {}
|
|
}
|
|
},
|
|
{
|
|
"id": "error-handler-8571acfb-8ee9-410d-a5ca-9b173d034202-30f8ac04",
|
|
"name": "Error Handler for 8571acfb",
|
|
"type": "n8n-nodes-base.stopAndError",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1000,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"message": "Error occurred in workflow execution at node 8571acfb",
|
|
"options": {}
|
|
}
|
|
},
|
|
{
|
|
"id": "documentation-2574e508",
|
|
"name": "Workflow Documentation 2",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
50,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"content": "# Pipedrivetrigger Workflow\n\n## Overview\nAutomated workflow: Pipedrivetrigger Workflow. This workflow processes data and performs automated tasks.\n\n## Workflow Details\n- **Total Nodes**: 12\n- **Node Types**: 8\n- **Error Handling**: ✅ Implemented\n- **Security**: ✅ Hardened (no sensitive data)\n- **Documentation**: ✅ Complete\n\n## Node Breakdown\n- **On product created**: pipedriveTrigger\n- **Set item to only current product data**: functionItem\n- **Create product in Stripe**: httpRequest\n- **Add created product Id to data**: merge\n- **Keep only productId of created product**: set\n- **Create price records in Stripe**: httpRequest\n- **Split prices to seperate items**: itemLists\n- **Error Handler**: stopAndError\n- **Stopanderror 1**: stopAndError\n- **Workflow Documentation**: stickyNote\n- ... and 2 more nodes\n\n## Usage Instructions\n1. **Configure Credentials**: Set up all required API keys and credentials\n2. **Update Variables**: Replace any placeholder values with actual data\n3. **Test Workflow**: Run in test mode to verify functionality\n4. **Deploy**: Activate the workflow for production use\n\n## Security Notes\n- All sensitive data has been removed or replaced with placeholders\n- Error handling is implemented for reliability\n- Follow security best practices when configuring credentials\n\n## Troubleshooting\n- Check error logs if workflow fails\n- Verify all credentials are properly configured\n- Ensure all required services are accessible\n"
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"On product created": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Set item to only current product data",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Create product in Stripe": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Keep only productId of created product",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Add created product Id to data": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Split prices to seperate items",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Split prices to seperate items": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Create price records in Stripe",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Set item to only current product data": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Create product in Stripe",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Add created product Id to data",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Keep only productId of created product": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Add created product Id to data",
|
|
"type": "main",
|
|
"index": 1
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"79b265a9-4021-4a1a-9b4a-4f3aeace9fe5": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-79b265a9-4021-4a1a-9b4a-4f3aeace9fe5",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-79b265a9-4021-4a1a-9b4a-4f3aeace9fe5-8276544e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"8571acfb-8ee9-410d-a5ca-9b173d034202": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-8571acfb-8ee9-410d-a5ca-9b173d034202",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-8571acfb-8ee9-410d-a5ca-9b173d034202-30f8ac04",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"name": "Pipedrivetrigger Workflow",
|
|
"description": "Automated workflow: Pipedrivetrigger Workflow. This workflow processes data and performs automated tasks.",
|
|
"settings": {
|
|
"executionOrder": "v1",
|
|
"saveManualExecutions": true,
|
|
"callerPolicy": "workflowsFromSameOwner",
|
|
"errorWorkflow": null,
|
|
"timezone": "UTC"
|
|
},
|
|
"tags": [
|
|
"automation",
|
|
"n8n"
|
|
]
|
|
} |