Skip to content

HugoWw/Dify-ChatApp-Embedded-Exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dify-ChatApp-Embedded-Exp

This project is designed to achieve a smooth window zooming function when embedded in the chatweb of the dify application. The style of dify can also be modified by injecting custom styles. Please indicate the source when using the code.

⚠️ Note: The current project has resolved the front-end cross-domain issue through a proxy. In the actual production environment, you need to solve the front-end cross-domain problem between your own application and the Dify application by yourself.

This project was bootstrapped with Create React App.

Demo

dify-chat-slide-window.mov

Config:

In src/setupProxy.js file, Replace the address(http://xxxxxx) of your Dify.

    app.use(
        proxyPaths, 
        createProxyMiddleware({
        target: 'http://xxxxxx', // Dify 服务地址
        changeOrigin: true,
        ....

In src/component/DifyChatBubble.jsx file, Replace the "xxx" with your Dify chatbot id.

const DIFY_CHATBOT_URL = "http://localhost:3000/api/chatbot/xxx";

Getting Started

First, install dependencies:

npm install

Then, run the development server:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

About

Encapsulate the Dify chatbot to achieve custom styles and smooth zooming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published