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

Normalize message and handle empty input in MessageParser component in chatbot #635

Closed
wants to merge 1 commit into from

Conversation

RealNickey
Copy link

This pull request fixes the issue where a message is sent directly to the chatbot without any text being entered by the user. The MessageParser component in the chatbot has been updated to normalize the message by converting it to lowercase and removing leading/trailing spaces. Additionally, the component now handles empty input by displaying a default response and stopping further processing. This ensures that an empty message is not sent to the chatbot.

Fixes #555

…n chatbot [[Bug] Chatbot Message Sent Without Text Priyaaa1#555]
Copy link

netlify bot commented Jul 20, 2024

Deploy Preview for startconnect-hub ready!

Name Link
🔨 Latest commit 96c59d3
🔍 Latest deploy log https://app.netlify.com/sites/startconnect-hub/deploys/669bc6ba2203c30008e4a3b8
😎 Deploy Preview https://deploy-preview-635--startconnect-hub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Priyaaa1
Copy link
Owner

@RealNickey the issue is not assigned to you, you will not get any points on merging this PR.

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.

[Bug] Chatbot Message Sent Without Text
3 participants