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, duration hours minute second in high quality that is uploaded to the channel Coding With Adam 27 May 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,394 times and liked it 30 visitors.