mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-01 20:35:52 -04:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user