mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-21 18:05:33 -04:00
iframe嵌入到网站,能不能设置user属性,能不能会话列表一同展示 #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zy0606 on GitHub (Feb 20, 2025).
我使用iframe方式嵌入到我的网站,能不能设置user属性,然后让会话历史列表一同展示???
就像应用的“预览”效果一样,左侧是会话历史列表,中间是对话框
@dosubot[bot] commented on GitHub (Feb 20, 2025):
@zy0606 你好!我是Dosu,一个能帮你解决问题、回答疑问并成为贡献者的机器人。在等待人类维护者的期间,我将会提供帮助。
在使用 iframe 嵌入 Dify 聊天界面时,可以通过
window.difyChatbotConfig的inputs对象来设置用户属性。例如:这些输入会被处理后附加到 iframe 的 URL 中 [1]。
关于会话历史列表的展示,目前在 dify-docs 中没有找到相关的文档或示例说明如何在嵌入的聊天界面中同时展示会话历史列表 [1][2][3]。如果需要类似应用“预览”效果的布局,可能需要自定义开发或使用其他工具来实现。
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@zy0606 commented on GitHub (Feb 20, 2025):
我要的是会话历史列表的用户设置,类似于后端API
我是想iframe嵌入网站,是根据我设置的用户来进行聊天的
@zy0606 commented on GitHub (Mar 6, 2025):
iframe嵌入到网站,可以传用户标识用来记录用户的会话列表,还有能不能传自定义的变量,用来工作流中的http节点鉴权使用?
@crazywoola
@CHub-zn commented on GitHub (Apr 17, 2025):
请问下iframe嵌入到网站,是怎么传用户标识user用来记录用户的会话列表 @zy0606
@kalarita commented on GitHub (Apr 24, 2025):
langgenius/dify#14703