agentmesh

n8n community node for AgentMesh - Search Reddit posts via async task processing

Package Information

Downloads: 197 weekly / 503 monthly
Latest Version: 0.6.0
Author: shwanShare

Documentation

n8n-nodes-agentmesh

This is an n8n community node that integrates with the AgentMesh API for Reddit automation via async task processing.

Features

  • Search Reddit posts by query keywords
  • Get comments from a specific Reddit post
  • Reply to a Reddit post or a specific comment
  • Create new Reddit posts (support draft and optional flair text)
  • Async task processing with automatic polling

Supported Resource and Operations

Resource

  • Post

Operations

  • Search
  • Get Post & Comments
  • Reply
  • Create

Installation

Community Node (Recommended)

  1. Go to Settings > Community Nodes in your n8n instance
  2. Select Install a community node
  3. Enter n8n-nodes-agentmesh
  4. Agree to the risks and click Install

Manual Installation

cd ~/.n8n/custom
npm install n8n-nodes-agentmesh

Or link locally for development:

cd /path/to/n8n-nodes-agentmesh
npm install
npm run build
npm link

cd ~/.n8n
npm link n8n-nodes-agentmesh

Then restart n8n.

Credentials

You need to configure an AgentMesh API credential with:

Field Description Default
API Key Your AgentMesh API key (sk_xxx...)
Base URL The API server base URL https://agentmesh.cc

Operation Parameters

Search

Parameter Type Required Default Description
Sort Type Options Yes hot Sort order: Best, Hot, New, Top, Rising
Query String No Search keyword (for example AI Agents)
Subreddit String No all Target subreddit. Use all for global search
Limit Number No 10 Max results to return (1-100)

Get Post & Comments

Parameter Type Required Default Description
Post URL String Yes URL of the Reddit post
Limit Number No 10 Max comments to return (1-100)

Reply

Parameter Type Required Default Description
Post URL String Yes URL of the Reddit post to reply to
Reply Text String Yes Reply content
Parent Comment ID String No Reply to this comment ID if provided; empty means reply to the post

Create

Parameter Type Required Default Description
Subreddit String Yes Target subreddit
Title String Yes Post title
Text String No "" Post body text
Flair Text String No "" Optional flair text
Draft Boolean No false Save as draft instead of publishing immediately

How It Works

The node uses an async task pattern:

  1. Create Task - Sends POST /api/v1/tasks with operation-specific task_type
  2. Poll Result - Polls GET /api/v1/tasks/{taskId} every 2 seconds (up to 30 attempts, about 60s timeout)
  3. Return Output - Returns operation results and _meta data

Task type mapping:

  • Search -> search_posts
  • Get Post & Comments -> crawl_post_comments
  • Reply -> reply_to_post
  • Create -> create_post

Output

Search / Get Post & Comments

When result.items is returned, each item becomes one n8n output item, with _meta attached.

Reply / Create

Returns a single output item containing:

  • task_id
  • status
  • result
  • _meta (operation-specific metadata)

Project Structure

n8n-nodes-agentmesh/
├── credentials/
│   └── AgentMeshApi.credentials.ts
├── nodes/
│   └── AgentMesh/
│       └── AgentMesh.node.ts
├── package.json
├── tsconfig.json
└── README.md

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run build:watch

License

MIT

Author

shwanShare

Discussion