使用web嵌入系统时,支持自定义参数:userId 传递到流程中 #9102

Closed
opened 2026-02-21 18:30:37 -05:00 by yindo · 0 comments
Owner

Originally created by @xiaozei523 on GitHub (Mar 4, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

目的:使用web嵌入系统时,传递当前系统的userId 到Dify的工作流中,工作流通过userId 获取用户信息,触发function call 查询用户的数据。

实现方案一:设置变量 增加 可隐藏,前端通过 window.difyChatbotConfig { input:"userid":"xxxx"} 传递

Image

实现方案二:iframe 标签方式,URL后面跟上 ?userId = xxxx 参数
在Dify的工作流中 支持获取userId参数

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @xiaozei523 on GitHub (Mar 4, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. 目的:使用web嵌入系统时,传递当前系统的userId 到Dify的工作流中,工作流通过userId 获取用户信息,触发function call 查询用户的数据。 实现方案一:设置变量 增加 可隐藏,前端通过 window.difyChatbotConfig { input:"userid":"xxxx"} 传递 ![Image](https://github.com/user-attachments/assets/1ed5dab0-dc4b-4045-9b9a-6eb9ee2df299) 实现方案二:iframe 标签方式,URL后面跟上 ?userId = xxxx 参数 在Dify的工作流中 支持获取userId参数 ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 🔨 feat:tools label 2026-02-21 18:30:37 -05:00
yindo closed this issue 2026-02-21 18:30:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9102