AI prompt
Paste one prompt into ChatGPT or Claude to prepare your repository.
If your blog does not follow the Jekyll, Hugo or Astro layout, an AI assistant can read your repository and tell you the settings BlogBERT needs.
- Copy the prompt below.
- Paste it into ChatGPT or Claude.
- Add the list of files in your repository under the last line. On GitHub, open the repository and copy the names of its folders and files, or paste one or two example posts.
- Enter the answers in Setup, under Publishing, after you connect GitHub.
The prompt
I want to connect my website's GitHub repository to BlogBERT. BlogBERT adds each blog post to a site as one Markdown file with YAML front matter, plus its images. I am not technical, so please explain in plain words.
I will paste the list of files in my repository below. If you need more, ask me for one or two example files.
From that, tell me:
1. Which preset matches my site: jekyll, hugo, astro, nextjs_mdx, answer_first or custom. The presets are:
- jekyll: posts in `_posts`, images in `assets/images/blog`, images served from `/assets/images/blog`, post address `/blog/{slug}/`, file names like `{yyyy}-{mm}-{dd}-{slug}.md`
- hugo: posts in `content/posts`, images in `static/images/blog`, images served from `/images/blog`, post address `/posts/{slug}/`, file names like `{slug}.md`
- astro: posts in `src/content/blog`, images in `public/images/blog`, images served from `/images/blog`, post address `/blog/{slug}/`, file names like `{slug}.md`
- nextjs_mdx: posts in `content/blog/{category}`, images in `public/images/blog`, images served from `/images/blog`, post address `/blog/{category}/{slug}`, file names like `{slug}.mdx`
- answer_first: posts in `frontend/content/blog`, images in `frontend/public/blog-images`, images served from `/blog-images`, post address `/blog/{slug}/`, file names like `{slug}.md`
2. The folder where my blog posts live now.
3. The folder where blog images live, and the web address those images are served from, for example /images/blog.
4. The address pattern of a published post, with {slug} where the post's name goes, for example /blog/{slug}/.
5. The file name pattern of a post, for example {slug}.md or {yyyy}-{mm}-{dd}-{slug}.md.
6. The branch my site is built from.
7. Any front matter field my posts need beyond these, which BlogBERT writes: title, description, date, slug, image, image_alt, canonical, tags.
The nextjs_mdx preset is for categorized MDX blogs using the folders above, not every Next.js site. It writes title, description, answer, datePublished, dateModified, author, keyFacts, faqs, whatsappMessage and ctaText. If it matches, tell me the existing category folder name to enter, for example trade-guides. Do not invent a category or change my site's code.
The answer_first preset is for sites whose posts need question and answer front matter. It also writes keyword, cluster, published and updated, keeps every value on one line, and always names the file {slug}.md. The folders and post address above are defaults that you can change.
If my site has no blog folder yet, say so and tell me what to add so one of the presets fits.
Answer with a short table in this order: preset, posts folder, images folder, images web address, post address pattern, file name pattern, branch. Do not guess. If something is missing from what I pasted, ask me for it.
My repository's files: