Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

storyblok/tutorial-bulk-update-ai-seo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk update AI-generated meta fields

This repository includes all the code necessary to follow our latest Bulk update AI-generated meta fields tutorial.

Try Storyblok free Join the Storyblok Discord community

Get started

No Storyblok account yet? Sign up now to experience a 14-day free trial of all features and enjoy the free Starter plan.

1. Clone this repository

git clone https://github.com/storyblok/tutorial-bulk-update-ai-seo.git

2. Install all dependencies

npm install

3. Authenticate

Rename the file .env.example to .env and provide the required credentials and variables (refer to the tutorial to learn where to find this information):

# Storyblok details
SB_MANAGEMENT_API_TOKEN=your_token_here
SB_SPACE_ID=12345

# Storyblok schema
SB_CONTENT_TYPE_BLOCK=blog_post
SB_AI_SEO_FIELD=sb_ai_seo

# AI API credentials
AI_API_URL=https://api.example.com/
AI_API_TOKEN=your_ai_token_here
AI_CUSTOM_PROMPT="Your_prompt_here"

Run the project locally

To regenerate and update SEO metadata for stories using AI, run:

# Test (recommended first)
npm run update -- --dry-run

# Perform the update
npm run update

Happy building!

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published