n8n-nodes-relaystack
v0.2.3
Published
n8n community node package for RelayStack API - messaging automation platform
Downloads
1,157
Maintainers
Readme
n8n-nodes-relaystack
n8n community node package for RelayStack API — messaging automation platform.
Installation
Option 1: n8n Community Nodes (n8n >= 1.x)
- Go to Settings > Community Nodes in your n8n instance
- Enter the npm package name:
n8n-nodes-relaystack - Click Install
Option 2: Local Development
# Clone the repository
git clone <repo-url>
cd n8n-nodes-relaystack
# Install dependencies
npm install
# Build the package
npm run build
# Link to your local n8n
npm link
# Then in your n8n directory:
npm link n8n-nodes-relaystackOption 3: Custom Nodes Directory
Copy the dist/ folder contents to your n8n custom nodes directory:
cp -r dist/* ~/.n8n/custom/nodes/Credential Setup
- In n8n, create a new RelayStack API credential
- Enter your RelayStack server Base URL (e.g.,
https://relaystack.example.com) - Enter your API Key (provided by your RelayStack instance)
- The API key is sent as a Bearer token in the
Authorizationheader
Nodes
RelayStack Node
Action node with four resources:
| Resource | Operations | |----------|-----------| | Instance | Create, List, Get, Delete, Connect, Disconnect, Get Status, Send Login Code, Verify Code, Verify 2FA Password | | Message | Send Text | | Chat | List Chats, Get Chat Messages | | Event | Set Webhook, Get Webhook, Delete Webhook, Test Webhook |
RelayStack Trigger Node
Receives events from RelayStack via webhook. Supports filtering by event type:
- All Events — receive everything
- Message Received — new incoming messages
- Message Sent — outgoing message confirmations
- Connection Status Changed — instance connection state changes
- Authentication Required — when re-authentication is needed
Usage Examples
Send a Message
- Add a RelayStack node to your workflow
- Select resource Instance > operation Create and set an instance name
- Add another RelayStack node with Instance > Send Login Code with your phone number
- Add Instance > Verify Code with the OTP you received
- (Optional) Add Instance > Verify Password if 2FA is enabled
- Add a RelayStack node with resource Message > Send Text, set the chat ID and message
Trigger Workflow on Incoming Message
- Add a RelayStack Trigger node as the workflow trigger
- Select the instance name and event type
- Connect downstream nodes to process the event data
- Activate the workflow — n8n automatically registers the webhook URL with RelayStack
Known MVP Limitations
- Text messages only — media, files, and location messages are not supported in MVP
- No batch operations — each message is sent individually
- No npm publishing — install via local methods or community node settings
- Webhook secret validation — optional HMAC validation is not yet exposed in the UI
Development
# Build TypeScript
npm run build
# Run linter
npm run lint
# Run tests
npm test
# Run unit tests only
npm run test:unit
# Run integration tests only
npm run test:integrationLicense
MIT
