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

Опубликовано: 10 Апрель 2026
на канале: Coding With Adam
1,789
36

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 and E...  

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