save_and_present
Writes the finished news post to a timestamped folder with all publish-ready files, then presents an HTML preview and instructions to hand the post over.
Instructions
Step 11. Write the finished package to disk and hand the post over.
pack from build_publishing_pack is REQUIRED - this refuses without it.
That tool holds the permalink, tags, banner URL and image prompt, and it is
where the user gets asked what the banner should look like. Skipping it
produces a package that looks finished and is missing all five.
Returns SHOW_THIS_TO_THE_USER (print it verbatim) and preview_html (put
it in an HTML artifact so the user can see the post laid out).
Produces a timestamped folder containing paste-into-blogger.html (both
JSON-LD blocks plus the styled body - the file to paste into the post
editor), index.html (a standalone preview page with meta, canonical, Open
Graph and Twitter tags in the head), body.html, newsarticle.jsonld,
faqpage.jsonld, a copy of the image, meta.json, report.md, and - when pack
from build_publishing_pack is supplied - publish-pack.md with the title,
labels, permalink and Gemini image prompt.
report.md is the human-readable summary: verification verdict and
publishers, human score before and after humanising, SEO score with any
must-fix items, and the reference list. Populate meta with keys
verification, human_score ({before, after, detector_used,
is_real_detector}), seo and references and they all appear in it.
Pass the meta dict that build_schema returned - canonical_url, image_url and
the rest are read from it when not given explicitly. Put the verification
result, both human scores, the SEO audit and the reference list in meta so the
post stays auditable later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| pack | No | ||
| slug | Yes | ||
| title | No | ||
| language | No | ||
| html_body | Yes | ||
| image_url | No | ||
| image_path | No | ||
| description | No | ||
| json_ld_faq | No | ||
| canonical_url | No | ||
| json_ld_article | No |