mirror of https://github.com/FlowiseAI/Flowise.git
Add support for Airtable text field content answerai brand added contentful removed publisher from this branch removed textField from the node to fix errors Update docker-compose to build the repo Update image added youtube document loader added updated contentful loader Add chatflow API key and sync with Sidekick on create/update Update .gitignore and constant.js Update API key functionality and add chatflow domain and API key to request payload added hidden nav and manu when in iframe Remove command from compose optimize dockkerfile Make dark theme the default Add DOMAIN env Add API_KEY env Add DOMAIN env Add auth0 integration Update dockerfile Add env passthrough for auth Add env passthrough for auth Add environment variables for authentication in production Add production environment variables Update compose env Update authentication logging and chatflow domain Update Dockerfile and env.sh, fix sed command in env.sh, and modify index.js to handle undefined organization ID Refactor Dockerfile and env.sh scripts, and update App.js and index.js files Add embed & embed-react, enable credentials for API comms Improvements Add SST Fix authorization issue in API endpoints Update .gitignore file to ignore .pem files and .env.* files added option for string or document fo routput and adjusted config Add lock files to git Update Docker files Add CDN and remove quotes from chat prompt so JSON is not malformed updated to account for queryoveride Allow public access to icons Remove parallel from turbo dev Fix Dockerfile and cookies missing on some requests Add CreateDalleImage tool and DallePost node class Add flowise-configs package and tools Added full Serp results access from LangChain Task and Planning Chatflow Remove unused SerpAPI initialization and console.log statement added new links for web scrapers Small improvements to match the AnswerAI styles ADd public-prediction endpoint Improve 401 error handling Add copilot deploys Add deployment documentation Update database secret Ignore *.env Fix missing errorg Merge pull request #3 from Answers-AI/feature/AAI-3-copilot-deployment Feature/aai 3 copilot deployment Merge pull request #4 from Answers-AI/feature/AAI-6-chatbot-config Feature/aai 6 chatbot config Add DEPLOYMENT_COPILOT.md and update README.md Improve session handling Merge branch 'feature/beta-v1' into bt/tools-sandbox Merge pull request #2 from Answers-AI/bt/tools-sandbox Tools Sandbox Update gitignore Update deployment docs Update how public/private enforcing works Add db secret, add environment file, fix launch json node version Merge pull request #5 from Answers-AI/feature/AAI-3-copilot-deployment Copilot deployment Add db secret, add environment file, fix launch json node version Add pipelines Add pipelines Update launch json Update copilot files Added embed as part of the workspace, updateded deps Add embed dist Update showing source files Fix source documents not showing Improve source documents Update source documents list in chatbot Update Badge powered by url Add visibility settings for AnswersAI Merge pull request #7 from Answers-AI/feature/AAI-2 Visibility settings for Chatflow on AnswerAI Answers config improvements Fix messages not displaying Fix the typo Update colors Increase the resources for flowise app Lower the service count Add and filter by userId on chatflow entities Add User model and handle for Chatflow and Credentials Add override for langfuse tracing Add roo tracer for metadata customization Improve Langfuse Tracing Update gitignore Update embed package names Merge branch 'feature/aai-embed' into feature/beta-v1 Fix sqlite user migration |
||
|---|---|---|
| .. | ||
| .husky | ||
| images | ||
| src | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .npmignore | ||
| .prettierignore | ||
| .prettierrc | ||
| README.md | ||
| base.json | ||
| package.json | ||
| rollup.config.js | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
README.md
Answer AI Embed
Javascript library to display flowise chatbot on your website
Install:
yarn install
Dev:
yarn dev
Build:
yarn build
Embed in your HTML
PopUp
<script type="module">
import Chatbot from 'https://cdn.jsdelivr.net/npm/aai-embed/dist/web.js';
Chatbot.init({
chatflowid: '<chatflowid>',
apiHost: 'http://localhost:3000',
});
</script>
FullPage
<script type="module">
import Chatbot from './web.js';
Chatbot.initFull({
chatflowid: '<chatflowid>',
apiHost: 'http://localhost:3000',
});
</script>
<flowise-fullchatbot></flowise-fullchatbot>
To enable full screen, add margin: 0 to body style, and confirm you don't set height and width
<body style="margin: 0">
<script type="module">
import Chatbot from './web.js';
Chatbot.initFull({
chatflowid: '<chatflowid>',
apiHost: 'http://localhost:3000',
theme: {
chatWindow: {
// height: 700, don't set height
// width: 400, don't set width
},
},
});
</script>
</body>
Configuration
You can also customize chatbot with different configuration
<script type="module">
import Chatbot from 'https://cdn.jsdelivr.net/npm/aai-embed/dist/web.js';
Chatbot.init({
chatflowid: '91e9c803-5169-4db9-8207-3c0915d71c5f',
apiHost: 'http://localhost:3000',
chatflowConfig: {
// topK: 2
},
observersConfig: {
// (optional) Allows you to execute code in parent based upon signal observations within the chatbot.
// The userinput field submitted to bot ("" when reset by bot)
observeUserInput: (userInput) => {
console.log({ userInput });
},
// The bot message stack has changed
observeMessages: (messages) => {
console.log({ messages });
},
// The bot loading signal changed
observeLoading: (loading) => {
console.log({ loading });
},
},
theme: {
button: {
backgroundColor: '#3B81F6',
right: 20,
bottom: 20,
size: 'medium',
iconColor: 'white',
customIconSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
},
chatWindow: {
showTitle: true, // show/hide the title bar
title: 'Flowise Bot',
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
welcomeMessage: 'Hello! This is custom welcome message',
backgroundColor: '#ffffff',
height: 700,
width: 400,
fontSize: 16,
poweredByTextColor: '#303235',
botMessage: {
backgroundColor: '#f7f8ff',
textColor: '#303235',
showAvatar: true,
avatarSrc: 'https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/parroticon.png',
},
userMessage: {
backgroundColor: '#3B81F6',
textColor: '#ffffff',
showAvatar: true,
avatarSrc: 'https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png',
},
textInput: {
placeholder: 'Type your question',
backgroundColor: '#ffffff',
textColor: '#303235',
sendButtonColor: '#3B81F6',
},
},
},
});
</script>
License
Source code in this repository is made available under the MIT License.
