Dify icon

Dify

Interact with Dify AI platform - chat, completions, and feedback

Feedback → Submit Feedback

AI-generated

Overview

This node integrates with the Dify AI platform to submit user feedback on specific messages. It allows users to provide a rating (like or dislike) and optionally add detailed comments about the message's helpfulness. This is useful for improving AI responses by collecting direct user input on their quality.

Practical examples:

  • After receiving an AI-generated chat response, automatically send feedback indicating whether the answer was helpful.
  • Collect detailed user comments explaining why a particular AI completion was unsatisfactory, enabling iterative improvement.

Properties

Name Meaning
Message ID The unique identifier of the message you want to provide feedback for.
Rating Whether the message response was helpful or not. Options: Like (positive), Dislike (negative).
Feedback Content Optional detailed text explaining the reason behind the rating.
User ID Optional identifier of the user submitting the feedback.

Output

The node outputs a JSON object representing the result of the feedback submission. This typically includes confirmation details from the Dify API that the feedback was received successfully. No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Dify AI platform.
  • Needs the base URL of the Dify API configured in the node credentials.
  • The node depends on the external Dify service to accept and process feedback submissions.

Troubleshooting

  • Common issues:

    • Invalid or missing API key can cause authentication failures.
    • Providing an incorrect or non-existent Message ID will likely result in errors from the API.
    • Network connectivity problems may prevent successful feedback submission.
  • Error messages:

    • "The operation "submit" is not supported for resource "feedback": Indicates a misconfiguration of the operation parameter.
    • API errors related to authorization or invalid parameters will be returned as error messages in the node output if "Continue On Fail" is enabled.
  • Resolutions:

    • Verify that the API key and base URL are correctly set in the node credentials.
    • Ensure the Message ID corresponds to a valid message previously generated or stored.
    • Check network access and firewall settings to allow outbound requests to the Dify API.

Links and References

Discussion