Chat
Chatbot
Chat
Send a message to a course chatbot and receive an AI-generated answer with source citations.
POST
Chat
Sends a student question to a course’s AI assistant and returns an answer along with YouTube source citations. This is a public endpoint — no authentication is required.
This endpoint does not require authentication. It is designed to be called directly from embedded chatbot widgets.
Request body
The ID of the course whose chatbot should answer the question.
The student’s question.
Conversation history from a previous response. Pass back the
thread_id value returned by the previous call to maintain multi-turn context. Omit on the first message in a new conversation.Response
200 — Success
The AI-generated answer to the student’s question.
An array of YouTube source citations used to generate the answer.
Updated conversation history. Pass this value back as
thread_id in the next request to continue the conversation.Examples
200