Dify Workflow icon

Dify Workflow

Execute and manage Dify AI workflows with streaming and blocking modes

Dify Workflow

AI-generated

Overview

This node allows users to execute and manage Dify AI workflows within n8n. It supports multiple operations such as executing a workflow, retrieving workflow details, stopping a workflow, and fetching workflow logs. This node is useful for automating AI workflow management tasks, integrating AI-driven processes into automation pipelines, and monitoring workflow execution and logs.

Use Case Examples

  1. Automate the execution of an AI workflow to process data and generate insights.
  2. Retrieve details of a specific AI workflow to monitor its configuration and status.
  3. Stop a running AI workflow as part of an error handling or control process.
  4. Fetch logs from an AI workflow to analyze its execution history and debug issues.

Output

JSON

  • json
    • error - Error message if the operation fails and continueOnFail is enabled.
    • operation - The operation that was attempted when an error occurred.
    • timestamp - Timestamp of when the error occurred.

Dependencies

  • Dify API with API key and base URL credentials

Troubleshooting

  • If an unsupported operation is selected, the node throws an error indicating the operation is not supported.
  • Errors from the Dify API or network issues will cause the node to fail unless 'continueOnFail' is enabled, in which case error details are returned in the output.
  • Ensure that the API key and base URL credentials are correctly configured to avoid authentication errors.

Links

Discussion