8000 GitHub - RobErskine/fitc-2024: Implementing Generative AI with your Headless CMS; featuring Storyblok
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RobErskine/fitc-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FITC 2024

This serves as a code repo for the examples show during the "AI-Powered Content Management: Transforming Your Headless CMS With Storyblok" talk at FITC 2024.

Serverless Functions

There are two examples here that operate as serverless functions that are called via Storyblok Webhooks. Storyblok webhooks

Each webhook is set up to only trigger on specific actions in Storyblok, for instance on Image Upload or on Story Publish.

Each serverless function is set up in my base repo under netlify/functions, which is configured in Netlify.

Storyblok Tool Extensions.

You can read more about Storyblok Tool Extensions here.

The styleguide-enforcer is set up as it's own repo originally. For ease of use I included it here. Check out the README for how to set that up within Storyblok.

Storyblok extensions

Disclaimer

Note that in the Tool Extensions I use useEffect to dynamically call OpenAI directly. This is generally bad practice as it exposes your OpenAI API key for those that know where to look for it. Since this is an internal tool that only ever loads in an iFrame for my own CMS editors, I cut a couple corners here. If you are going to build this for real, or use it outside of your CMS, I would recommend moving it to a Serverless function just like I do with altText.mts and seoTags.mts

Questions?

Please feel free to create an issue or reach out to me on Twitter, @erskinerob!

About

Implementing Generative AI with your Headless CMS; featuring Storyblok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0