* Changes Made to Embed Chat Configuration
1. Consolidated multiple configuration functions into a single `defaultThemeConfig` object
2. Added full theme configuration support for both popup and fullpage modes
3. Fixed fullpage chat window sizing to use 100% height and width
4. Improved code formatting and readability
* fix: replace empty customCSS quotes with backticks in theme configuration output
* refactor: improve script output formatting for embed chat code
* Fixed incorrect spacing in React component theme prop string templates.
* Add ability to enable/disable which variables can be overriden during external predictions
* Remove duplicated code
* Remove rate limit and allowed domains tab from chatflow configuration
* Show tooltip in api code dialog for override config properties
* Fix server crash when override config is not available
* update UI for chatflow config security, file upload
* Fix UI issues in security tab of chatflow configuration dialog
* Fix override config options not updating when nodes change
* Fix crash in api code dialog when overrideConfig is not available for a chatflow/agentflow. Also fix input config in api code dialog not updating when nodes change.
* Refactor override config and add override config for variables
* Update api code dialog - update how override config is read and show variable overrides
* Update how node and variable overrides are read and resolved
* Prevent api code dialog mounting on page load and only mount when api code dialog button is clicked. this should fix loading incorrect data.
* Fix variables list not showing when overrideConfig is not available
* add overrideconfig to agentflow and upsert vector
* temporarily removed enable overrideconfig on upsert, fix linting issues
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Add Up and Down arrow functionality to chat messages
- Works like Linux shell
- History limited to 10 messages
* Fix linting errors
* Update EmbedChat.jsx
---------
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
* add functionality for full file uploads, add remove messages from view dialog and API
* add attachments swagger
* update question to include uploadedFilesContent
* make config dialog modal lg size
* Add migrations - add follow up prompts column to chatflow and chat message
* Add configuration tab for follow-up prompts
* Add follow up prompts functionality
* Pin zod version in components - this was causing a type error with structured outputs
* Generate follow up prompts if enabled and return it in stream, response, and save to database
* Show follow up prompts after getting response
* Add google gen ai for generating follow up prompts and fix issues
* Add config for google gen ai and update model options
* Update follow-up prompts ui and styles
* Release/2.1.0 (#3204)
flowise@2.1.0 release
* Chore/update flowise embed version to 2.0.0 (#3205)
* update flowise-embed version on lock file
* add agent messages to share chatbot
* Update pnpm-lock.yaml
* update flowise-embed version
* update flowise-embed to 1.3.9
* update embed version to 2.0
* Bugfix/CodeInterpreter E2B Credential (#3206)
* Base changes for ServerSide Events (instead of socket.io)
* lint fixes
* adding of interface and separate methods for streaming events
* lint
* first draft, handles both internal and external prediction end points.
* lint fixes
* additional internal end point for streaming and associated changes
* return streamresponse as true to build agent flow
* 1) JSON formatting for internal events
2) other fixes
* 1) convert internal event to metadata to maintain consistency with external response
* fix action and metadata streaming
* fix for error when agent flow is aborted
* prevent subflows from streaming and other code cleanup
* prevent streaming from enclosed tools
* add fix for preventing chaintool streaming
* update lock file
* add open when hidden to sse
* Streaming errors
* Streaming errors
* add fix for showing error message
* add code interpreter
* add artifacts to view message dialog
* Update pnpm-lock.yaml
* uncomment e2b credential
---------
Co-authored-by: Vinod Paidimarry <vinodkiran@outlook.in>
* Release/2.1.0 (#3207)
* flowise@2.1.0 release
* update flowise-components@2.1.1
* Bugfix/Add artifacts migration script to other database types (#3210)
add artifacts migration script to other database types
* Release/2.1.1 (#3213)
release @2.1.1
* Bugfix/Add header to allow sse on nginx (#3214)
add header to allow sse on nginx
* Bugfix/remove invalid markdown (#3219)
remove invalid markdown
* Correct "as" casing (#3216)
* Correct "as" casing
* Remove "version" line from docker compose file
* Update docker-compose.yml
---------
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
* chore: update unstructured API url and doc reference (#3224)
chore: udpate unstructured API url and doc reference
* Feature/add ability to specify dynamic metadata to jsonlines (#3238)
* add ability to specify dynamic metadata to jsonlines
* fix additional metadata
* Bugfix/Buffer Memory for Anthropic (#3242)
fix buffer memory
* Added env vars to ui and api URL (#3141)
* feat: add environment vars to split application in different deployments for better scalability
* update: package.json
added start script ui
---------
Co-authored-by: patrick <patrick.alves@br.experian.com>
* Added 1-click deployment link for Alibaba Cloud. (#3251)
* Added a link for Alibaba Cloud Deployment
* change service name
---------
Co-authored-by: yehan <gn398171@alibaba-inc.com>
* Chore/Groq Llama3.2 (#3255)
* add gemini flash
* add gemin flash to vertex
* add gemin-1.5-flash-preview to vertex
* add azure gpt 4o
* add claude 3.5 sonnet
* add mistral nemo
* add groq llama3.1
* add gpt4o-mini to azure
* o1 mini
* add groq llama 3.2
* Bugfix/Prevent streaming of chatflow tool and chain tool (#3257)
prevent streaming of chatflow tool and chain tool
* Bugfix/Enable Custom Tool Optional Input Schema (#3258)
* prevent streaming of chatflow tool and chain tool
* enable optional input schema
* Bugfix/Searxng tool not working (#3263)
fix searxng tool not working
* LunaryAI automatic Thread and User tracking (#3233)
* Lunary Thread/User tracking
* Clean console logs
* Clean
* Remove commented lines
* Remove commented line
* feat: enable autofocus to the `new chatflow title` to improve usability (#3260)
This dialog has only one input and it is the primary one, there is no need for an extra click to be able to set the title
* feat: save a new Chatflow when the `ENTER` key is pressed (#3261)
This simple event handler improve the usability of the UI by avoiding having to use the mouse or having to tab twice and then hit enter to save a flow
* feat: save Chatflow title when the `ENTER` key is pressed or discard upon `ESC` is pressed (#3265)
This simple event handler improves the usability of the UI by avoiding having to use the mouse to save or dicard title changes
* feat: enable autofocus to the `edit chatflow title` field to improve UI usability (#3264)
feat: enable autofocus to the `edit chatflow title` field to improve usability
The canvas header has only one input and it is the primary one, there is no need for an extra click to be able to edit the title
* feat: add search keyboard shortcut based on the current platform (#3267)
* feat: highlight valid/invalid connection between nodes (#3266)
Change the inputs background to green/red to hint compatible connections, in adition to the `not-allowed` mouse cursor for incompatible connections
* Bugfix/add fixes for search of view header (#3271)
add fixes for search of view header
* fix: warning when passing a boolean to border property of a Card (#3275)
By default MainCard wrappers like NodeCardWrapper and CardWrapper add a a solid border of 1px, but if the `MainCard.border` prop is used (`false`) the border prop was wrongly set to a boolean instead of string
* feat: add shortcut text hint to the search field (#3269)
* feat: add shortcut text hint to the search field
* fix: search box width to fit the shortcut hint text
* fix: error when not running on Mac due to an undefined `os` variable
* fix: warning when a non-boolean values was used to set `checked` prop of a SwitchInput component (#3276)
fix: warning when a non-boolean values was used to set`checked` prop of SwitchInput component
The problem was that in the useEffect hook the plain value was used without validation like in useState
* Bugfix/Throw error to prevent SSE from retrying (#3281)
throw error to prevent SSE from retrying
* Pin zod version in components - this was causing a type error with structured outputs
* Fix conflicts in pnpm lock
* fix ui changes for follow up prompts
* Fix button disable state in follow-up prompts configuration
* Fix follow-up prompts not showing up for agent flows
* Show follow up prompts if last message is apiMessage and follow up prompts are available
---------
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
Co-authored-by: Vinod Paidimarry <vinodkiran@outlook.in>
Co-authored-by: Cross <github@dillfrescott.com>
Co-authored-by: cragwolfe <cragcw@gmail.com>
Co-authored-by: patrickreinan <patrickreinan@gmail.com>
Co-authored-by: patrick <patrick.alves@br.experian.com>
Co-authored-by: yehan <34835250+yehanyh@users.noreply.github.com>
Co-authored-by: yehan <gn398171@alibaba-inc.com>
Co-authored-by: Vincelwt <vincelwt@users.noreply.github.com>
Co-authored-by: Humberto Rodríguez A. <rhumbertgz@users.noreply.github.com>
Co-authored-by: Henry <hzj94@hotmail.com>
fix: warning when a non-boolean values was used to set`checked` prop of SwitchInput component
The problem was that in the useEffect hook the plain value was used without validation like in useState
* feat: add shortcut text hint to the search field
* fix: search box width to fit the shortcut hint text
* fix: error when not running on Mac due to an undefined `os` variable
By default MainCard wrappers like NodeCardWrapper and CardWrapper add a a solid border of 1px, but if the `MainCard.border` prop is used (`false`) the border prop was wrongly set to a boolean instead of string
feat: enable autofocus to the `edit chatflow title` field to improve usability
The canvas header has only one input and it is the primary one, there is no need for an extra click to be able to edit the title
* feat: add environment vars to split application in different deployments for better scalability
* update: package.json
added start script ui
---------
Co-authored-by: patrick <patrick.alves@br.experian.com>
* Base changes for ServerSide Events (instead of socket.io)
* lint fixes
* adding of interface and separate methods for streaming events
* lint
* first draft, handles both internal and external prediction end points.
* lint fixes
* additional internal end point for streaming and associated changes
* return streamresponse as true to build agent flow
* 1) JSON formatting for internal events
2) other fixes
* 1) convert internal event to metadata to maintain consistency with external response
* fix action and metadata streaming
* fix for error when agent flow is aborted
* prevent subflows from streaming and other code cleanup
* prevent streaming from enclosed tools
* add fix for preventing chaintool streaming
* update lock file
* add open when hidden to sse
* Streaming errors
* Streaming errors
* add fix for showing error message
* add code interpreter
* add artifacts to view message dialog
* Update pnpm-lock.yaml
---------
Co-authored-by: Vinod Paidimarry <vinodkiran@outlook.in>
* Base changes for ServerSide Events (instead of socket.io)
* lint fixes
* adding of interface and separate methods for streaming events
* lint
* first draft, handles both internal and external prediction end points.
* lint fixes
* additional internal end point for streaming and associated changes
* return streamresponse as true to build agent flow
* 1) JSON formatting for internal events
2) other fixes
* 1) convert internal event to metadata to maintain consistency with external response
* fix action and metadata streaming
* fix for error when agent flow is aborted
* prevent subflows from streaming and other code cleanup
* prevent streaming from enclosed tools
* add fix for preventing chaintool streaming
* update lock file
* add open when hidden to sse
* Streaming errors
* Streaming errors
* add fix for showing error message
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* New Feature: Custom Templates in the marketplace.
* New Feature: Custom Templates in the marketplace.
* Custom Template Delete and Shortcut in the dropdown menu
* auto detect framework
* minor ui fixes
* adding custom template feature for tools
* ui tool dialog save template
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* add export all function
* modify exportAll to reuse existing code from other services
* modify routes of export-import
* add exportAll function into UI
* add errorhandler
* add importAll Function into UI for ChatFlow
* modify importAll Function to import tools
* remove appServer variable
* modify exportAll to exportData for new requirement in backend
* chore modify type camelCase to PascalCase in exportImportService
* add import export for variables, assistants, and checkboxes for UI
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Document Store - Phase 2
* Adding additional columns for vector store config, document store phase 2
* Adding additional columns for vector store config, document store phase 2
* Document Store - Phase 2 - Upsert and Query
* ux cleanup
* retrieval settings and more ux changes
* adding MMR params to execution
* Making the upsert process async.
* add upsert history changes
* making the searchParams dynamic
* removing unnecessary params
* add ability to delete data from vector store
* update margin for vector store query
* adding option to save config in the retrieval playground
* adding chunk number for query return chunks
* Adding a Document Store node in the VectorStore category
* update doc store status, ui touchup
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Chore/Vertically center side menu button labels
- Some labels, such as 'Agentflows', were not vertically centered in
their containers in the side menu (MuiDrawer component).
- Fixed the alignment by styling text containers (`<ListItemText>`) with
automatic vertical margins.
- Maintained existing vertical margins by adding a 4px vertical margin
to the primary text element (`<Typography>`).
- Note: future work is needed to fix vertical alignment of the BETA
chip, plus the margin between primary text elements and the secondary
captions should probably be reduced by half.
* Chore/Vertically center side menu BETA chips
- The 'BETA' chips in the side menu were not vertically centered in
their containers in the side menu (MuiDrawer component).
- These chips previously appeared to be vertically centered only by
coincidence and only when their corresponding text label had no caption.
* Chore/Adjust top margin of captions in side menu
- Added `mt: -0.6` to the secondary (caption) label to replicate the
original gap between the primary and secondary labels.
- This adjustment was needed only after the vertical alignment of the
primary text labels were fixed in a prior commit.
* Feature: Option to add apikeys to the DB instead of api.json.
* add api storage type env variable
* code cleanup and simplification.
* md table fixes
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Update get chat messages and stats filter to work with feedback type filter
* Add feedback type filter to view messages dialog
* Fix issues with feedback type filter
* add openai new model (gpt-4o) in the assistant
* add openai new model (gpt-4o) in the models.json
* add openai new model: gpt-40 mini
* fix the new model name
* Add OpenAI new model gpt-4o-mini
* use existing route to get all chatflows
* add export all chatflows functionality
* add read exported all chatflows json file functionality
* add save chatflows functionality in server
* chore rename saveChatflows to importChatflows and others
* chore rewrite snackbar message
* fix import chatflows when no data in chatflows db
* add handle when import file array length is 0
* chore update and add meaning comment in importChatflows
* update method of storing flowdata for importChatflows function
* Refresh/redirect to chatflows when import is successful
* fix lint
---------
Co-authored-by: Ilango <rajagopalilango@gmail.com>
* Bugfix - Fix crash when executing JS function from node and fix hidden response
* add toString() to code executed result
* Change height of CodeEditor to make it bigger, but still make the result visible below.
---------
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
* add langgraph
* datasource: initial commit
* datasource: datasource details and chunks
* datasource: Document Store Node
* more changes
* Document Store - Base functionality
* Document Store Loader Component
* Document Store Loader Component
* before merging the modularity PR
* after merging the modularity PR
* preview mode
* initial draft PR
* fixes
* minor updates and fixes
* preview with loader and splitter
* preview with credential
* show stored chunks
* preview update...
* edit config
* save, preview and other changes
* save, preview and other changes
* save, process and other changes
* save, process and other changes
* alpha1 - for internal testing
* rerouting urls
* bug fix on new leader create
* pagination support for chunks
* delete document store
* Update pnpm-lock.yaml
* doc store card view
* Update store files to use updated storage functions, Document Store Table View and other changes
* ui changes
* add expanded chunk dialog, improve ui
* change throw Error to InternalError
* Bug Fixes and removal of subFolder, adding of view chunks for store
* lint fixes
* merge changes
* DocumentStoreStatus component
* ui changes for doc store
* add remove metadata key field, add custom document loader
* add chatflows used doc store chips
* add types/interfaces to DocumentStore Services
* document loader list dialog title bar color change
* update interfaces
* Whereused Chatflow Name and Added chunkNo to retain order of created chunks.
* use typeorm order chunkNo, ui changes
* update tabler icons react
* cleanup agents
* add pysandbox tool
* add abort functionality, loading next agent
* add empty view svg
* update chatflow tool with chatId
* rename to agentflows
* update worker for prompt input values
* update dashboard to agentflows, agentcanvas
* fix marketplace use template
* add agentflow templates
* resolve merge conflict
* update baseURL
---------
Co-authored-by: vinodkiran <vinodkiran@usa.net>
Co-authored-by: Vinod Paidimarry <vinodkiran@outlook.in>
* Added support for LocalAI to the Speech To Text configuration. Added a few debug statements around speech to text conversion. Finally, refactored the speechToTextProviders a bit to try and remove some magic strings that have undocumented rules around naming.
* LocalAI STT - PR Feedback - Updated LocalAI Image, changed casing, and updated the default model to whisper-1.
* datasource: initial commit
* datasource: datasource details and chunks
* datasource: Document Store Node
* more changes
* Document Store - Base functionality
* Document Store Loader Component
* Document Store Loader Component
* before merging the modularity PR
* after merging the modularity PR
* preview mode
* initial draft PR
* fixes
* minor updates and fixes
* preview with loader and splitter
* preview with credential
* show stored chunks
* preview update...
* edit config
* save, preview and other changes
* save, preview and other changes
* save, process and other changes
* save, process and other changes
* alpha1 - for internal testing
* rerouting urls
* bug fix on new leader create
* pagination support for chunks
* delete document store
* Update pnpm-lock.yaml
* doc store card view
* Update store files to use updated storage functions, Document Store Table View and other changes
* ui changes
* add expanded chunk dialog, improve ui
* change throw Error to InternalError
* Bug Fixes and removal of subFolder, adding of view chunks for store
* lint fixes
* merge changes
* DocumentStoreStatus component
* ui changes for doc store
* add remove metadata key field, add custom document loader
* add chatflows used doc store chips
* add types/interfaces to DocumentStore Services
* document loader list dialog title bar color change
* update interfaces
* Whereused Chatflow Name and Added chunkNo to retain order of created chunks.
* use typeorm order chunkNo, ui changes
---------
Co-authored-by: Henry <hzj94@hotmail.com>
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
* initial commit
* updates to loader to support file upload
* updates to loader to support file upload
* update unstructured file
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Add leads settings to chatflow configuration
* Add leads tab to chatflow configuration with options for lead capture
* Add database entity and migrations for leads
* Add endpoint for adding and fetching leads
* Show lead capture form in UI chat window when enabled
* Add view leads dialog
* Make export leads functional
* Add input for configuring message on successful lead capture
* Add migrations for adding lead email in chat message if available
* show lead email in view messages
* ui touch up
* Remove unused code and update how lead email is shown in view messages dialog
* Fix lead not getting saved
* Disable input when lead form is shown and save lead info to localstorage
* Fix lead capture form not working
* disabled lead save button until at least one form field is turned on, get rid of local storage _LEAD
* add leads API to as whitelist public endpoint
* Send leadEmail in internal chat inputs
* Fix condition for disabling input field and related buttons when lead is enabled/disabled and when lead is saved
* update leads ui
* update error message and alter table add column sqlite migration
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Add a field for custom error message in allowed domains configuration
* enhance UI for more consistency
* update pnpm version
* update pnpm version
---------
Co-authored-by: Henry <hzj94@hotmail.com>
* Update styles for dashboard page
* Fix grid in chatflows and marketplaces pages
* Update styles for main routes
* Create ViewHeader component and use it in chatflows and marketplace
* Use viewheader in all main routes views and make the styles consistent
* Update table styles for chatflow and marketplace views
* Update table and grid styles in all main routes views
* Make backgrounds, borders, and colors everywhere
* Apply text ellipsis for titles in cards and tables
* Update credentials list dialog styles
* Update tools dialog styles
* Update styles for inputs and dialogs
* Show skeleton loaders for main routes
* Apply text ellipsis to chatflow title in canvas page
* Update icons for load and export buttons in tools and assistants
* Fix issue where table header is shown when number of elements is zero
* Add error boundary component to main routes
* Capture errors from all requests in main routes
* Fix id for add api key and add variable buttons
* Fix missing th tag in variables table body
* Fix credentials search background color
* Apply multiline text ellipsis to description in ItemCard
* Fix unused import
* Update styles for dashboard page
* Fix grid in chatflows and marketplaces pages
* Update styles for main routes
* Create ViewHeader component and use it in chatflows and marketplace
* Use viewheader in all main routes views and make the styles consistent
* Update table styles for chatflow and marketplace views
* Update table and grid styles in all main routes views
* Make backgrounds, borders, and colors everywhere
* Apply text ellipsis for titles in cards and tables
* Update credentials list dialog styles
* Update tools dialog styles
* Update styles for inputs and dialogs
* Show skeleton loaders for main routes
* Apply text ellipsis to chatflow title in canvas page
* Update icons for load and export buttons in tools and assistants
* Fix issue where table header is shown when number of elements is zero
* Add error boundary component to main routes
* Capture errors from all requests in main routes
* Fix id for add api key and add variable buttons
* Fix missing th tag in variables table body