Prompt workflow
Prompt commands store editable files below a provider-owned base directory. The default is .voice-agent/retell/prompts, and the CLI appends the agent ID.
vac retell prompts pull agent_123# edit .voice-agent/retell/prompts/agent_123/vac retell prompts diff agent_123vac retell prompts update agent_123 --dry-runvac retell prompts update agent_123vac retell agents publish agent_123prompts update changes a draft. Publishing is a separate mutation that makes the selected draft live.
Directory layouts
Section titled “Directory layouts”Retell LLM agents use:
.voice-agent/retell/prompts/<agent-id>/├── metadata.json├── general_prompt.md├── begin_message.txt└── states/ └── <state-name>.mdbegin_message.txt and states/ are optional. Conversation Flow agents use:
.voice-agent/retell/prompts/<agent-id>/├── metadata.json├── global_prompt.md└── nodes.jsonThese layouts are written by src/providers/retell/commands/prompts/pull.ts and read by src/providers/retell/services/prompt-loader.ts.
Custom base directory
Section titled “Custom base directory”--output on pull and --source on diff or update take a base directory, not a JSON file. The CLI still appends <agent-id>:
vac retell prompts pull agent_123 --output ./promptsvac retell prompts diff agent_123 --source ./promptsvac retell prompts update agent_123 --source ./prompts --dry-runDo not change the type in metadata.json to force a different response-engine update. Pull again after changing an agent’s response engine.