dify
dify copied to clipboard
The "Reset Conversation" button under "Embedding in Websites" causes the input values to become invalid.
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I pass the user name through the inputs tag:
javascript
window.difyChatbotConfig = {
token: "xxx",
dynamicScript: true,
// draggable: true,
inputs: {
"你好": "${userName}"
}
};
After passing the name parameter, the user name is successfully displayed in the input field when the chat bubble button is opened for the first time. However, after interacting in the chat window and clicking the "Reset Chat" button, the passed user name ("你好": "${userName}") no longer works and is not displayed. Step 1: Open the chat bubble.
Step 2: Engage in conversation.
Step 3: Click the reset button in the top right corner.