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