Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support multi tenant chat #129

Merged

Conversation

niztal
Copy link
Contributor

@niztal niztal commented Apr 7, 2024

In continuous to the conversation upon https://github.com/FlowiseAI/Flowise/pull/1709
I've added the support of multi tenant chatId with concatenation of {customerId}_{chatId}.

This way while singe chatflow serves multiple tenants, we can still have grouping of chat messages by specific customer (later on also chat messages feedbacks) by querying all the rows which contains in the chatId column the required customer's id.

@chungyau97 @HenryHengZJ please review

Thanks

@niztal
Copy link
Contributor Author

niztal commented Apr 11, 2024

@HenryHengZJ can you please review?

playground/index.js Outdated Show resolved Hide resolved
src/components/Bot.tsx Outdated Show resolved Hide resolved
@@ -0,0 +1,13 @@
<html>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this as well

@niztal
Copy link
Contributor Author

niztal commented Apr 19, 2024

@HenryHengZJ I've fixed all of your comments, please review

Thanks

pnpm-lock.yaml Outdated
@@ -0,0 +1,4570 @@
lockfileVersion: '6.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this file was accidentally merged last time. it has been removed, can we remove from this PR as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure @HenryHengZJ , done
please review

@HenryHengZJ
Copy link
Contributor

thanks @niztal !

@HenryHengZJ HenryHengZJ merged commit 82bec37 into FlowiseAI:main Apr 22, 2024
@niztal niztal deleted the feature/support-multi-tenant-chatId branch April 22, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants