% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chatbot.R
\name{chatbot_ui}
\alias{chatbot_ui}
\title{Chat-bot UI panel}
\usage{
chatbot_ui(id, modes = NULL, default_mode = NULL)
}
\arguments{
\item{id}{character; the Shiny input/output namespace for the chat
widget. Default \code{"shidashi-chatbot"}.}
}
\value{
A \code{shiny::tagList} containing the chat UI or empty.
}
\description{
Returns the UI elements for the AI chat panel: a header bar with
a \dQuote{New conversation} button and the \pkg{shinychat} widget.

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

Typically called inside \code{shiny::renderUI} by
\code{\link{chatbot_server}()} to fill a \code{\link{module_drawer}}.
Can also be placed anywhere in module UI directly.
}
\keyword{internal}
