Package Information
Available Nodes
Documentation
n8n WPForms Trigger node
NPM package name: n8n-nodes-wpforms
This repository contains custom n8n nodes for WPForms integration, providing triggers and actions to automate workflows with WPForms data.
Prerequisites
You need the following installed on your development machine:
- git
- Node.js and npm. Minimum version Node 20. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL here. For Windows users, refer to Microsoft's guide to Install NodeJS on Windows.
- Install n8n with:
npm install n8n -g - Recommended: follow n8n's guide to set up your development environment.
Build and Install the Node Package
1. Install Dependencies
npm install
2. Build the Project
npm run build
This command will:
- Clean the
distdirectory - Compile TypeScript files
- Build icons using gulp
- Generate the distributable files
3. Link the Package Locally
npm link
4. Set Up Custom Nodes Directory
# Create custom directory in n8n home
mkdir -p ~/.n8n/custom
cd ~/.n8n/custom
# Initialize npm in the custom directory
npm init -y
5. Link Node to n8n Instance
# Link your custom node to n8n (run from ~/.n8n/custom)
npm link n8n-nodes-wpforms
6. Configure n8n Environment
Set the environment variable to tell n8n where to find custom nodes:
For Linux/Mac:
export N8N_CUSTOM_EXTENSIONS="$HOME/.n8n/custom"
For Windows (PowerShell):
$env:N8N_CUSTOM_EXTENSIONS="$HOME\.n8n\custom"
7. Start n8n
n8n start
8. Verify Installation
- Open n8n in your browser (usually
http://localhost:5678) - Look for your custom nodes in the node palette
- You should see "WPForms" nodes available
Setup and Usage Instructions for WPForms Trigger Node
Prerequisites
- A WordPress site with the WPForms plugin + WPForms n8n addon installed and activated.
- An n8n instance.
Installation
- Go to your n8n instance.
- Go to Settings > Community Nodes.
- Click Install a community node.
- Enter
n8n-nodes-wpformsin the npm package name field. - Click Install.
Configuration
- In your n8n workflow, add the WPForms Trigger node.
- Configure the node settings:
- Secret Key: Enter a secret key. This key must match the secret key configured in your WPForms n8n addon settings. It is used to verify the integrity of the data received.
- Timestamp Skew: Set the allowed time difference in seconds between your server and the WPForms server. The default is 300 seconds.
- Output Schema: Choose the output format. 'Default' provides a structured JSON object, while 'Raw' provides the raw request body and headers.
- The node will display a webhook URL. Copy this URL.
- In the Form Builder, go to the Marketing > n8n tab.
- Enable n8n integration.
- Paste the webhook URL from n8n.
- Copy Secret Key and paste it to the WPForms Trigger node.
- Save your form settings.
Usage
Now, whenever the selected form is submitted, it will trigger your n8n workflow. The form data will be available in the node's output.
Development Workflow
In Linux/MacOS or Windows using PS 7 shell:
cd /path/to/wpforms-n8n-nodes/
# Build and link after changes
npm run build && npm link
# Watch for changes during development
npm run dev
In your n8n instance, re-link the node and restart n8n:
cd ~/.n8n/custom
# Re-link node and restart n8n:
npm link n8n-nodes-wpforms && n8n start
Testing Your Node
# Check for linting errors
npm run lint
# Auto-fix linting errors when possible
npm run lintfix
Publishing
First you need to bump the version. This needs to be reflected both in the package.json & the package-lock.json.
Next, you need to push the change in the main branch and also create a tag starting with v, e.g. v0.1.3
We are publishing automatically to npm each time a tag is pushed in the repo.
Alongside that, a GitHub Release is also created.
More information
Refer to our documentation on creating nodes for detailed information on building your own nodes.