Skip to content

Configuration customComponents missing payload #199

Description

@neilpat1995

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions