headless_lms_server::controllers::course_material::chatbot

Function new_conversation

Source
async fn new_conversation(
    pool: Data<PgPool>,
    user: AuthUser,
    params: Path<Uuid>,
) -> ControllerResult<Json<ChatbotConversation>>
Expand description

POST /api/v0/course-material/course-modules/chatbot/:chatbot_configuration_id/conversations/new

Sends a new chat message to the chatbot.