mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
docs: Update the guide for embedding websites, and add descriptions of optional items for system variables and user variables.
This commit is contained in:
@@ -30,7 +30,19 @@ window.difyChatbotConfig = {
|
||||
// key is the variable name
|
||||
// e.g.
|
||||
// name: "NAME"
|
||||
}
|
||||
},
|
||||
// Optional, An object of system variables that set in the dify chatbot
|
||||
systemVariables: {
|
||||
// e.g.
|
||||
// user_id: 'USER_ID',
|
||||
// conversation_id: 'CONVERSATION_ID',
|
||||
},
|
||||
// Optional, An object of user variables that set in the dify chatbot
|
||||
userVariables: {
|
||||
// e.g.
|
||||
// avatar_url: 'AVATAR_URL',
|
||||
// name: 'NAME',
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -30,7 +30,19 @@ window.difyChatbotConfig = {
|
||||
// key は変数名です
|
||||
// 例:
|
||||
// name: "NAME"
|
||||
}
|
||||
},
|
||||
// オプション:dify チャットボットに設定されているシステム変数
|
||||
systemVariables: {
|
||||
// 例:
|
||||
// user_id: 'USER_ID',
|
||||
// conversation_id: 'CONVERSATION_ID',
|
||||
},
|
||||
// オプション:dify チャットボットに設定されているユーザー情報変数
|
||||
userVariables: {
|
||||
// 例:
|
||||
// avatar_url: 'AVATAR_URL',
|
||||
// name: 'NAME',
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@@ -46,8 +46,19 @@ window.difyChatbotConfig = {
|
||||
// 键是变量名
|
||||
// 例如:
|
||||
// name: "NAME"
|
||||
}
|
||||
|
||||
},
|
||||
// 可选项,在 dify 聊天机器人中设置的系统变量
|
||||
systemVariables: {
|
||||
// 例如:
|
||||
// user_id: 'USER_ID',
|
||||
// conversation_id: 'CONVERSATION_ID',
|
||||
},
|
||||
// 可选项,在 dify 聊天机器人中设置的用户信息变量
|
||||
userVariables: {
|
||||
// 例如:
|
||||
// avatar_url: 'AVATAR_URL',
|
||||
// name: 'NAME',
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user