You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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'scustomComponents
sub-object, specifically itsbotChatMessage
anduserChatMessage
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 theuserChatMessage
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
The text was updated successfully, but these errors were encountered: