3.0.0-beta.14 • Published 9 months ago

@firecms/data_import v3.0.0-beta.14

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

FireCMS Data enhancement plugin

This plugin allows you to enhance data in your FireCMS project, using ChatGPT.

The ChatGPT plugin allows you to use the OpenAI API to generate content using the latest GPT models. This plugin is able to understand the structure of your data and generate content that fits your schema.

In order to be able to use this plugin you need to have a valid subscription.

You can get a subscription in the FireCMS dashboard.

You need to specify the Firebase project id you would like to use the plugin with, in the website. And that's it!

No need to add any subscription key or anything like that.

import React from "react";
import { FirebaseCMSApp } from "@firecms/core";
import "typeface-rubik";
import "@fontsource/ibm-plex-mono";

import { useDataImportPlugin } from "@firecms/data_import";

// TODO: Replace with your Firebase config
const firebaseConfig = {
    apiKey: "",
    authDomain: "",
    projectId: "",
    storageBucket: "",
    messagingSenderId: "",
    appId: ""
};

export default function App() {

    const dataImportPlugin = useDataImportPlugin({
        // Optional callback for defining which collections should be enhanced
        getConfigForPath: ({ path }) => {
            if (path === "books")
                return true;
            return false;
        }
    });

    return <FirebaseCMSApp
        name={"My Online Shop"}
        plugins={[dataImportPlugin]}
        authentication={myAuthenticator}
        collections={[
            //...
        ]}
        firebaseConfig={firebaseConfig}
    />;
}

How does it work?

This plugin uses the OpenAI API to generate content using the latest GPT models. This plugin is able to understand the structure of your data and generate content that fits your schema.

Some tips in order to get the best results:

  • Make sure you select the right data type for your fields.
  • The field names are used to generate the content and are usually enough to generate good results. If you want to get even better results, you can add a description to your fields. This will help the plugin understand the context of your data and generate better results.
  • The collection name is important as well.
  • You can establish relations between fields and the plugin will pick it up. e.g. if you have a field called author and another field called book, the plugin will understand that the author is related to the book and will generate content accordingly. You can use this for making summaries, reviews, translations, SEO content, etc.

Current limitations

  • Markdown fields work but do not get the enhanced content highlighted.
3.0.0-canary.199

12 months ago

3.0.0-canary.215

12 months ago

3.0.0-canary.216

12 months ago

3.0.0-canary.213

12 months ago

3.0.0-canary.214

12 months ago

3.0.0-canary.211

12 months ago

3.0.0-canary.212

12 months ago

3.0.0-canary.210

12 months ago

3.0.0-canary.219

11 months ago

3.0.0-canary.217

12 months ago

3.0.0-canary.218

11 months ago

3.0.0-canary.226

11 months ago

3.0.0-canary.227

11 months ago

3.0.0-canary.224

11 months ago

3.0.0-canary.225

11 months ago

3.0.0-canary.222

11 months ago

3.0.0-canary.223

11 months ago

3.0.0-canary.220

11 months ago

3.0.0-canary.221

11 months ago

3.0.0-canary.228

11 months ago

3.0.0-canary.204

12 months ago

3.0.0-canary.205

12 months ago

3.0.0-canary.202

12 months ago

3.0.0-canary.203

12 months ago

3.0.0-canary.200

12 months ago

3.0.0-canary.201

12 months ago

3.0.0-canary.208

12 months ago

3.0.0-canary.209

12 months ago

3.0.0-canary.206

12 months ago

3.0.0-canary.207

12 months ago

3.0.0-beta.11

1 year ago

3.0.0-beta.12

12 months ago

3.0.0-beta.13

11 months ago

3.0.0-beta.14

9 months ago

3.0.0-canary.237

10 months ago

3.0.0-canary.235

10 months ago

3.0.0-canary.233

10 months ago

3.0.0-canary.234

10 months ago

3.0.0-canary.231

11 months ago

3.0.0-canary.232

10 months ago

3.0.0-canary.239

10 months ago

3.0.0-canary.240

10 months ago

3.0.0-canary.241

10 months ago

3.0.0-canary.248

9 months ago

3.0.0-canary.246

9 months ago

3.0.0-canary.247

9 months ago

3.0.0-canary.244

9 months ago

3.0.0-canary.245

9 months ago

3.0.0-canary.242

9 months ago

3.0.0-beta.10

1 year ago

3.0.0-beta.9

1 year ago

3.0.0-canary.110

2 years ago

3.0.0-canary.111

2 years ago

3.0.0-canary.85

2 years ago

3.0.0-canary.84

2 years ago

3.0.0-canary.87

2 years ago

3.0.0-canary.86

2 years ago

3.0.0-canary.83

2 years ago

3.0.0-canary.82

2 years ago

3.0.0-canary.105

2 years ago

3.0.0-canary.106

2 years ago

3.0.0-canary.103

2 years ago

3.0.0-canary.104

2 years ago

3.0.0-canary.101

2 years ago

3.0.0-canary.102

2 years ago

3.0.0-canary.100

2 years ago

3.0.0-canary.109

2 years ago

3.0.0-canary.107

2 years ago

3.0.0-canary.108

2 years ago

3.0.0-canary.99

2 years ago

3.0.0-canary.89

2 years ago

3.0.0-canary.88

2 years ago

3.0.0-canary.96

2 years ago

3.0.0-canary.95

2 years ago

3.0.0-canary.98

2 years ago

3.0.0-canary.97

2 years ago

3.0.0-canary.92

2 years ago

3.0.0-canary.91

2 years ago

3.0.0-canary.94

2 years ago

3.0.0-canary.93

2 years ago

3.0.0-canary.90

2 years ago

3.0.0-alpha.36

2 years ago

3.0.0-alpha.37

2 years ago

3.0.0-alpha.35

2 years ago

3.0.0-alpha.34

2 years ago

3.0.0-alpha.33

2 years ago

3.0.0-alpha.32

2 years ago

3.0.0-alpha.31

2 years ago

3.0.0-alpha.30

2 years ago

3.0.0-alpha.29

2 years ago

3.0.0-alpha.28

2 years ago

3.0.0-alpha.27

2 years ago

3.0.0-alpha.26

2 years ago

3.0.0-alpha.25

2 years ago

3.0.0-alpha.24

2 years ago

3.0.0-alpha.21

2 years ago

3.0.0-alpha.20

2 years ago

3.0.0-alpha.19

2 years ago

3.0.0-alpha.18

2 years ago

3.0.0-alpha.17

2 years ago

3.0.0-alpha.16

2 years ago

3.0.0-alpha.15

2 years ago

3.0.0-alpha.14

2 years ago

3.0.0-alpha.13

2 years ago

3.0.0-alpha.12

2 years ago

3.0.0-alpha.11

2 years ago

3.0.0-alpha.10

2 years ago

3.0.0-alpha.8

2 years ago

3.0.0-alpha.7

2 years ago

3.0.0-alpha.5

2 years ago