Integrationsn8n Integration

n8n – LinkedIn Posts

Configure n8n nodes for ConnectSafely LinkedIn post automation.

Collect and engage with LinkedIn content automatically. Each node mirrors the behaviour found in the ConnectSafely app.

Get Latest Posts

Get posts workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (default account if blank).
profileIdstringNoLinkedIn profile ID.
profileUrnstringNoProfile URN alternative.
countnumberNoNumber of posts (1–20, default 1).
includeRepostsbooleanNoInclude reposts (default true).

Tips

  • Combine with the Search node to monitor multiple thought leaders.
  • Store the activityUrn for follow-up engagement.

React to Post

React workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID.
postUrlstringYesLinkedIn post URL.
reactionTypeoptionsNoLIKE, PRAISE, APPRECIATION, EMPATHY, INTEREST, ENTERTAINMENT.

Tips

  • Randomise reactions to mimic natural behaviour.
  • Pair with “Get Latest Posts” for always-on engagement.

Comment on Post

Comment workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID.
postUrlstringYesLinkedIn post URL.
commentstringYesComment text.

Tips

  • Keep comments authentic and value-driven.
  • Use expression functions to mention the author by name.

Get Post Comments

Comments workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID.
postUrlstringYesLinkedIn post URL.
maxCommentsnumberNoTotal comments to fetch (10–5000, default 1000).
batchSizenumberNoBatch size (10–100, default 50).

Tips

  • Enable sentiment analysis by piping results into AI nodes.
  • Fetch comments daily to keep CRM notes fresh.

Get All Post Comments

Get all comments workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided).
postUrlstringYesLinkedIn post URL.
maxCommentsnumberNoMaximum total comments to fetch (10–5000, default 1000).
batchSizenumberNoNumber of comments to fetch per batch (10–100, default 50).

Tips

  • Automatically handles pagination to fetch all comments.
  • Returns summary with total count and fetch duration.
  • Use for comprehensive comment analysis and monitoring.
  • More efficient than manual pagination with Get Post Comments.

Search Posts

Search workflow

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID.
keywordsstringYesSearch keywords.
countnumberNoNumber of posts (1–50, default 10).
startnumberNoPagination offset (default 0).
datePostedoptionsNopast-24h, past-week, past-month, any-time.
sortByoptionsNorelevance or date_posted.

Tips

  • Filter by recency to curate topical content.
  • Use author job-title filters inside the API endpoint for hyper-targeting.

Scrape Post Content

Scrape workflow

FieldTypeRequiredDescription
postUrlstringYesPublic LinkedIn post URL.

Tips

  • No authentication required—perfect for quick previews.
  • Use to enrich CRM notes or to summarise post content with AI nodes.