Skip to content

Commit aa555eb

Browse files
docs(blocks): a worked guide for running many locations from one set of prompts
The blocks page is a reference. This adds the path through it for someone who runs the same agent at several locations: move pasted wording and settings into blocks, deploy, give one location its own wording or setting, change a shared block through a pull request, roll it out, and what promotion and pull do along the way. Every command in the guide was run in a scratch copy with the example's two clinics against a local stand-in for the API, and the page says so. It also states three things the reference pages leave implicit: promotion copies every file in the pipeline's patterns, a block used only outside those patterns stays on the sync-blocks list after a promotion, and pushing a file does not remove a setting that exists only in the dashboard. README, the blocks, promotion and file-formats pages, the example's README and AGENTS.md link to it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
1 parent f1039e1 commit aa555eb

7 files changed

Lines changed: 627 additions & 2 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ For changes under `src/`, `tests/` or `.github/`:
379379
| --- | --- |
380380
| Every resource setting, with examples | [Resource reference](docs/guides/resource-reference.md) |
381381
| Minimal tested files | [File formats](docs/guides/file-formats.md), [`examples/starter/`](examples/starter/README.md) |
382-
| Shared prompt text and config | [Blocks](docs/guides/blocks.md), [`examples/blocks/`](examples/blocks/README.md) |
382+
| Shared prompt text and config | [Blocks](docs/guides/blocks.md), [`examples/blocks/`](examples/blocks/README.md), [many locations walk-through](docs/guides/many-locations.md) |
383383
| System prompts | [Writing system prompts](docs/guides/writing-prompts.md), [Vapi Prompt Optimization Guide](docs/Vapi%20Prompt%20Optimization%20Guide.md) |
384384
| Commands, flags, test-call output | [Commands](docs/guides/commands.md) |
385385
| Sync, conflicts, drift, output icons | [How the engine works](docs/guides/how-it-works.md), [sync behavior](docs/learnings/sync-behavior.md) |

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ when run without arguments. Full flags and examples:
234234
| [Everyday workflows](docs/guides/workflows.md) | Deploy, pull safely, recover from a bad deploy, clean up |
235235
| [File formats](docs/guides/file-formats.md) | Write assistants, tools, squads, structured outputs and simulations |
236236
| [Blocks](docs/guides/blocks.md) | Share prompt text and config between assistants, squads and orgs |
237+
| [Many locations, one set of prompts](docs/guides/many-locations.md) | Run several locations from shared wording: a worked path from pasted copies to a rolled-out edit |
237238
| [Resource reference](docs/guides/resource-reference.md) | Look up every setting, with examples |
238239
| [Writing system prompts](docs/guides/writing-prompts.md) | Structure a voice agent's prompt |
239240
| [PR checks](docs/guides/pr-checks.md) | Test every pull request with simulations |

‎docs/guides/blocks.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Every snippet below is a file from [`examples/blocks/`](../../examples/blocks/),
1919
two clinics that share a red-flags block and a voice. CI checks that the
2020
snippets match the files and that the example passes `validate`.
2121

22+
This page is the reference. For the whole job in order, from pasted copies
23+
to an edit rolled out through a pull request, see
24+
[Running many locations from one set of prompts](many-locations.md).
25+
2226
## Prompt blocks
2327

2428
Put the shared text in a Markdown file:

‎docs/guides/file-formats.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ Text or settings that several files share can live in one file under
185185
prompt, or a `$include: <name>` key in any mapping. An org can replace a
186186
shared block with its own. Syntax, merge rules and how a block change is
187187
rolled out: [Blocks](blocks.md), with a tested example in
188-
[`examples/blocks/`](../../examples/blocks/README.md).
188+
[`examples/blocks/`](../../examples/blocks/README.md). For several locations
189+
that share most of their prompts, start with
190+
[Running many locations from one set of prompts](many-locations.md).
189191

190192
## TypeScript resources (`.ts`)
191193

0 commit comments

Comments
 (0)