@a700/n8n-nodes-agent700
v1.2.2
Published
Agent700 AI integration nodes for n8n workflow automation
Downloads
185
Maintainers
Readme
Agent700 n8n Custom Nodes
Production-ready custom n8n nodes for integrating with the Agent700 API. These nodes provide seamless authentication, chat interactions, context management, and more.
Table of Contents
Installation
Install from npm (recommended for production)
Install the package in your n8n instance (or in your n8n project if using embedded nodes):
npm install @a700/n8n-nodes-agent700- Package: @a700/n8n-nodes-agent700
- Restart n8n after installing. The nodes appear as Agent700 Agent and Agent700 Context Library.
Prerequisites
- n8n installed and running
- Node.js 18+ and npm
- Agent700 account credentials
Build from source (optional)
To build and run from the repository:
git clone https://github.com/Agent700-ai/Agent700-n8n.git
cd Agent700-n8n
npm install
npm run buildThis compiles TypeScript to JavaScript in the dist/ folder.
Manual installation (Docker / custom path)
Choose the installation method that matches your n8n setup:
Option 1: Docker Setup (Recommended for Testing)
If you're using Docker Compose, you have two options:
Option A: Volume Mount (Recommended)
Update your
docker-compose.ymlto mount the built package:volumes: - ./n8n-data:/home/node/.n8n/data - ./Agent700-n8n:/home/node/.n8n/custom/Agent700-n8nRestart your containers:
docker-compose down docker-compose up -dInstall dependencies inside the container:
docker exec <CONTAINER_NAME> sh -c "cd /home/node/.n8n/custom/Agent700-n8n && npm install --production"
Option B: Copy into Container
Find your n8n container:
docker ps | grep n8nCopy the built package into the container:
docker cp Agent700-n8n <CONTAINER_NAME>:/home/node/.n8n/custom/Install dependencies inside container:
docker exec <CONTAINER_NAME> sh -c "cd /home/node/.n8n/custom/Agent700-n8n && npm install --production"Restart container:
docker restart <CONTAINER_NAME>
Option 2: Local n8n Installation (Non-Docker)
If you have n8n installed locally (not in Docker):
Copy to n8n custom directory:
# Find your n8n custom directory (usually ~/.n8n/custom) cp -r Agent700-n8n ~/.n8n/custom/ # Install production dependencies cd ~/.n8n/custom/Agent700-n8n npm install --productionSet environment variable (if needed):
export N8N_CUSTOM_EXTENSIONS=~/.n8n/customRestart n8n:
# If running as service systemctl restart n8n # Or if running manually n8n start
Option 3: Using npm link (For Development)
For active development with hot reloading:
Build and link your package:
cd Agent700-n8n npm install npm run build npm linkLink in n8n directory:
# If n8n is installed globally cd $(npm root -g)/n8n npm link @a700/n8n-nodes-agent700 # Or if n8n is in a specific directory cd /path/to/n8n npm link @a700/n8n-nodes-agent700Restart n8n
Note: After making code changes, rebuild (npm run build) and restart n8n for changes to take effect.
Verify Installation
After installation, verify everything works:
Check nodes appear in n8n UI:
- Open n8n interface (typically
http://localhost:5678) - Create a new workflow
- Search for "Agent700" - you should see all nodes available:
- Agent700 Agent
- Agent700 Context Library
- Open n8n interface (typically
Check n8n logs for errors:
# Docker docker logs <CONTAINER_NAME> # Local n8n start --log-level=debug
Troubleshooting Installation
Nodes don't appear:
- Verify
dist/folder exists and contains.node.jsfiles - Check
package.jsonhas correctn8n.nodesarray - Ensure file permissions are correct (Docker: check container user permissions)
- Restart n8n after installation
- Check n8n logs for specific error messages
Dependencies missing:
- Run
npm install --productionin the custom nodes directory - For Docker:
docker exec <CONTAINER> sh -c "cd /home/node/.n8n/custom/Agent700-n8n && npm install --production"
Build errors:
- Ensure TypeScript is installed:
npm install - Check for TypeScript errors:
npm run build - Verify Node.js version is 18+
Authentication
How Authentication Works
All Agent700 nodes authenticate using an App Password configured directly in the node parameters. Nodes automatically handle authentication on each request - no manual token copying needed!
Setting Up Authentication
Get your App Password from the Agent700 web interface
- Format:
app_a7_followed by 32 characters - Example:
app_a7_12345678901234567890123456789012
- Format:
Configure in Node Parameters:
- Base URL:
https://api.agent700.ai(default) - App Password: Your app password token (required)
- Nodes automatically use this to obtain access tokens
- Base URL:
Authentication Flow
- Node sends App Password to
/api/auth/app-login - API returns an access token
- Node uses Bearer token for all subsequent API calls
- Token is obtained fresh for each execution
Node Documentation
1. Agent700 Agent
Purpose: Send messages to agents and get structured responses
Key Features:
- Auto-authenticates using App Password
- Agent ID via manual entry
- Simplify output option for cleaner responses
- Full n8n UX guidelines compliance
Parameters:
- Base URL:
https://api.agent700.ai(default) - App Password (required): Your Agent700 app password token
- Resource: Chat (single resource)
- Operation: Send Message
- Agent ID (optional): Enter the Agent UUID manually
- Message (required): Your message to send
- Simplify (default: true): Return simplified output with key fields only
Output (Simplified):
{
"response": "Agent response",
"finish_reason": "stop",
"scrubbed_message": "...",
"error": null,
"prompt_tokens": 100,
"completion_tokens": 50
}Output (Full): Returns complete API response with all fields.
Example:
1. Add "Agent700 Agent" node
2. Enter App Password
3. Enter Agent ID (UUID from Agent700 web interface)
4. Enter message: "What is AI?"
5. Enable Simplify for cleaner output (optional)
6. Execute2. Agent700 Context Library
Purpose: Manage alignment data (key-value storage) with encryption at rest
Key Features:
- Full CRUD operations following n8n vocabulary
- Pattern matching and query operations
- JSON construction from patterns
- Auto-authenticates using App Password
Resource: Entry
Operations:
- Get: Retrieve a single entry by key
- Get Many: List all entries
- Create: Create a new entry
- Update: Update an existing entry (with optional key renaming)
- Upsert: Create or update an entry (upsert)
- Delete: Delete an entry (returns
{ deleted: true, key }) - Query: List key/value pairs matching a pattern
- Query + Construct: Construct JSON from pattern matches using a template
Example (Upsert):
1. Add "Agent700 Context Library" node
2. Enter App Password
3. Resource: Entry
4. Operation: "Upsert"
5. Key: "user_preference"
6. Value: {"theme": "dark_mode"}
7. ExecuteExample (Delete):
1. Operation: "Delete"
2. Key: "old_key"
3. Returns: { "deleted": true, "key": "old_key" }Workflow Examples
Example 1: Simple Chat Workflow
Use Case: One-off questions, simple Q&A
Steps:
- Manual Trigger → Start workflow
- Agent700 Agent → Send message
- Enter App Password
- Select Agent ID
- Message: "What is machine learning?"
- Display Response → Show result
Node Flow:
Manual Trigger → Agent700 Agent → Display ResponseWhen to Use:
- Quick questions
- Single message interactions
- No conversation history needed
Example 2: Chat with Conversation Context
Use Case: Multi-turn conversations, follow-up questions
Note: Conversation context feature is not available in v2. For multi-turn conversations, manually include previous messages in your prompt or use the Context Library to store conversation history.
Steps:
- Manual Trigger → Start workflow
- Agent700 Agent → First message
- Enter App Password
- Select Agent ID
- Message: "Explain quantum computing"
- Agent700 Agent → Follow-up
- Include previous context in message
- Message: "Based on your previous explanation, how does it differ from classical computing?"
- Display Response → Show result
Node Flow:
Manual Trigger → Agent700 Agent → Agent700 Agent (with context) → DisplayExample 3: URL Evaluation Workflow
Use Case: Content analysis, privacy policy scanning, URL validation
Steps:
- Manual Trigger → Start workflow
- Get URLs → Retrieve URLs (from Context Library or input)
- Split in Batches → Process one at a time
- Agent700 Agent → Evaluate each URL
- Message: "Analyze this URL for privacy concerns: {{$json.url}}"
- Save Results → Store in Context Library
- Aggregate → Combine all evaluations
Node Flow:
Trigger → Get URLs → Split → Chat → Save → AggregateAdvanced Version:
Trigger → Context Library (List) → Loop → Chat → Context Library (Upsert) → SummaryExample 4: Context Library Management Workflow
Use Case: Dynamic context injection, data-driven conversations
Steps:
- Manual Trigger → Start workflow
- Agent700 Context Library → List all data
- Operation: "List All Data"
- Process Data → Filter/transform as needed
- Agent700 Context Library → Upsert new data
- Operation: "Upsert Data"
- Key: "user_context"
- Value: "{{$json.processed_data}}"
- Agent700 Agent → Use context in conversation
- Message: "Based on this context: {{$json.user_context}}, answer my question"
Node Flow:
Trigger → Context Library (List) → Process → Context Library (Upsert) → ChatExample 8: Error Handling Workflow
Use Case: Production workflows, reliability-critical applications
Steps:
- Manual Trigger → Start workflow
- Agent700 Agent → Attempt chat
- Error Handler → Catch errors
- Retry Logic → Retry on failure (with delay)
- Fallback Response → Use cached/default response if all retries fail
Node Flow:
Trigger → Chat → Error Handler → Retry → FallbackImplementation Tips:
- Use "Continue on Fail" option in nodes
- Implement retry with exponential backoff
- Cache successful responses for fallback
Example 9: Batch Processing Workflow
Use Case: Bulk operations, data processing pipelines
Steps:
- Manual Trigger → Start workflow
- Get Items → Retrieve items to process (from Context Library, database, etc.)
- Split in Batches → Process in batches
- Agent700 Agent → Process each item
- Message: "Process this item: {{$json.item}}"
- Aggregate Results → Combine all results
- Save → Store aggregated results
Node Flow:
Trigger → Get Items → Split → Chat (per item) → Aggregate → SavePerformance Tips:
- Process in parallel batches
- Use Continue on Fail for individual items
- Aggregate results efficiently
Best Practices
When to Use Which Node
- Agent Node: Regular chat interactions, sending messages to agents
- Context Library Node: Data storage, context injection, pattern matching
Authentication Management
Use App Passwords
- Required for all nodes
- Can be revoked individually
- Better audit trail
- Format:
app_a7_+ 32 characters
Store App Passwords Securely
- Use n8n's parameter encryption
- Never hard-code in workflows
- Rotate app passwords regularly
- Consider using n8n environment variables for sensitive values
One App Password Per Environment
- Separate app passwords for dev/staging/prod
- Use different Agent IDs per environment
Error Handling
Enable Continue on Fail
- For batch processing
- When individual failures shouldn't stop workflow
Implement Retry Logic
- For transient errors (network, timeouts)
- Use exponential backoff
Log Errors Properly
- Use n8n's error handling
- Store error details in Context Library for debugging
Performance Tips
Message Context
- Include previous messages manually in prompts when needed
- Use Context Library to store conversation history
- Limit context size to avoid token limits
Batch Processing
- Process items in parallel when possible
- Use Split in Batches node
- Aggregate results efficiently
Caching
- Cache agent configs in Context Library
- Cache frequently accessed data
- Use workflow static data for session management
Security
SSL/TLS Configuration
- Use "Strict SSL" in production
- Only disable for development/testing
Token Management
- Tokens auto-refresh via credentials
Data Privacy
- Be careful with PII in messages
- Use Context Library encryption features
- Review scrubbed_message in responses
Troubleshooting
Common Issues
Authentication Fails
Symptoms:
- "Authentication failed" errors
- 401 Unauthorized responses
- "App login did not return accessToken" errors
Solutions:
- Verify App Password is correct (format:
app_a7_+ 32 chars) - Check API Base URL is correct (
https://api.agent700.ai) - Verify App Password is valid in Agent700 web interface
- Try creating a new app password
- Check network connectivity
- Ensure App Password parameter is set in node (not empty)
Node Not Appearing
Symptoms:
- Can't find Agent700 nodes in n8n
Solutions:
- Verify installation path is correct (see Installation section)
- Check
dist/folder exists and contains compiled.node.jsfiles - Verify
package.jsonn8n.nodes array matches actual file paths - Check file permissions (Docker: ensure container user can read files)
- Restart n8n after installation
- Check n8n logs for errors:
docker logs <CONTAINER>orn8n start --log-level=debug - Verify TypeScript compiled successfully (
npm run build) - For Docker: Ensure volume mount path is correct in
docker-compose.yml - Install dependencies:
npm install --productionin the custom nodes directory
Agent ID Not Found
Symptoms:
- "Agent not found" errors
Solutions:
- Verify the Agent UUID is correct (copy from Agent700 web interface)
- Verify App Password is correct and has access to the agent
- Check you have access to agents in Agent700 account
- Verify API Base URL is correct
API Errors
Symptoms:
- 4xx/5xx HTTP errors
- "API Error" messages
Solutions:
- Check error details in node output
- Verify Agent UUID is correct
- Check API rate limits
- Review API documentation for endpoint changes
- Enable Continue on Fail to see detailed errors
SSL/TLS Issues
Symptoms:
- Certificate errors
- Connection refused
Solutions:
- Use "Strict SSL" in production
- Check API Base URL uses HTTPS
- Verify certificate is valid
- Only use "Allow Self-Signed" for development
Debugging Tips
Check Node Output
- Look at
jsonoutput for error details - Check
statusfield for operation results
- Look at
Enable Continue on Fail
- See what errors occur
- Don't stop workflow on first error
Use Context Library for Logging
- Store debug information
- Track workflow execution
Test Individual Nodes
- Test each node separately
- Verify credentials work
- Check API connectivity
Getting Help
Check n8n Logs
- Look for error messages
- Check execution logs
Review API Documentation
- Agent700 API docs
- n8n node development docs
Test with Simple Workflow
- Start with basic chat
- Add complexity gradually
Workflow Templates
Ready-to-use workflow templates are available in the workflows/ folder:
simple-chat.json- Basic chat workflowchat-with-context.json- Conversation context exampleurl-evaluation.json- URL evaluation workflowcontext-library-management.json- Context Library operationserror-handling.json- Error handling examplebatch-processing.json- Batch processing workflow
Note: Workflow templates from v1 may need updates for v2:
- Replace credential references with App Password parameter
- Update node type names (
agent700Chat→agent700Agent) - Update operation names in Context Library node
To import:
- In n8n, go to Workflows → Import from File
- Select the JSON file from
workflows/folder - Configure App Password in each node
- Update Agent IDs if needed
- Execute and customize
License
MIT License - see LICENSE file for details.
Support
- Check n8n documentation for general n8n issues
- Review Agent700 API documentation for API-specific issues
- Create issues in the repository for bugs or feature requests
