К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Build AI Chatbots with React and AI APIs · LearnSpace
Назад в каталог
courseraПрограммирование

Build AI Chatbots with React and AI APIs

Курс от SkillsBooster Academy
Начальный≈ 7 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

This course teaches you how to build a fully functional AI chatbot application with React and Generative AI APIs. You will connect your app to real AI services, stream responses in real time, and build a multi-chat interface with a sidebar, chat switching, and per-chat history. Every step is practical and hands-on — you will write real code and see results immediately. The course also includes a dedicated module on common React mistakes in JSX, useState, and useEffect — so you can avoid the errors that slow most developers down and write cleaner React code from the start. Throughout the course, you'll explore: React and Generative AI Setup: Set up your development environment, create a React application, and learn how Generative AI APIs work — including pricing models and how to get your first API key. Building a Chatbot UI: Create the app layout, display chat messages, add a text input and send button, and handle message state in the chat. AI API Integration: Connect your chatbot to Google AI (Gemini), OpenAI (ChatGPT), and DeepSeek — and learn how to isolate AI logic for easy reuse and switching between models. Real-Time Streaming: Enable real-time response streaming from Gemini and ChatGPT so messages appear word by word as the AI generates them. Improving User Experience: Add loading states, dark mode, auto-scroll, markdown rendering, auto-resizable text input, and auto-focus to make the chatbot feel smooth and professional. Handling API Issues: Understand usage limits and rate limits, debug broken code, handle API errors gracefully, and display friendly error messages to users. Multi-Chat Sidebar: Build a sidebar that displays all chats, supports switching between them, shows full message history per chat, and includes a "New Chat" button with auto-generated titles. Common React Mistakes: Learn and fix the most frequent mistakes developers make in JSX syntax, useState hook usage, and useEffect hook behavior.

Навыки, которые вы освоите

Cascading Style Sheets (CSS)React.jsApplication Programming Interface (API)Restful APIArtificial Intelligence and Machine Learning (AI/ML)GeminiLarge Language ModelingAI IntegrationsArtificial IntelligenceJavaScript FrameworksUI ComponentsDebuggingJavascriptSoftware DevelopmentOpenAIGenerative AIWeb DevelopmentUser Interface (UI)Frontend IntegrationChatGPT

Программа курса

15 модулей · 83 учебных материалов

01Beginning7 материалов
Welcome to the CourseВидеоSummary of the ProjectВидеоIntro to Generative AIВидеоAI APIs Cost StructureВидеоPreparing Your WorkspaceВидео

Учитесь у экспертов

Anton Voroniuk

CEO, SkillsBooster Academy | Google Academy Trainer | Generative AI Leader

Dmytro Vasyliev

Senior Frontend Engineer | AI-Powered Development & React Expert

Build AI Chatbots with React and AI APIs
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 7 ч

15 модулей

Язык: Английский

Часть программы вашего университета
Building a React ApplicationВидео
How to Clean Up Your ApplicationВидео
02Creating a User Interface for Chatbots4 материалов
Creating the App LayoutВидеоShowing Chat MessagesВидеоInserting Text Box and Send ButtonВидеоManaging Messages in the ChatВидео
03Setting Up Chat with AI6 материалов
Summary of Popular AI APIsВидеоHow to Obtain an API Key for Google AIВидеоLink Google AI (Gemini) for ConversationsВидеоSeparating Google AI logic for ReusabilityВидеоHow to Obtain an API Key for Open AIВидеоLinking Open AI (ChatGPT) for ConversationВидео
04Enhancing User Interaction with Chat8 материалов
Showing Loading StatusВидеоEnabling Markdown Support in MessagesВидеоHow to Make a Text Field Resize AutomaticallyВидеоTurn Off Chat Controls While LoadingВидеоUsing Auto-Focus in a Text FieldВидеоIncorporating Auto-Scroll to the BottomВидеоEnhancing Auto-Scrolling PerformanceВидеоIncluding Dark Mode CompatibilityВидео
05Transmitting Messages Using AI3 материалов
Link Google AI (Gemini) for Live StreamingВидеоActivating Live Chat StreamingВидеоLinking Open AI (ChatGPT) for Live StreamingВидео
06DeepSeek API Connection3 материалов
Summary of DeepSeek R1 and V3 ModelsВидеоObtaining an API Key for DeepSeekВидеоLink DeepSeek for MessagingВидео
07Managing Problems When Using API5 материалов
Application and Speed Restrictions of AI API’sВидеоCode Not Running Properly? Discover How to TroubleshootВидеоHandling API Issues from AI PlatformsВидеоWorking with the New Google AI (Gemini) LibraryВидеоManage and Show User-Friendly Error MessagesВидео
08How to Connect the Anthropic (Claude) API3 материалов
Summary of Anthropic (Claude) ModelsВидеоHow to Obtain an API Key for Anthropic (Claude)ВидеоLinking Anthropic (Claude) for ConversationВидео
09xAI (Grok) API Connection3 материалов
Summary of xAI (Grok) ModelsВидеоObtaining an API Key for xAI (Grok)ВидеоLinking xAI (Grok) for ConversationВидео
10AI Assistant Choice and Improvements for Chatbots3 материалов
Alternating Among AI Assistants in a Chatbot InterfaceВидеоIncrease Chatbot Capabilities to Include Additional AI ModelsВидеоInclude Light Dark Theme Selector in Chatbot User InterfaceВидео
11Constructing the Sidebar with Chats7 материалов
Summary of the New Sidebar for Managing Multiple ChatsВидеоBuild a Sidebar Design to Show All ConversationsВидеоTransform Sidebar into a Hamburger Menu for Mobile DevicesВидеоHow to Derive Message Handling Logic from the App ComponentВидеоActivate Chat Switching Using a SidebarВидеоDisplay Complete Message History for the Current ChatВидеоAdd New Messages to Ongoing ChatsВидео
12Creating the "New Chat" Feature7 материалов
Include a “New Chat” Button to Begin Fresh ConversationsВидеоAvoid Generating Multiple Empty ConversationsВидеоAutomatically Create Chat Titles Based on User InputВидеоSupport Individual Chat History for Google AIВидеоContinue Responding While Moving Between ConversationsВидеоDelete Fake Chat Data and Correct Welcome ScreenВидеоManage Code Sections and Enhance LayoutВидео
13Common Errors - JSX syntax9 материалов
Intro: What You’ll Learn HereВидеоBrowse All Example Code on GitHubЧтениеReturning Several ElementsВидеоFailing to Create Unique KeysВидеоMistakenly Rendering ZeroВидеоMissing Space Between Elements in JSXВидеоOmitting Curly Brackets in CSS StylesВидеоUsing class attribute instead of classNameВидеоOverlooking the Functionality of Virtual DOMВидео
14Common Errors with the useState Hook7 материалов
Browse All Example Code on GitHubЧтениеCombining State and PropsВидеоChanging State ImmediatelyВидеоUnderstanding State Immediately Following an UpdateВидеоOverlooking Functional UpdatesВидеоApplying Hooks Within Loops or Conditional StatementsВидеоMoving from Uncontrolled to ControlledВидео
15Common Errors with the useEffect Hook8 материалов
Browse All Example Code on GitHubЧтениеOverlooking Dependency Arrays in useEffectВидеоMissing Dependencies in useEffectВидеоBuilding Endless Loops Using useEffectВидеоIncluding All Items in the Dependency ArrayВидеоProperly Managing Effects CleanupВидеоHow to Use Async Functions Within useEffectВидеоDo a Quick Knowledge CheckЗадание