🔄 n8n Executor
Use when executing n8n workflows, checking workflow status, or retrieving execution data.
Overview
Assists in the execution and monitoring of workflows in an n8n instance using the n8n API. This skill allows agents to bridge LLM intelligence with complex automated workflows.
When to Use
- Triggering a specific n8n workflow by ID.
- Retrieving the status of a past execution.
- Fetching JSON data from a finished workflow.
Core Pattern
Always confirm the workflow ID and the endpoint URL before execution to ensure you are targeting the correct workflow.
# Example API call
curl -X POST "https://n8n.example.com/api/v1/workflows/[ID]/execute" \
-H "X-N8N-API-KEY: [API_KEY]"
Quick Reference
| Action | Endpoint Pattern |
|---|---|
| Execute | POST /workflows/:id/execute |
| Get Status | GET /executions/:id |
| List Workflows | GET /workflows |
Implementation
- Obtain workflow ID and API key from n8n settings.
- Construct the API request (using
curlor a similar tool). - Handle the response and log the execution ID for future status checks.
Common Mistakes
- Authentication Error: Incorrect API key or lack of "X-N8N-API-KEY" header.
- Invalid ID: Using an incorrect workflow ID or endpoint.
- Connectivity: Network connectivity issues to the n8n instance.