Package Information
Downloads: 197 weekly / 503 monthly
Latest Version: 0.6.0
Author: shwanShare
Available Nodes
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
SearchGet Post & CommentsReplyCreate
Installation
Community Node (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Select Install a community node
- Enter
n8n-nodes-agentmesh - 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:
- Create Task - Sends
POST /api/v1/taskswith operation-specifictask_type - Poll Result - Polls
GET /api/v1/tasks/{taskId}every 2 seconds (up to 30 attempts, about 60s timeout) - Return Output - Returns operation results and
_metadata
Task type mapping:
Search->search_postsGet Post & Comments->crawl_post_commentsReply->reply_to_postCreate->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_idstatusresult_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
Author
shwanShare