Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Write a ChatGPT Chatbot with Node.js

Traversy Media via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build an AI chatbot from scratch using Node.js, the OpenAI library, and the ChatGPT API in this comprehensive tutorial video. Set up the development environment, obtain an OpenAI API key, and implement chat completion functionality. Create a functional chatbot that interacts with users through the command line, handles user input, and maintains chat history. Follow along with code examples, explore the ReadlineSync library for user input, and learn how to integrate the OpenAI API for intelligent responses. By the end of this 29-minute tutorial, gain hands-on experience in developing a fully functional AI chatbot using Node.js and ChatGPT technology.

Syllabus

- Intro
- Getting Setup
- OpenAI API Key
- OpenAI Library Setup
- Chat Completion Example
- Creating The Chatbot
- ReadlineSync Example
- Get User Input
- Exiting The Program
- Chat Completion for Chatbot
- Trying Out The Bot
- Storing The Chat History
- Update Chat History
- Final Test

Taught by

Traversy Media

Reviews

Start your review of Write a ChatGPT Chatbot with Node.js

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.