Overview
The ChatAds n8n node lets you add affiliate links to your automated workflows. Use it with chatbots, email automations, content generation, and any workflow that processes user messages.Installation
Option 1: npm (Recommended)
Option 2: Manual Installation
- Download the node package
- Copy to your n8n custom nodes directory (
~/.n8n/custom/) - Restart n8n
Configuration
Credentials Setup
- In n8n, go to Credentials → New
- Search for “ChatAds API”
- Enter your credentials:
| Field | Value |
|---|---|
| API Key | Your key from app.getchatads.com |
| Base URL | https://chatads--chatads-api-fastapiserver-serve.modal.run |
Node Parameters
Required
The user message to analyze. Must be 1-5000 characters.
Optional
Client IP address for automatic geo-detection.
ISO 3166-1 alpha-2 country code (e.g., “US”, “GB”, “DE”). Overrides IP-based detection.
Keyword extraction method:
fast— NLP only (~50ms)balanced— Hybrid NLP/LLM (~150ms)thorough— Deep LLM (~300ms)
URL resolution strategy:
speed— Skip fallback (faster)coverage— Full chain (more matches)
Purchase intent filter:
any— No filteringlow— Filter garbagemedium— Balancedhigh— Premium only
When
true, uses message directly as search query without NLP/LLM processing.Advanced Settings
API endpoint path (for custom deployments).
Maximum parallel requests (1-50). Increase for high-throughput workflows.
HTTP request timeout in seconds (5-300).
Input Modes
The node supports two input modes:GUI Mode (Default)
Configure each parameter individually using n8n’s form interface. Good for simple workflows and visual configuration.JSON Mode
Pass a complete request payload as JSON. Enable by toggling “JSON Parameters” in the node settings:- Dynamic payloads from expressions
- Complex configurations
- Copying requests from API Explorer
Response
The node outputs the full ChatAds API response:Workflow Examples
AI Chatbot with Affiliates
Add affiliate links to AI responses:1
Trigger
Webhook receives user message
2
ChatAds Node
Analyze message for product keywords
3
IF Node
Check
{{ $json.data.matched }}4
OpenAI Node
Generate response with affiliate link in prompt:
5
Response
Return AI response to user
Email Product Mentions
Scan emails for product mentions:Content Generation Pipeline
Enrich generated content with affiliate links:Error Handling
Enable “Continue on Fail” to handle errors gracefully:- Click the ChatAds node
- Go to Settings
- Enable Continue on Fail
Best Practices
Use expressions for dynamic messages
Handle no-match cases
Always check
data.matched before using affiliate data. Design workflows for both matched and unmatched scenarios.Set appropriate concurrency
Increase
maxConcurrency for batch processing. Keep it low (4-8) for real-time chatbots.Monitor usage
Check
meta.usage in responses to track quota consumption.Troubleshooting
Node Not Appearing
- Ensure the package is installed:
npm list @getchatads/chatads-n8n - Restart n8n completely (not just refresh)
- Check n8n logs for load errors
Authentication Errors
- Verify API key starts with
cak_ - Check credentials are saved (not just entered)
- Test key with curl first
Timeout Errors
IncreasetimeoutSeconds in Advanced Settings for:
- Complex queries with
thoroughanalysis - Network latency issues
- High-traffic periods
Rate Limit Errors
- Lower
maxConcurrencyto spread requests - Add a Wait node between batches
- Upgrade plan for higher limits