diff --git a/en/guides/application-publishing/embedding-in-websites.mdx b/en/guides/application-publishing/embedding-in-websites.mdx index 7d50da04..0b108cfa 100644 --- a/en/guides/application-publishing/embedding-in-websites.mdx +++ b/en/guides/application-publishing/embedding-in-websites.mdx @@ -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', + }, } ``` diff --git a/ja-jp/guides/application-publishing/embedding-in-websites.mdx b/ja-jp/guides/application-publishing/embedding-in-websites.mdx index 1020a8d3..82ae134d 100644 --- a/ja-jp/guides/application-publishing/embedding-in-websites.mdx +++ b/ja-jp/guides/application-publishing/embedding-in-websites.mdx @@ -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', + }, }; ``` diff --git a/zh-hans/guides/application-publishing/embedding-in-websites.mdx b/zh-hans/guides/application-publishing/embedding-in-websites.mdx index c6f7f735..24530d46 100644 --- a/zh-hans/guides/application-publishing/embedding-in-websites.mdx +++ b/zh-hans/guides/application-publishing/embedding-in-websites.mdx @@ -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', + }, }; ```