# chatkit_integration > This skill defines how chat sessions, messages, and streaming responses flow between the frontend (ChatKit) and backend (FastAPI). - Author: Syeda-inshrah - Repository: syeda-inshrah/Hackathon-01 - Version: 20251224002516 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/syeda-inshrah/Hackathon-01 - Web: https://mule.run/skillshub/@@syeda-inshrah/Hackathon-01~chatkit_integration:20251224002516 --- # Skill: ChatKit Integration ## Purpose Integrate OpenAI ChatKit as the user interface for the RAG chatbot and connect it to the backend OpenAI Agents runtime. This skill defines how chat sessions, messages, and streaming responses flow between the frontend (ChatKit) and backend (FastAPI). ## Responsibilities - Create ChatKit sessions securely - Handle ChatKit message events - Forward user messages to OpenAI Agents - Stream agent responses back to ChatKit UI - Support selection-based queries ## What This Skill Covers - ChatKit session creation - Backend API endpoints for ChatKit - Message forwarding to agent runtime - Streaming responses ## What This Skill Does NOT Cover - Agent reasoning logic - Tool definitions - RAG implementation details ## Constraints - ChatKit must never call the LLM directly - All intelligence must reside in the backend agent - UI must remain stateless ## Used By - Docusaurus frontend - FastAPI backend