docs: embedding in websites add systemVariables (en/zh_CN) (#736)

* docs: embedding in websites add systemVariables (en/zh_CN)

* docs: embedding in websites add conversation_id in systemVariables (en/zh_CN)
This commit is contained in:
Junjie.M
2025-04-23 16:48:19 +08:00
committed by GitHub
parent 7839195678
commit 64f8b56f6b
2 changed files with 14 additions and 1 deletions
@@ -22,6 +22,13 @@ window.difyChatbotConfig = {
draggable: false,
// Optional, The axis along which the button is allowed to be dragged, default is `both`, can be `x`, `y`, `both`
dragAxis: 'both',
// Optional, An object of system variables that set in the dify chatbot
systemVariables: {
// key is the system variable name
// e.g.
// user_id: "YOU CAN DEFINE USER ID HERE",
// conversation_id: "YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID"
},
// Optional, An object of inputs that set in the dify chatbot
inputs: {
// key is the variable name
@@ -35,13 +35,19 @@ window.difyChatbotConfig = {
draggable: false,
// 可选项,允许拖动按钮的轴,默认为 `both`,可以是 `x`、`y`、`both`
dragAxis: 'both',
// 可选项,在 dify 聊天机器人中设置的系统变量对象
systemVariables: {
// 键是系统变量名
// 例如:
// user_id: "YOU CAN DEFINE USER ID HERE",
// conversation_id: "YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID"
},
// 可选项,在 dify 聊天机器人中设置的输入对象
inputs: {
// 键是变量名
// 例如:
// name: "NAME"
}
};
```