Allow email addresses to be variables in Human-in-the-Loop nodes

I would like to express gratitude to the community for the implementation of HITL (Human-In-The-Loop) Nodes.

This feature is highly beneficial for AI development, particularly in scenarios requiring human judgment where approval or rejection is via email.

This functionality is critical for the development of AI agents, transforming them from experimental tools into practical business solutions. It addresses the reality that, in many cases, the reliability of the outcome is more important than achieving 100% automation.

In this regard, I have a question: are there any plans or possibilities to allow the recipient’s email address in the HITL node to be set as a variable? In certain use cases, users need to designate an external approver. This approver may vary depending on the context or the initiator; for instance, different departments may require different designated authorities.

Therefore, enabling the dynamic specification of the approver’s email address via variables would significantly expand the range of business applications for Dify.

Furthermore, if the Enterprise Edition of Dify could collect approval-related logs within the Audit interface, it would be an indispensable feature for enterprises regarding auditing requirements. We hope this can be considered for Dify Enterprise Edition.

Thank you very much!:grinning_face: