- Notifications
You must be signed in to change notification settings - Fork1
Actions for OpenAI GPTs to let ChatGPT inspect the Apache Sling / AEM JCR structure
License
stoerr/JCRActionsForGPT
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation

This provides the action (incl. an OpenAPI declaration) useable for GPTs to read the JCR content repository in Apache Sling / AEM on configured paths.
Explore the docs »
View Demo ·Report Bug ·Request Feature
Table of Contents
This is an OSGI bundle deployable onApache Sling /Adobe Experience Manager (AEM)that provides the actions for aGPT to read the JCR content repository on configured paths. You can use it to direct ChatGPT to read the properties of(anonymously readable) JCR nodes and to read the contents of stored files, and answer questions, do summary tasks etc.
This is currently just done as minimal project so that it does what I need it to do. If it doesn't work for youplease contact me - if there is somebody who is interested and willing to provide feedback and share his experiences,I'll be happy to help and extend it!
Preconditions: To use it you have to be a paying OpenAI ChatGPT customer,since otherwise GPTs aren't available for you.
Configuration: There is an OSGI configuration "ChatGPT JCR Actions" thatconfigures the paths to be read, and an required API key for authentication.The API key should be a long random keythat you can paste both into the configuration and into the authentication section of the GPT, and is responsible forthe security. Additionally there is a number of regular expressions at which read access is permitted. The full path hasto match any of the keys.
To be reachable from ChatGPT it needs to be accessible from the internet via HTTPS. The easiest way I know is usingserveo.net. You can start it with:
ssh -T -R yourdomain.serveo.net:80:localhost:8080 serveo.net
Replaceyourdomain
with a prefix of your choice that contains some randomness to avoid collisions and replace 8080with the port you are using for Apache Sling. The servletonly works if it was configured and is available at the URL /bin/public/gpt/jcractions .
Configure it as actions from a GPT: generally that works likeGPT creation for Co-Developer GPT Engine ,but you have to use the import URLhttps://yourdomain.serveo.net/bin/gpt/jcractions.yaml
.You can either create a GPT that just has this as actions, oradd this as additional actions to a Co-Developer GPT.IMPORTANT: you have to set the authentication type to "API Key", and paste the same API key that you configured in theOSGI configuration into the API key field and set Auth Type to Custom with custom header nameX-JcrActions-Api-Key
.You have to repeat that if you re-import the actions, or ChatGPT gives an empty answer with ClientError (which is a bugin ChatGPT).
CAUTION: if you do it like that it makes your local server reachable from the internet atyourdomain.serveo.net
! Ifyou have proprietary stuff on your server and / or use admin/admin as password, and that worries you, please configure areverse proxy or something like that so that only that URL /bin/public/gpt/jcractions is reachable from the internet.
See theopen issues for a full list of proposed features (andknown issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Anycontributions you make aregreatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can alsosimply open an issue with the tag "enhancement".Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. SeeLICENSE.txt
for more information.
Hans-Peter Störr -www.stoerr.net ,@HansPeterStoerr
Project Link:https://github.com/stoerr/JCRActionsForGPT
About
Actions for OpenAI GPTs to let ChatGPT inspect the Apache Sling / AEM JCR structure