Skip to content

edgranados/chatgpt-migration-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML to Contentful using ChatGPT

Example code to use ChatGPT to migrate articles from HTML to Contentful

Prerequesites

To use this example, you'll need:

  • A contentful account
  • An openAI account
  • Node.js version 16 or above.

Installation

npm install

Usage

Need to configure .env file to be like this:

OPENAI_API_KEY=YOUR-OWN-OPENAI-TOKEN
CONTENTFUL_MANAGEMENT_TOKEN=YOUR-OWN-CMA-TOKEN
CONTENTFUL_SPACE_ID=YOUR-OWN-SPACE-ID
CONTENTFUL_ENVIRONMENT_ID=YOUR-OWN-SPACE

Next run:

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published