Workflows
Build a guide with an agent
A guide is a set of spots the creator has been to, grouped into collections, with chapters for the creator's own writing, the practical facts buyers need (how to get there, hours, fees, places to stay and eat) and the creator's own photos. The agent gives the creator's material structure. It never replaces their experience: every coordinate, fact and photo comes from the creator or from a source the agent names.
Before the first call
Ask the creator for five minutes: which region, which spots, where their map links and tracks live, which photos exist and who took them, the price, the language. Load the rules with get_authoring_guide (or install the SKILL.md) and call whoami to see the key's scopes and limits.
The steps
- Pick or make the guide. list_guides; edit a matching draft, or create_guide when the creator wants a new one. On a guide that exists, read get_publish_status before your first write:
hasUnsavedChangestrue means the creator has edits they have not saved yet (see Saving). - Define the properties first. create_property for what every spot should carry (Best time, Difficulty, Facilities, Elevation). Read them back with list_properties: spots store option ids, never labels.
- Add the spots. create_spot makes a complete spot in one call. For many spots, or a build you will run again, use upsert_spots with your own
ref: re-running never duplicates. Leave lat and lon empty rather than guessing. - Add the facts the creator has. Arrival, hours, fees, status notices, links, extra pins, rules on site. Planning facts explains each shape.
- Group the spots. A region, a theme or the creator's top picks is a collection: create_chapter (collection is the default kind), then set_chapter_members. A chapter is for the creator's own writing (an introduction, tips, local rules, a trip told like a travel blog): create_chapter with kind chapter, then set_chapter_pages, with the spots it visits as refs on Spots pages; membership follows page order. A group with nothing but spots is a collection. The Welcome chapter every guide starts with is the creator's introduction, with a photo the creator is in on its Cover page.
- Add hikes and places where the creator has them: create_hike with the line from their GPX and the spots it goes to, create_facility for stays, transport, tours, food and parking.
- Photos. Ask for the files and who took each one; upload them over REST. Photos has the details.
- Region, price, settings. set_guide_region, set_guide_price with the number the creator gave, update_guide for the headline, tags and country.
- The sales page draft. get_sales_page, then save_sales_page_draft. Testimonials only from real quotes the creator gives; never promise updates. Write counts as tokens, never as typed numbers:
{guide:count:spots} spotsshows the published guide's number, and so doitineraries,hikes,places,chaptersandcollectionsin the same token. - Check the links. check_links, a minute later get_link_report. See Links and link health.
- Run readiness, save and hand back. get_guide_readiness: fix what you can, list the rest, save your work (Saving), send the creator the
reviewUrl. See Readiness.
Saving
Every write lands in the guide's draft at once, which the studio shows as unsaved changes. save_guide_changes keeps the draft as the guide's save, as Save changes does in the studio: the creator's Preview and people with a gift link to a draft read the save, and discard_guide_changes goes back to it. Buyers see neither: a live guide's changes reach them only through a publish.
Save your own work when you finish a task and before you hand back, not after every write. A save keeps the whole draft, the creator's unsaved edits too, which they could then no longer discard: when hasUnsavedChanges was true before your first write, ask the creator before you save, and if they say no, leave the save to them. The save builds in the background, usually in seconds: get_publish_status shows savePendingSince until it is done. queued false while hasUnsavedChanges is true means a save was still building: wait until savePendingSince is null and save again. Sales page drafts, translations and services are not part of the save.
Handing back
Tell the creator in plain words what you created or changed (counts), whether you saved it, what you could not fill and why, the links you could not verify, the facts with a review date, and your review notes. Then the clicks that are theirs: putting the guide on sale and publishing the sales page happen in the studio. Never describe the guide as written by AI in buyer-facing copy; the creator's name is on it.
Write the guide in the creator's language and do not translate unasked. When the creator wants the guide in a second language, see Translate a guide.