[feat] Embed Workflow in webapp by embed.min.js #4732

Closed
opened 2026-02-21 18:07:46 -05:00 by yindo · 7 comments
Owner

Originally created by @Weaxs on GitHub (Jul 23, 2024).

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).
  • 请务必使用英文提交 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.

I want to embed workflow in website.
Embed the workflow into the website, with parameters taken from values on the web page, such as the current page.

2. Additional context or comments

I see web/app/components/app/overview/embedded/index.tsx.

It is only support ${url}/chatbot/${token}, maybe should be compatible with workflow?

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Weaxs on GitHub (Jul 23, 2024). ### 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] 请务必使用英文提交 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. I want to embed workflow in website. Embed the workflow into the website, with parameters taken from values on the web page, such as the current page. ### 2. Additional context or comments I see [web/app/components/app/overview/embedded/index.tsx](https://github.com/langgenius/dify/blob/main/web/app/components/app/overview/embedded/index.tsx). It is only support `${url}/chatbot/${token}`, maybe should be compatible with workflow? ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:07:46 -05:00
yindo closed this issue 2026-02-21 18:07:47 -05:00
Author
Owner

@Weaxs commented on GitHub (Jul 26, 2024):

I want to use workflow and embed it in webapp, like kimi Copilot
image

@Weaxs commented on GitHub (Jul 26, 2024): I want to use workflow and embed it in webapp, like kimi Copilot ![image](https://github.com/user-attachments/assets/92c66dd5-937f-44d4-bff7-8aa401054a4f)
Author
Owner

@Weaxs commented on GitHub (Jul 26, 2024):

Agent is already supported by embed.min.js script, but workflow only can be used by iframe now.

@Weaxs commented on GitHub (Jul 26, 2024): Agent is already supported by embed.min.js script, but workflow only can be used by `iframe` now.
Author
Owner

@taowang1993 commented on GitHub (Sep 12, 2024):

web/app/components/app/overview/embedded/index.tsx

I don't like iframe either since it will expose url.

How are you embedding the chatbot/agent/workflow currently?

@taowang1993 commented on GitHub (Sep 12, 2024): > web/app/components/app/overview/embedded/index.tsx I don't like iframe either since it will expose url. How are you embedding the chatbot/agent/workflow currently?
Author
Owner

@Weaxs commented on GitHub (Sep 13, 2024):

I have not solved it.

I wanted try to support before, but not started development yet.

maybe you can help to support it If you have spare time ? 👀

web/app/components/app/overview/embedded/index.tsx

I don't like iframe either since it will expose url.

How are you embedding the chatbot/agent/workflow currently?

@Weaxs commented on GitHub (Sep 13, 2024): I have not solved it. I wanted try to support before, but not started development yet. maybe you can help to support it If you have spare time ? 👀 > > web/app/components/app/overview/embedded/index.tsx > > I don't like iframe either since it will expose url. > > How are you embedding the chatbot/agent/workflow currently?
Author
Owner

@taowang1993 commented on GitHub (Sep 13, 2024):

where is the embed.min.js?

<script src="${url}/embed.min.js" id="${token}" defer> </script>

is this approach going to expose the api key?

@taowang1993 commented on GitHub (Sep 13, 2024): where is the embed.min.js? <script src="${url}/embed.min.js" id="${token}" defer> </script> is this approach going to expose the api key?
Author
Owner

@rosehuynh92 commented on GitHub (Sep 13, 2024):

Huỳnh Thể Hồng

Vào Th 3, 23 thg 7, 2024 lúc 14:44 Weaxs @.***> đã viết:

Self Checks

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

I want to embed workflow in website.
Embed the workflow into the website, with parameters taken from values on
the web page, such as the current page.
2. Additional context or comments

I see web/app/components/app/overview/embedded/index.tsx
https://github.com/langgenius/dify/blob/main/web/app/components/app/overview/embedded/index.tsx
.

It is only support ${url}/chatbot/${token}, maybe should be compatible
with workflow?
3. Can you help us with this feature?

  • I am interested in contributing to this feature.


Reply to this email directly, view it on GitHub
https://github.com/langgenius/dify/issues/6568, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCUATVCJUWTGSGQW44R44Y3ZNYCXXAVCNFSM6AAAAABLJ226EOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDINJQGE3DGNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@rosehuynh92 commented on GitHub (Sep 13, 2024): Huỳnh Thể Hồng Vào Th 3, 23 thg 7, 2024 lúc 14:44 Weaxs ***@***.***> đã viết: > Self Checks > > - I have searched for existing issues search for existing issues > <https://github.com/langgenius/dify/issues>, including closed ones. > - I confirm that I am using English to submit this report (我已阅读并同意 Language > Policy <https://github.com/langgenius/dify/issues/1542>). > - 请务必使用英文提交 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. > > I want to embed workflow in website. > Embed the workflow into the website, with parameters taken from values on > the web page, such as the current page. > 2. Additional context or comments > > I see web/app/components/app/overview/embedded/index.tsx > <https://github.com/langgenius/dify/blob/main/web/app/components/app/overview/embedded/index.tsx> > . > > It is only support ${url}/chatbot/${token}, maybe should be compatible > with workflow? > 3. Can you help us with this feature? > > - I am interested in contributing to this feature. > > — > Reply to this email directly, view it on GitHub > <https://github.com/langgenius/dify/issues/6568>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BCUATVCJUWTGSGQW44R44Y3ZNYCXXAVCNFSM6AAAAABLJ226EOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDINJQGE3DGNQ> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@Weaxs commented on GitHub (Sep 14, 2024):

where is the embed.min.js?

<script src="${url}/embed.min.js" id="${token}" defer> </script>

is this approach going to expose the api key?

https://github.com/langgenius/dify/blob/main/web/public/embed.min.js

token is SiteConfig.access_token at https://github.com/langgenius/dify/blob/main/web/types/app.ts I guess.

It's different with api key.

@Weaxs commented on GitHub (Sep 14, 2024): > where is the embed.min.js? > > <script src="${url}/embed.min.js" id="${token}" defer> </script> > is this approach going to expose the api key? https://github.com/langgenius/dify/blob/main/web/public/embed.min.js `token` is `SiteConfig.access_token` at https://github.com/langgenius/dify/blob/main/web/types/app.ts I guess. It's different with api key.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4732