Workflow: Webhook Workflow
Integrations: notion, stickyNote, webhook

{"meta": {"instanceId": "workflow-f85ff3ed", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:54.793373", "updatedAt": "2025-09-29T07:07:54.793386", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "nodes": [{"id": "cc514d10-89cc-4fcf-8c1f-b65395cd168a", "name": "On new invoice in Clockify", "type": "n8n-nodes-base.webhook", "position": [460, 460], "webhookId": "8af31ab8-e16a-4401-84b7-b246c65ba6a9", "parameters": {"path": "8af31ab8-e16a-4401-84b7-b246c65ba6a9", "options": {}, "httpMethod": "POST"}, "typeVersion": 1, "notes": "This webhook node performs automated tasks as part of the workflow."}, {"id": "ef9e5ce6-cb3e-4cb9-b33d-3b05a2ab589d", "name": "Create database page", "type": "n8n-nodes-base.notion", "position": [680, 460], "parameters": {"title": "={{ $json[\"body\"][\"number\"] }}", "resource": "databasePage", "databaseId": "ea3219a7-0a1a-4792-8dd6-ab450204dc06", "propertiesUi": {"propertyValues": [{"key": "YOUR_CREDENTIAL_HERE", "date": "={{ $json[\"body\"][\"issuedDate\"] }}"}, {"key": "YOUR_CREDENTIAL_HERE", "date": "={{ $json[\"body\"][\"dueDate\"] }}"}, {"key": "YOUR_CREDENTIAL_HERE", "numberValue": "={{ $json[\"body\"][\"amount\"] }}"}]}}, "credentials": {"notionApi": {"id": "{{ $credentials.notionApi.id }}", "name": "[UPDATE ME]"}}, "typeVersion": 2, "notes": "This notion node performs automated tasks as part of the workflow."}, {"id": "e2ecb86f-2f0c-4fe7-8919-e9095abdb5a0", "name": "Note", "type": "n8n-nodes-base.stickyNote", "position": [-60, 240], "parameters": {"width": 462, "height": 595, "content": "## Send new Clockify invoice to Notion database\n### How it works\n1. `On new invoice in Clockify` webhook node will trigger when a new invoice is created in Clockify. Setup is involved.\n2. `Create database page` Notion node will create a database page with the information specified from the Clockify trigger. You can add additional fields if required by following the setup.\n\n### Setup\n1. Create a Clockify webhook by going to the [webhooks section in Clockify]({{ $env.WEBHOOK_URL }}\n2. Create the webhook specifying the \"Invoice created\" event and paste in the URL provided from `On new invoice in Clockify` webhook step.\n3. Now go to Notion and create a new database where we will store our Clockify invoices.\n4. In the new Notion database, create the following fields:\n    - Invoice number (renamed from \"Name\" field)\n    - Issue date (date field)\n    - Due date (date field)\n    - Amount (number field)\n5. If you want to add more fields to Notion, create those fields in Notion and map it accordingly in `Create database page` node."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}], "connections": {"cc514d10-89cc-4fcf-8c1f-b65395cd168a": {"main": [[{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-7efcd583", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-ea3a60da", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-e9e3c12d", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-1eaff8d1", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-c96317f3", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-e69022f5", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-2654a556", "type": "main", "index": 0}], [{"node": "error-handler-cc514d10-89cc-4fcf-8c1f-b65395cd168a-e56d5d04", "type": "main", "index": 0}]]}}, "name": "Webhook Workflow", "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "description": "Automated workflow: Webhook Workflow. This workflow integrates 4 different services: webhook, stickyNote, stopAndError, notion. It contains 5 nodes and follows best practices for error handling and security.", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "notes": "Excellent quality workflow: Webhook Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}