Flowise/packages/server/src/database/migrations/postgres
Ilango db452cd74d
Feature: Collect contact information from users inside the chatbot (#1948)
* 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>
2024-05-02 01:54:59 +01:00
..
1693891895163-Init.ts
1693995626941-ModifyChatFlow.ts
1693996694528-ModifyChatMessage.ts
1693997070000-ModifyCredential.ts
1693997339912-ModifyTool.ts
1694099183389-AddApiConfig.ts add migration query for chat history 2023-09-14 14:50:56 +08:00
1694432361423-AddAnalytic.ts add migration query for chat history 2023-09-14 14:50:56 +08:00
1694658756136-AddChatHistory.ts add chatId column 2023-09-18 21:45:51 +08:00
1699325775451-AddAssistantEntity.ts add openai assistant 2023-11-07 20:45:25 +00:00
1699481607341-AddUsedToolsToChatMessage.ts add file annotations, sync and delete assistant 2023-11-20 00:55:58 +00:00
1699900910291-AddCategoryToChatFlow.ts UX Changes: Ability to set category (tags) to each chatflow; corresponding changes to table display and table search 2023-11-16 08:29:06 +05:30
1700271021237-AddFileAnnotationsToChatMessage.ts add file annotations, sync and delete assistant 2023-11-20 00:55:58 +00:00
1701788586491-AddFileUploadsToChatMessage.ts GPT Vision: Initial implementation of the OpenAI Vision API 2023-12-06 12:31:33 +05:30
1702200925471-AddVariableEntity.ts Update 1702200925471-AddVariableEntity.ts 2023-12-29 15:17:26 +00:00
1706364937060-AddSpeechToText.ts SpeechToText: Adding SpeechToText at the Chatflow level. 2024-01-27 20:26:46 +05:30
1707213601923-AddFeedback.ts Primary Key name must be unique 2024-03-12 22:22:59 +03:00
1709814301358-AddUpsertHistoryEntity.ts Feature/Indexing (#1802) 2024-04-02 23:47:19 +01:00
1710497452584-FieldTypes.ts Bugfix/Postgres migration column type (#2026) 2024-03-24 19:56:07 +08:00
1710832137905-AddLead.ts Feature: Collect contact information from users inside the chatbot (#1948) 2024-05-02 01:54:59 +01:00
1711538016098-AddLeadToChatMessage.ts Feature: Collect contact information from users inside the chatbot (#1948) 2024-05-02 01:54:59 +01:00
index.ts Feature: Collect contact information from users inside the chatbot (#1948) 2024-05-02 01:54:59 +01:00