n8n Integrationn8n Integration Setup

n8n Integration Setup

Install and configure the SocialRails n8n community node.

npm version n8n community node

The SocialRails n8n community node lets you schedule posts, view analytics, generate AI content, and manage connected accounts from your n8n workflows.

Installation

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Enter n8n-nodes-socialrails
  4. Click Install

npm CLI

cd ~/.n8n/nodes
npm install n8n-nodes-socialrails

Then restart n8n.

Docker

Add to your Dockerfile:

RUN cd /home/node/.n8n/nodes && npm install n8n-nodes-socialrails

Or set the environment variable:

EXTRA_NODE_MODULES=n8n-nodes-socialrails

Authentication

  1. Log in to your SocialRails Dashboard
  2. Navigate to Settings > API Keys
  3. Click Create API Key and select scopes:
    • read — list posts, accounts, analytics, workspace info
    • write — create, update, delete posts and upload media
    • ai — generate AI content (costs 2 credits per request)
  4. Copy the key (starts with sr_live_)
  5. In n8n, add a new SocialRails API credential and paste the key

API access is available on all paid plans (Creator, Business, Agency).

Your First Workflow

A simple workflow to generate and schedule an AI post:

  1. Schedule Trigger — fires at your desired time
  2. SocialRails: AI Generate — prompt: "Write a professional LinkedIn post about productivity"
  3. SocialRails: Post Create — use the generated content, set platform to LinkedIn

Workflow Examples

Content Calendar Automation

Automatically schedule posts for the week:

  1. Schedule Trigger — fires every Monday at 9 AM
  2. SocialRails: AI Generate — create content for each weekday
  3. SocialRails: Post Create — schedule each post with a date

AI-Powered Social from RSS

Generate and schedule an AI post when a new blog article is published:

  1. RSS Feed Trigger — watch your blog RSS
  2. SocialRails: AI Generate — prompt: "Summarize this blog post for Twitter: (use the title from RSS)"
  3. SocialRails: Post Create — schedule the generated content

Cross-Platform Publishing

Post the same content across all connected platforms:

  1. Webhook Trigger — receive content from your CMS
  2. SocialRails: Account List — get all connected platforms
  3. Loop — for each account, create a post with platform-appropriate settings

Next Steps

See the n8n Operations Reference for all available operations and platform notes.