Workflow: write code for n8n workflow for Posthog Webhook Automate Webhook
Integrations: postHog, webhook

{"nodes": [{"name": "PostHog", "type": "n8n-nodes-base.postHog", "position": [640, 280], "parameters": {"eventName": "={{$json[\"query\"][\"event\"]}}", "distinctId": "n8n", "additionalFields": {}}, "credentials": {"postHogApi": "PostHog Credentials"}, "typeVersion": 1}, {"name": "Webhook", "type": "n8n-nodes-base.webhook", "position": [440, 280], "webhookId": "f6d0071e-3cf9-49fd-8bbd-afdbea6b0c67", "parameters": {"path": "f6d0071e-3cf9-49fd-8bbd-afdbea6b0c67", "options": {}}, "typeVersion": 1}], "connections": {"Webhook": {"main": [[{"node": "PostHog", "type": "main", "index": 0}]]}}}