Skip to contents

Returns the UI elements for the AI chat panel: a header bar with a “New conversation” button and the shinychat widget.

When shinychat is not installed or the chat-bot is disabled via options(shidashi.chatbot = FALSE), returns an empty tagList().

Typically called inside shiny::renderUI by chatbot_server() to fill a module_drawer. Can also be placed anywhere in module UI directly.

Usage

chatbot_ui(id, modes = NULL, default_mode = NULL)

Arguments

id

character; the Shiny input/output namespace for the chat widget. Default "shidashi-chatbot".

Value

A shiny::tagList containing the chat UI or empty.