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

Configuration customComponents missing payload #199

Open
neilpat1995 opened this issue Dec 4, 2024 · 0 comments
Open

Configuration customComponents missing payload #199

neilpat1995 opened this issue Dec 4, 2024 · 0 comments

Comments

@neilpat1995
Copy link

I'm trying to add Markdown support for both user and chatbot messages using this chatbot library with the react-markdown package, and from what I understand from the docs, I need to add code for the config.js config object's customComponents sub-object, specifically its botChatMessage and userChatMessage fields. I tried the following for the chatbot responses:
botChatMessage: (props) => <ReactMarkdownMessage {...props} />

but in my personal ReactMarkdownMessage.jsx, I don't know which prop in its props contains the chatbot's message. This same issue occurs for user messages with the userChatMessage config field.

This is similar to #176 but I think that issue is referring to adding the payload to a custom chatbot response message that can be used for specific, targeted chatbot response messages that the dev chooses. Please advise on if this currently works and I'm missing something, or the path forward.

react-chatbot-kit version: v2.1.0

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

1 participant