Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Scenario
You need a 5-part blog series on a complex topic — say, “Building a Data-Driven Marketing Stack.” Writing each part from scratch risks inconsistency: the voice drifts, key points get repeated, the narrative arc loses coherence. This playbook generates part 1 with Mavera’s Generate API, then feeds the output back as context for part 2. Each subsequent part receives the full chain of prior outputs, so the AI maintains consistent terminology, avoids repeating itself, and builds on the narrative thread from earlier installments.Mavera-only. No external CMS, no editorial calendar tool. Just Generate + Chat + your brand voice. The chain-of-context pattern works with any generation app.
Architecture
What You Need
| Requirement | Details |
|---|---|
| Mavera API key | Starts with mvra_live_. Get one at Developer Settings. |
| Workspace ID | From your dashboard URL (ws_...). |
| Brand voice ID (optional) | For consistent voice across all parts. Create one via Brand Voice. |
| Series outline | Topics for each part, ordered by narrative logic. |
| Credits | ~150–400 total. See Credits Estimate. |
| Python 3.8+ or Node.js 18+ | requests + openai SDK for Python; native fetch for Node. |
The Flow
Define the series plan
Create a structured outline: series title, number of parts, and each part’s topic, key points, and desired length. The plan drives the generation loop.
Generate part 1
Call
POST /generations with the first topic. No prior context needed — this sets the foundation.Chain subsequent parts
For parts 2–N, include all prior outputs as context in the input. Use Chat to build a continuity prompt that instructs the AI: “Continue this series. Here’s what we’ve covered so far.”
Generate a series introduction
After all parts are complete, use Chat to create a series introduction and linking summary that ties all parts together.
Stage 1 — Define the Series Plan
Stage 2 — Generate with Chained Context
Each part receives a continuity prompt built from all prior outputs. Part 1 has no prior context. Part 5 sees the summaries of parts 1–4.Stage 3 — Generate Series Introduction and Navigation
After all parts exist, use Chat to produce a series introduction and per-part summaries that help readers navigate.Variations
Summarize prior parts to manage context length
Summarize prior parts to manage context length
For series with 8+ parts, summarize each prior part instead of including full text:
Different generation apps per part
Different generation apps per part
Mix content types within the series — a blog post for part 1, a case study for part 3, an interview format for part 5:
Persona-reviewed series
Persona-reviewed series
After generating each part, run it past a target persona via Chat to check relevance:
Auto-generate series plan from a single topic
Auto-generate series plan from a single topic
Use Chat with
response_format to generate the full series outline (topic, key points, length per part) from a single topic before starting the generation loop. The AI ensures logical flow between parts.Cross-link parts in post-processing
Cross-link parts in post-processing
After all parts are generated, append navigation links (← Part N / Part N+2 →) to each output for a connected reading experience.
Credits Estimate
| Operation | Typical Cost | Notes |
|---|---|---|
| Blog post generation (×5 parts) | 75–150 credits | 15–30 per part depending on length |
| Series introduction (Chat) | 1–5 credits | Single chat call |
| Context summaries (if used) | 5–25 credits | 1–5 per summary, only for long series |
| Total (5-part series) | ~80–180 credits | |
| Total (10-part series with summaries) | ~180–400 credits |
What’s Next
Brand Voice Content Library
Create a full content library in one sitting
Content Repurposing Pipeline
Turn each series part into social, email, and ad formats
Content Localization
Adapt the series for different regional audiences
Content Generation
Full API reference for generation apps
Responses API
response_format, personas, and analysis_mode
Credits & Budget
Track and manage credit usage