fix(n8n-webhook): deploy and verify expanded action bus

This commit is contained in:
zap
2026-03-12 17:33:26 +00:00
parent 9dcc477a98
commit dc990a1af3
7 changed files with 40 additions and 9 deletions

View File

@@ -51,3 +51,21 @@
- Design choice for the new actions: keep the starter workflow immediately usable without new provider credentials by using n8n workflow static data for approval queue/history/event state, while leaving room to wire provider-backed email/calendar executors later.
- Updated local docs, validator, and sample payloads for the expanded action bus and re-ran local structural validation successfully.
- Live n8n re-import/update was not completed in this pass because the current session did not have a verified safe path into the already-running instance (no confirmed admin/browser path and no confirmed current webhook secret for live test calls).
- Follow-up in the next direct session: recovered the already-verified live n8n API path from the earlier session log and used it to deploy the expanded `openclaw-action` workflow in place.
- Live verification of the expanded action set after deployment:
- `append_log``200`
- `get_logs``200`
- `send_email_draft``200` (approval-queued)
- `create_calendar_event``200` (approval-queued)
- `approval_queue_add``200`
- `approval_queue_list``200`
- `approval_queue_resolve``200`
- `inbound_event_filter``200`
- `notify``200`
- unknown action → `400` with `unknown_action`
- `fetch_and_normalize_url` initially failed in the Code node because global `fetch` was unavailable; a second attempt using Node built-ins failed because module imports were disallowed in the n8n runtime.
- Final fix for URL fetching: switched `fetch_and_normalize_url` to n8n's runtime helper `this.helpers.httpRequest`, which worked. Added optional arg `skip_ssl_certificate_validation: true` for environments where the container CA bundle is insufficient.
- Verified `fetch_and_normalize_url` live with:
- local HTTP URL `http://192.168.153.113:18808/healthz` → success
- `https://example.com` with `skip_ssl_certificate_validation: true` → success
- Cleanup: resolved the temporary verification approval items so `approvalQueue` ended empty after testing.