How to use n8n - Installation guide
Overview
This guide covers installing and using n8n with Resayil- رسائل to automate WhatsApp workflows through their API.
Prerequisites
- Command line interface familiarity
- Node.js 16 or newer (install here)
- npm or yarn package manager (comes with Node.js)
Installing n8n
Mac/Linux
- Open Terminal
- Install globally via npm:
npm install n8n -gor yarn:yarn global add n8n - Start with:
n8n start
Windows
- Open Command Prompt or PowerShell as Administrator
- Install:
npm install n8n -g - Start:
n8n start
Update to latest: npm install -g n8n@latest
n8n Automation Use Cases
The platform enables 23+ workflow types including ticket creation, FAQ bots, lead routing, cart recovery, appointment reminders, and payment processing through WhatsApp automation.
Installing Resayil Plugin
Download plugin source files from the help center.
Mac/Linux Installation
- Download the ZIP file
- Find n8n directory:
npm list -g n8n - Unzip:
unzip n8n-nodes-resayil.zip -d ~/Downloads/n8n-nodes-resayil - Install dependencies:
cd ~/Downloads/n8n-nodes-resayil && npm install - Copy to n8n:
cp -r ~/Downloads/n8n-nodes-resayil /usr/local/lib/node_modules/n8n/node_modules/ - Restart n8n
Windows Installation
- Download ZIP file
- Find directory:
npm list -g n8n - Extract to temporary location
- Install dependencies with Command Prompt or PowerShell
- Copy using
xcopy(Command Prompt) orCopy-Item(PowerShell) - Start n8n
Verification
- Navigate to
http://localhost:5678 - Create new workflow
- Search for "Resayil- رسائل" in nodes panel
- Plugin should appear for selection
Troubleshooting
- Ensure complete n8n restart if nodes don't appear
- Check folder permissions for "access denied" errors
- Verify plugin placement in node_modules directory
- Docker users must mount plugin folder to container
Webhook Configuration
Understanding Webhooks
n8n generates URLs from protocol, host, and port settings. For public access, manually set webhook URLs.
Setting URLs (Temporary)
Mac/Linux:
export WEBHOOK_URL=https://your-domain.com/
n8n start
Windows Command Prompt:
set WEBHOOK_URL=https://your-domain.com/
n8n start
Windows PowerShell:
$env:WEBHOOK_URL = "https://your-domain.com/"
n8n start
Permanent Configuration
Mac/Linux: Add to shell config: echo 'export WEBHOOK_URL=https://your-domain.com/' >> ~/.bashrc
Windows: Set system environment variable through Properties → Advanced system settings → Environment Variables
Using ngrok for Testing
Installation
- Mac:
brew install ngrok - Linux: Follow ngrok instructions
- Windows: Download from ngrok.com
Setup
- Create account at ngrok.com
- Get auth token from dashboard
- Configure:
ngrok authtoken YOUR_AUTH_TOKEN
Using with n8n
- Start n8n:
n8n start - In new terminal:
ngrok http 5678 - Note the URL (e.g.,
https://abc123.ngrok.io) - Set webhook URL and restart n8n
Note: Free ngrok sessions expire after hours; URLs change on restart. Use permanent domains for production.