Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n8n-nodes-octagon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Octagon for n8n
A professional n8n node that integrates with Octagon's AI Agents API for financial and market research. This node provides access to Octagon's specialized AI agents for analyzing SEC filings, earnings transcripts, stock data, private market intelligence, and more.
Features
- 🔄 Smart Router Agent: Octagon Agent automatically routes queries to the most appropriate specialized agent
- 15 Specialized Agents: Access to all Octagon's AI agents for different research domains
- 🔒 Secure Authentication: Built-in credential management for API keys
- 📊 Rich Output: Returns analysis with source citations and metadata
- ⚡ Simplified Interface: Clean, professional UI with essential options only
- 🛡️ Error Handling: Graceful error handling with detailed error messages
Available Agents
🔄 Smart Router (Default)
- Octagon Agent (
octagon-agent) - Intelligent router that automatically selects the best specialized agent for your query
📈 Public Market Agents
- SEC Filings Agent (
octagon-sec-agent) - Analyzes SEC filings data - Transcripts Agent (
octagon-transcripts-agent) - Analyzes earnings call transcripts - Stock Data Agent (
octagon-stock-data-agent) - Analyzes stock market data - Financials Agent (
octagon-financials-agent) - Analyzes financial statements - Holdings Agent (
octagon-holdings-agent) - Analyzes institutional ownership and holdings - Crypto Agent (
octagon-crypto-agent) - Analyzes cryptocurrency market data
🏢 Private Market Agents
- Companies Agent (
octagon-companies-agent) - Provides private company information - Funding Agent (
octagon-funding-agent) - Analyzes private company funding data - Funds Agent (
octagon-funds-agent) - Analyzes private funds - Deals Agent (
octagon-deals-agent) - Analyzes M&A and IPO data - Investors Agent (
octagon-investors-agent) - Provides investor information - Debts Agent (
octagon-debts-agent) - Analyzes private debts, borrowers, and lenders
🔍 Research Agents
- Scraper Agent (
octagon-scraper-agent) - Extracts data from websites - Deep Research Agent (
octagon-deep-research-agent) - Conducts in-depth research
Installation
Prerequisites
Octagon API Key: Get your free API key from Octagon
- Sign up for an account
- Go to Settings → API Keys
- Create a new API key
n8n Installation: This node requires n8n v0.198.0 or higher
Install the Node
Method 1: Install from npm (when published)
npm install n8n-nodes-octagonMethod 2: Install from local package
# Install the packaged node
npm install -g ./n8n-nodes-octagon-1.0.0.tgz
# Or install from the project directory
npm install -g /path/to/n8n-octagon-nodeMethod 3: Docker Installation
FROM n8nio/n8n:latest
# Copy and install the custom node
COPY n8n-nodes-octagon-1.0.0.tgz /tmp/
USER root
RUN cd /usr/local/lib/node_modules/n8n && \
npm install /tmp/n8n-nodes-octagon-1.0.0.tgz
USER nodeUsage
Quick Start
- Add Node: Search for "Octagon" in n8n workflow
- Configure:
- Add Credentials: Go to Credentials → "Octagon API"
- Agent: Use "Octagon Agent (Router)" for automatic routing (default)
- Query: Enter your financial research question
- Execute: Run the workflow to get AI-powered analysis with citations
Node Configuration
The node interface is clean and simple:
- 🎯 Agent: Select from router or 14 specialized agents
- 💬 Query: Your research question (supports complex queries)
- ⚙️ Additional Options:
- Include Token Usage (optional)
Example Queries
Universal Queries (using Octagon Agent Router)
Tell me about Apple's latest earnings performance
What's happening with Tesla's stock price?
Analyze SpaceX's latest funding round
Compare Microsoft vs Google revenue growthSpecialized Agent Queries
# SEC Filings Agent
What were Apple's revenue numbers in Q3 2023?
Analyze Tesla's latest 10-K filing for risk factors
# Transcripts Agent
What did Apple's CEO say about iPhone sales in the latest earnings call?
Analyze management guidance from Tesla's Q4 2023 earnings call
# Stock Data Agent
What's the 52-week high and low for AAPL?
Compare Tesla's stock performance to the S&P 500 this year
# Companies Agent (Private Market)
Tell me about Stripe's latest funding round
What is the current valuation of SpaceX?Output Format
The node returns a JSON object with the following structure:
{
"agent": "octagon-agent",
"query": "Tell me about Apple's latest earnings",
"analysis": "Apple reported strong Q4 2023 results with revenue of $89.5 billion...",
"sources": [
{
"order": 1,
"name": "Apple Inc. (10-Q) - 2023-Q4, Page: 10",
"url": "https://octagon-sec-filings.s3.amazonaws.com/..."
}
],
"metadata": {
"apiType": "responses",
"timestamp": "2024-01-15T10:30:00.000Z"
},
"usage": {
"prompt_tokens": 150,
"completion_tokens": 800,
"total_tokens": 950
}
}Best Practices
- 🎯 Use the Router: Start with "Octagon Agent (Router)" - it automatically selects the best specialized agent
- 📝 Be Specific: The more specific your query, the more accurate the response
- 🔄 One Task Per Query: Focus each query on a single analytical task for best results
- 📅 Provide Context: Include relevant context like time periods, specific metrics, or companies
- 🔗 Follow Citations: Always check the source citations for verification
Error Handling
The node includes comprehensive error handling:
- 🔑 Authentication Errors: Invalid API keys, expired tokens
- 🌐 Network Errors: Connection issues, timeouts, rate limits
- 📝 Query Errors: Malformed or empty queries
- 🤖 Agent Errors: Agent-specific errors or limitations
Errors are returned in a structured format:
{
"error": true,
"message": "Authentication failed. Please check your API key.",
"query": "Your original query",
"agent": "octagon-agent",
"timestamp": "2024-01-15T10:30:00.000Z"
}Development
Building from Source
git clone https://github.com/octagon/octagon-n8n-node.git
cd octagon-n8n-node
npm install
npm run buildDevelopment Mode
npm run dev # Watch mode for developmentPackage for Distribution
npm run package # Creates .tgz fileLocal Development & Testing
Prerequisites for Local Development
- Install n8n globally:
npm install -g n8n- Clone and build the node:
git clone https://github.com/octagon/octagon-n8n-node.git
cd octagon-n8n-node
npm install
npm run buildMethod 1: Custom Extensions (Recommended for Development)
This method loads the node directly from your development directory:
# Start n8n with custom extensions path
N8N_CUSTOM_EXTENSIONS=/path/to/octagon-n8n-node n8n start
# Example (adjust path to your actual directory):
N8N_CUSTOM_EXTENSIONS=/Users/yourname/Desktop/octagon-n8n-node n8n startAdvantages:
- ✅ No need to reinstall after changes
- ✅ Perfect for development and testing
- ✅ Changes reflect immediately after rebuild
Method 2: Global Package Installation
Install the built package globally:
# Build and package
npm run package
# Install globally
npm install -g ./n8n-nodes-octagon-1.0.0.tgz
# Start n8n normally
n8n startNote: Requires reinstallation after each change.
Testing Your Installation
- Start n8n using one of the methods above
- Open your browser to http://localhost:5678
- Create a new workflow
- Search for "Octagon" in the node list
- Add the node and configure:
- Set up Octagon API credentials
- Select "Octagon Agent (Router)"
- Enter a test query: "Tell me about Apple's latest earnings"
- Execute the workflow
Development Workflow
- Make code changes in your editor
- Rebuild:
npm run build - Restart n8n (if using Custom Extensions method)
- Test changes in n8n interface
- Repeat as needed
Troubleshooting Local Development
Node not appearing:
- Restart n8n completely
- Check the custom extensions path is correct
- Verify the build completed successfully
Icon not loading:
- Clear browser cache (
Cmd/Ctrl + Shift + R) - Check that
Octagon-logo-only.pngis in thedist/folder
TypeScript errors:
npm run build # Check for compilation errorsPermission issues:
# Fix n8n settings permissions
chmod 600 ~/.n8n/configTroubleshooting
Common Issues
- Node not appearing: Restart n8n after installation
- Icon not loading: Clear browser cache
- Authentication errors: Verify API key in credentials
- Rate limiting: Check your Octagon plan limits
Support Channels
- 📚 Documentation: Octagon API Documentation
- 🐛 Issues: GitHub Issues
- 💬 Support: Contact Octagon support for API-related questions
- 📧 Email: support@octagonagents.com
License
MIT License - See LICENSE file for details.
Contributing
Contributions are welcome! Please read our Contributing Guidelines before submitting pull requests.
Changelog
See CHANGELOG.md for release history.
⚠️ Note: This node requires an active Octagon API subscription. Some agents may have usage limits or require premium access. Get started with a free API key at octagonagents.com.
🏆 Professional Grade: This node is built to enterprise standards with comprehensive error handling, security best practices, and optimal performance.