set_chatlog | R Documentation |
This function sets up a new chatlog object for a conversation.
set_chatlog(
initial_role = "system",
initial_content = "You are a helpful assistant.",
chatlog_id = NULL
)
initial_role |
A character string representing the role issueing the initial content (per default: "system") |
initial_content |
A character string representing the initial message from the system |
chatlog_id |
A character string representing the ID of this conversation. Per default, this will be set automatically. |
A new chatlog object
chat <- set_chatlog("Welcome to our chat!")
is_chatlog(chat)
chat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.