Skip to main content

Workflow Interaction Layer (WIL-API Layer) — Custom n8n Node

The Workflow Interaction Layer (WIL-API Layer) is a custom n8n community node that provides a structured interface for managing messages and actions within n8n workflows. It enables workflows to send notifications to actors (users, groups, roles) and to create trackable actions (approvals, form submissions, event waits) with callback support.

Overview

PropertyValue
Node nameworkflowInteractionLayer
Display nameWorkflow Interaction Layer
StyleProgrammatic (execute() method)
Version1
CredentialworkflowInteractionLayerApi
CategoryCommunication
AI-tool capableYes (usableAsTool: true)
API base path/rest/custom/v1

Documentation Index

DocumentDescription
ArchitectureHigh-level design, data flow, authentication model, and project scoping
API ReferenceComplete REST API endpoint reference with request/response schemas
Node OperationsDetailed guide to every resource and operation exposed in the n8n UI
CredentialsCredential setup and configuration

Source Files

community-nodes/
├── credentials/
│ └── WorkflowInteractionLayerApi.credentials.ts # Credential definition
├── nodes/
│ └── WorkflowInteractionLayer/
│ ├── WorkflowInteractionLayer.node.ts # Main node logic
│ ├── WorkflowInteractionLayer.node.json # Codex metadata
│ └── shared/
│ ├── GenericFunctions.ts # HTTP helpers & auth
│ └── types.ts # TypeScript interfaces

Quick Start

  1. Configure credentials (see Credentials)
  2. Drag the "Workflow Interaction Layer" node into your workflow
  3. Select a resource (Message or Action) and an operation
  4. The node auto-populates workflowId and workflowInstanceId from the current execution context