Merge pull request #228 from croatialu/chore/user-variables

docs: Update the guide for embedding websites
This commit is contained in:
AllenWriter
2025-06-16 14:07:47 +08:00
committed by GitHub
3 changed files with 39 additions and 4 deletions

View File

@@ -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',
},
}
```

View File

@@ -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',
},
};
```

View File

@@ -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',
},
};
```