https://github.com/kanopi/saplings-ai
[WIP] Helpful AI functionality for content creators.
https://github.com/kanopi/saplings-ai
drupal-recipe internal-tool saplings
Last synced: 8 months ago
JSON representation
[WIP] Helpful AI functionality for content creators.
- Host: GitHub
- URL: https://github.com/kanopi/saplings-ai
- Owner: kanopi
- License: gpl-2.0
- Created: 2024-08-07T16:51:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-07T17:18:18.000Z (about 1 year ago)
- Last Synced: 2024-12-13T07:07:48.563Z (10 months ago)
- Topics: drupal-recipe, internal-tool, saplings
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# Saplings - AI
Helpful AI functionality for content creators.
## Features
### Summary from OpenAI - Post
This ECA workflow uses chatGPT to write a summary of the article and save it to
the Description field on save if the field does not have one. The workflow is
not run if the Description has any content.OpenAI APIs have costs associated with them. [Pricing](https://openai.com/api/pricing/)
## Roadmap
* Summary from OpenAI - Page Workflow
* Summary from OpenAI - Event Workflow
* Featured Image from OpenAI (DALL-E) Workflow
* Text to Audio Workflow
* Audio to Text Workflow
* CKEditor integration(s)## Installation
```
composer require kanopi/saplings-ai
cd web && php core/scripts/drupal recipe ../recipes/saplings-ai
```There are a couple of patches that are needed momentarily.
Add the following to your project's composer.json
```
"patches": {
"drupal/openai": {
"Return type declaration error": "https://www.drupal.org/files/issues/2024-06-28/openai-OpenAIActionBase_return_type-3450196-6.patch",
"Misspelled property triggers errors in ECA module": "https://git.drupalcode.org/project/openai/-/merge_requests/92.diff"
}
}
```Then run `composer update drupal/openai`
### Configure OpenAI
Create an account and a User API key at https://platform.openai.com
Add the OpenAI User key and organization ID to: `/admin/config/openai/settings`
Save, and you are ready to start AI-ing!