n8n-nodes-formhook
v0.1.1
Published
n8n community node package with FormHook node for receiving form data with text and image inputs
Maintainers
Keywords
Readme
n8n-nodes-formhook
n8n community node package with FormHook node for receiving form data with text and image inputs.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-formhookFeatures
Form Hook Node
A webhook node that receives form data with support for:
Text Input:
- ✅ Keyboard input
- ✅ Paste text
- ✅ Drag and drop text files
Image Input:
- ✅ Paste image on hover
- ✅ Click to select image file
- ✅ Drag and drop image files
Usage
1. Add Form Hook Node
- Create a new workflow in n8n
- Add the "Form Hook" node from the node panel
- Configure the node:
- Path: Webhook path (default:
formhook) - Response Mode: Choose how to handle webhook response
- Path: Webhook path (default:
2. Activate Workflow
- Click "Activate" button
- Copy the generated webhook URL (e.g.,
http://localhost:5678/webhook/formhook)
3. Use HTML Form
Use the provided HTML form (nodes/FormHook/form.html) or send POST requests directly:
curl -X POST http://localhost:5678/webhook/formhook \
-F "text=Your text here" \
-F "image=@/path/to/image.png"4. Receive Data
The node outputs data in the following format:
{
"text": "User input text",
"timestamp": "2024-01-01T00:00:00.000Z",
"image": {
"data": "base64 encoded image data",
"mimeType": "image/png",
"fileName": "image.png"
}
}HTML Form
The package includes a complete HTML form (nodes/FormHook/form.html) with:
- Modern, responsive UI
- Support for all input methods
- Drag and drop functionality
- Image preview
- Form validation
To use the HTML form:
- Deploy
nodes/FormHook/form.htmlto your web server - Set the webhook URL in the form
- Users can access the form to submit data
Development
Setup
npm installBuild
npm run buildDevelopment Mode
npm run devThis starts n8n with your node loaded and hot reload enabled.
Lint
npm run lint
npm run lint:fix