-
-
Save mohemohe/7c508b579e439d08f67dd44da1749de6 to your computer and use it in GitHub Desktop.
n8n-link-shortener-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "link-shortener-example", | |
"nodes": [ | |
{ | |
"parameters": { | |
"path": "s", | |
"responseMode": "responseNode", | |
"options": {} | |
}, | |
"id": "d2a22994-1683-49f1-8f0e-fe191be997d6", | |
"name": "Webhook", | |
"type": "n8n-nodes-base.webhook", | |
"typeVersion": 1, | |
"position": [ | |
680, | |
560 | |
], | |
"webhookId": "766b3f37-ef0b-47a2-ab3c-2e259dacf78b" | |
}, | |
{ | |
"parameters": { | |
"operation": "get", | |
"tableName": "n8n-link-shortener", | |
"keysUi": { | |
"keyValues": [ | |
{ | |
"key": "id", | |
"value": "={{ $json.query.id }}" | |
} | |
] | |
}, | |
"additionalFields": {} | |
}, | |
"id": "929460bd-b02f-47ec-85e6-c1ff1f2a000f", | |
"name": "AWS DynamoDB", | |
"type": "n8n-nodes-base.awsDynamoDb", | |
"typeVersion": 1, | |
"position": [ | |
860, | |
560 | |
], | |
"credentials": { | |
"aws": { | |
"id": "ztsJVxnTXM9l3RYw", | |
"name": "AWS account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"respondWith": "noData", | |
"options": { | |
"responseCode": 302, | |
"responseHeaders": { | |
"entries": [ | |
{ | |
"name": "Location", | |
"value": "={{ $json.url }}" | |
} | |
] | |
} | |
} | |
}, | |
"id": "a5d3542f-5d56-4098-8392-44e1b28f0f49", | |
"name": "Respond to Webhook", | |
"type": "n8n-nodes-base.respondToWebhook", | |
"typeVersion": 1, | |
"position": [ | |
1080, | |
560 | |
] | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"Webhook": { | |
"main": [ | |
[ | |
{ | |
"node": "AWS DynamoDB", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"AWS DynamoDB": { | |
"main": [ | |
[ | |
{ | |
"node": "Respond to Webhook", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": true, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "1e744661-7627-42a6-afe1-177c46f7285c", | |
"id": "kZDGBDv74DMhqyw5", | |
"meta": { | |
"instanceId": "4b87b3b7be379f46709f622e88c0cebdccd2f2dbd5c738c94f1185f9c37cac20" | |
}, | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment