Copy AI icon

Copy AI

Copy AI

Actions3

Overview

The Copy AI node for n8n allows you to interact with workflow runs in the Copy AI platform. Specifically, when using the Workflow Run resource and the Get operation, this node retrieves detailed information about a specific run of a given workflow by its Workflow ID and Run ID. This is useful for monitoring, auditing, or integrating workflow execution data from Copy AI into your automation processes.

Common scenarios:

  • Fetching the status or results of a previously triggered workflow run.
  • Integrating workflow run details into reporting or notification flows.
  • Auditing workflow executions for troubleshooting or analytics.

Example:
You have an automated process that triggers a Copy AI workflow. After some time, you want to fetch the result or status of that specific run to decide on further actions (e.g., send a notification if it failed).


Properties

Name Meaning
Workflow ID ID of the workflow
Run ID ID of the workflow run

Output

The node outputs a JSON object containing the details of the specified workflow run. The exact structure depends on the Copy AI API response, but typically includes fields such as run status, timestamps, input/output data, and metadata related to the workflow run.

Example output:

{
  "id": "run_12345",
  "workflowId": "wf_67890",
  "status": "completed",
  "startedAt": "2024-06-01T12:00:00Z",
  "finishedAt": "2024-06-01T12:05:00Z",
  "result": { /* ... */ },
  "metadata": { /* ... */ }
}

Note: The actual fields may vary based on the Copy AI API.


Dependencies

  • External Service: Requires access to the Copy AI API.
  • API Key: You must configure Copy AI API credentials in n8n under the name copyAiApi.
  • n8n Configuration: No additional environment variables are required beyond standard credential setup.

Troubleshooting

Common issues:

  • Invalid Workflow ID or Run ID: If either ID is incorrect or does not exist, the node will return an error indicating the resource was not found.
  • Authentication errors: If the API key is missing or invalid, you'll receive an authentication/authorization error.
  • Malformed input: Supplying non-string values or empty strings for required properties may cause validation errors.

Error messages and resolutions:

  • "Resource not found": Check that both Workflow ID and Run ID are correct and exist in your Copy AI account.
  • "Invalid API key": Ensure your Copy AI credentials are correctly set up in n8n.
  • "Unexpected token" (when parsing): Make sure all input fields are properly formatted, especially if any field expects JSON.

Links and References

Discussion