n8n Integration
The Doppelganger community node for n8n allows you to run tasks directly in n8n workflows without writing HTTP requests. This guide covers installation, setup, and best practices.
Why Use the Community Node?#
-
Simplified Task Execution
No API calls or JSON payloads are required. You simply select a task from a dropdown and optionally provide variables. -
Automatic Authentication
Using an API key stored in n8n credentials ensures secure, error-free execution. -
Seamless Workflow Integration
Connect tasks to triggers, conditional logic, and downstream nodes like Slack, Google Sheets, or email. -
Version Awareness
Tasks are executed as-is from your current version in Doppelganger, ensuring reproducibility.
Installation#
- Open n8n and go to Community Nodes → Install.
- Search for
n8n-nodes-doppelgangerand click Install. - Restart n8n to make the node available in the workflow editor.
Setup#
1. Get Your API Key#
- In Doppelganger, go to Settings → API Keys.
- Click Copy, Generate, or Rotate.
- Copy the key to your clipboard.
2. Configure n8n Credentials#
- In n8n, go to Credentials → Add New.
- Paste your API key and give the credential a name.
- Save the credential. The node will use it automatically.
3. Add Doppelganger Node#
- Drag the Doppelganger node into your workflow.
- Task Selection: Choose the task from the dropdown list of all your tasks.
- Inputs (Optional): Provide any variables your task requires; leave empty if not needed.
4. Connect Trigger#
- Use any n8n trigger:
- Webhook Trigger – execute tasks via an external system
- Cron Trigger – schedule task execution
- App Trigger – respond to events in Google Sheets, Airtable, etc.
5. Map Outputs#
- Connect downstream nodes to handle task results:
- Slack notifications
- Email summaries
- Google Sheets updates
- Database inserts
Example Workflow#
- Trigger: Cron running every 2 hours
- Doppelganger Node: Run task selected from dropdown with optional variables
- Conditional Node (IF): Continue only if task output meets criteria
- Post-Processing: Send Slack notifications or update a Google Sheet
Best Practices#
- Use Optional Variables Wisely: Only provide variables when needed. Leaving them blank will use the task’s defaults.
- Test Tasks Individually: Run the node alone before connecting other workflow nodes.
- Monitor Executions: Check n8n’s execution history for input/output verification.
- Secure Credentials: Store API keys in n8n credentials instead of hardcoding.
Advanced Usage#
-
Chained Workflows:
Pass task outputs to downstream nodes, creating multi-step automation without coding. -
Cross-App Automation:
Combine tasks with Slack, email, Sheets, or Airtable nodes for end-to-end workflow automation.