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

Rendering Custom Responses (Like a Bot) #367

Closed
indivisable opened this issue Feb 8, 2017 · 3 comments
Closed

Rendering Custom Responses (Like a Bot) #367

indivisable opened this issue Feb 8, 2017 · 3 comments
Labels
chat-bot related to chat bot pinned

Comments

@indivisable
Copy link

indivisable commented Feb 8, 2017

It would be a great feature to have this feature build into at library level, as this library could be used to create not just messenger apps but bot interfaces. Any ideas on a best practices for implementing such dynamic responses, with buttons and other basic input types?

feb-08-2017 12-50-47

@kfiroo
Copy link
Collaborator

kfiroo commented Feb 9, 2017

@indivisable Hey! This sounds like a great feature, but I think it's out of scope for this library.
We are trying to keep this project as simple as possible while providing developers with as much freedom and customizability as possible.

I think you should have all you need to implement this sort of behaviour on your on, but if you need any help feel free to ask here and I'm sure you'll get an answer :)

@indivisable
Copy link
Author

@kfiroo could you give some ideas on how to start? Would you just override the message bubble renderer and inject buttons?

@kfiroo
Copy link
Collaborator

kfiroo commented Feb 12, 2017

@indivisable I would start investigating the custom keyboard control I see in your gif.
This can be done outside the scope of gifted-chat you can start with an empty page with only a TextInput and when focusing it, render the custom keyboard control.
Then, you could use gifted-chat and render your custom-keyboard in the renderComposer method to get the chat to use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat-bot related to chat bot pinned
Projects
None yet
Development

No branches or pull requests

3 participants