How to Build a Retro AI Chat App with OpenAI API and Node.js | Step-by-Step Tutorial

Published: 27 May 2024
on channel: Coding With Adam
1,394
30

In this tutorial we use OpenAI (ChatGPT) API and NodeJs to create a retro AI Chat console application. This is a easy beginner friendly tutorial. We start with a blank project and add the required dependencies and code the logic for a simple console application. As an added bonus we apply color and ascii art for a retro AI chat application.

Links:

Github Code:
https://github.com/CodingWith-Adam/re...

How to create an Open AI API key tutorial
   • How to create OpenAI ChatGPT API Key ...  

Ascii Art
https://patorjk.com/software/taag/#p=...

OpenAI API Documentation
https://platform.openai.com/docs/over...

Node.js Official Website
https://nodejs.org/en

Chapters
00:00 Intro
00:22 Project Setup
01:09 Create env file
01:38 Create Index.js file
01:43 Imports
02:04 Remove depreciation warning
02:47 Create OpenAI object
03:04 Ascii art text
03:48 Message array
03:55 Application Loop
04:09 User input
04:38 Exit app
05:20 Ascii Art text Color
05:37 Run and test app
06:02 Store user input in messages array
06:23 OpenAI API call request and response
08:16 Final test of app


Watch video How to Build a Retro AI Chat App with OpenAI API and Node.js | Step-by-Step Tutorial online without registration, duration hours minute second in high quality. This video was added by user Coding With Adam 27 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,394 once and liked it 30 people.