-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat: Add Sentiment Analysis feature #2185
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
base: main
Are you sure you want to change the base?
feat: Add Sentiment Analysis feature #2185
Conversation
This commit introduces a new Sentiment Analysis block and related functionalities. Key features: - **New "Sentiment Analysis" Block:** Allows you to analyze the sentiment (positive, negative, neutral) of text within a Typebot flow, typically from your input. - **Backend Service:** Integrates with the Google Cloud Natural Language API to perform sentiment detection. Includes error handling and returns a structured output (label, score, detected language). - **Frontend Configuration Panel:** Provides a user-friendly interface in the Typebot builder to configure the block, including selecting the input text variable and language settings (auto-detect or specify). - **Analytics Integration:** - Sentiment data (label, score) is stored with results. - New API endpoints provide aggregated sentiment data. - A new "Sentiment" section in the Analytics dashboard displays overall sentiment distribution (pie chart) and trends over time (line chart). - Individual results view can display sentiment indicators. - Results can be filtered by sentiment label. - **Documentation:** Comprehensive documentation added for the new block, its configuration, use cases, and analytics features. - **Unit Tests:** Backend tests for the sentiment analysis service (mocking the Google API) and frontend tests for the configuration panel UI and logic have been added. This feature enables you to build more emotionally intelligent chatbots, gain deeper insights into your satisfaction, and tailor conversation flows based on detected sentiment.
@google-labs-jules[bot] is attempting to deploy a commit to the Typebot Team on Vercel. A member of the Team first needs to authorize it. |
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This commit introduces a new Sentiment Analysis block and related functionalities.
Key features:
This feature enables you to build more emotionally intelligent chatbots, gain deeper insights into your satisfaction, and tailor conversation flows based on detected sentiment.