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

how to send data for some api and make input disabled #186

Open
nellysbr opened this issue Mar 21, 2024 · 3 comments
Open

how to send data for some api and make input disabled #186

nellysbr opened this issue Mar 21, 2024 · 3 comments

Comments

@nellysbr
Copy link

I have two questions regarding the bot configuration in Nextjs. So far, I have successfully configured it (despite some issues with TypeScript and the lack of TypeScript-oriented documentation). However, there are two things I would like to achieve with the bot, and I might be overlooking something:

  1. Data Storage and Sending

The bot asks two questions to the user (e.g., name and phone number). Is there a way to save only the user-entered data (name and phone number) and send it to an API or database? Right now i can use saveMessages to send some data, but it sends all chat history.

  1. Input Text Control

Is there a way to disable text input and only enable it when I want the user to enter information?

Thanks!!

@harshdetroja
Copy link

@nellysbr Instead of installing the react-chabot-kit, you should clone it and use it, which will make things easier for customization.

@jintzz
Copy link

jintzz commented Jun 12, 2024

@nellysbr Instead of installing the react-chabot-kit, you should clone it and use it, which will make things easier for customization.

How to do that?

@harshdetroja
Copy link

@jintzz Download the files and use the components directly instead of installing the chatbot.

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

No branches or pull requests

3 participants