Git Product home page Git Product logo

app-text-improve's Introduction

Text improvement app for Enonic XP

This Enonic XP application adds a widget to your Enonic XP site. This widget lets you use ChatGPT to run a simple usertest on your text content.

NB! The app requires paid OpenAI subscription

Installation

Build yourself

Build this app with gradle. In the terminal, from the root of the project, enter ./gradlew build. On Windows, just enter gradlew build in the command line from the project root. Next, move the JAR file from /build/libs to your $XP_HOME/deploy directory.

The Text improve app will then be available in the widget panel in the content studio.

If you update package.json, make sure to run ./gradlew npm_install.

How to use this app

After adding this app you should see a new Textimprove option in the detail panel to the top right in the content studio.

Adding API key

The app is dependent on an openai API key to communicate with the ChatGPT api. Follow the steps below to create and add the API key to the widget:

  • Go to the openai webpage
  • Click "log in" to create a free account
  • Select API
  • Hover over the openai icon to the left to open the usermenu
  • Select API keys and create a new key
  • Create a config file called no.bouvet.app.textimprove.cfg
  • Copy the key and add it to the file like so: apiKey = YOUR KEY HERE
  • Store the config file on the Enonic server

If the server is hosted by Enonic, then they have to add the config file to the server.

Checking reader expectations

Selecting a content and pressing the Check reader expectations button will start the process. The widget will send the title and preface of the article to ChatGPT and ask for a reader's expectations. The answer will be displayed in the widget.

Validating reader expectations

Selecting a content and pressing the Validate reader expectations button will start the process. The widget will send the entire article to ChatGPT and ask if the article fulfills the reader's expectations, based on the title and preface. The answer will be displayed in the widget.

Releases and Compatibility

Version XP version
1.0.1 >=7.9.2

Changelog

Version 1.0.1

  • Initial release

app-text-improve's People

Contributors

tinaeile avatar

Watchers

Jonas Lepsøy avatar Daniel Holmen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.