Skip to content

PattoCF/ContentfulOpenAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create Contentful App.

This is a POC field level app for the Media Reference field (multi). A user submits a prompt to OpenAI for image generation, which returns the configured number of images and image size to the field. The editor can select one or many images that should be created, decide if they should be published or not, and link the images into the Media Reference field.

Screenshot of app

App Definition

The app definition needs to be set up for configuration page, and entry-field (media references, list).

App Definition

Configuration

The app requires only a few elements to be configured:

  • The OpenAI API key
  • How many images should be returned from the API
  • The image size (defaults to 1024x1024)

Configuration screen

Field Configuration

Once the app is installed and configured in your space, you need to use the app's media reference entry field.

Field configuration

Please note that the configuration options for the image sizes are the only available dimensions the API accepts.

Additional Aspects

This app is using Forma 36 – Contentful's design system, and Contentful Field Editors – Contentful's field editor React components to ensure the app continues the look and feel of Contentful, and reuses as much functionality as possible without reinventing the wheel.

About

Field Level App for OpenAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors