Skip to content

Rewrite the Voice AI Prompting Guide - #1540

Open
ahmed-vapi wants to merge 1 commit into
mainfrom
ahmed/prompting-guide-field-tested
Open

ahmed-vapi wants to merge 1 commit into
mainfrom
ahmed/prompting-guide-field-tested

Conversation

@ahmed-vapi

Copy link
Copy Markdown
Contributor

Description

Rewrites the Voice AI Prompting Guide around one running example prompt (City Dental), so every section shows the technique it describes.

  • Structure. The page now follows the order of a prompt: setup, one section per call type, fallbacks, closing, conversation style, guardrails, and call data last.
  • Wording. Adds guidance on explaining why, and on matching "must" and "should" to how firm an instruction is.
  • Runtime context. Adds Liquid guidance for call data and for open versus closed checks. Documents that Liquid renders once at call start, that an assign isn't carried out of an if, and that a missing variable stays in the prompt as written.
  • Tools. Covers tool descriptions, request-start messages, bot_say, default descriptions on Transfer Call, Hang Up, and handoff tools, and not repeating a write without a clear result.
  • Testing. Adds a chat-first simulation workflow, a starting test mix, and a note to mock tools before running a suite.
  • Common issues. Adds a symptom table that links to the section covering each one.
  • Removed. Deletes fern/static/vapi-prompt-reference.md. The page is text only, and nothing else links to the file.
  • Anchors. #integrate-tools-and-apis and #set-response-guidelines are unchanged, so inbound links from other pages still work.

Sources for platform claims

Claim Source
Liquid renders once per call; assign scope; missing versus empty variables Tested with the Chat API and a live call on 2026-12-04
Unmocked tools run for real; a voice simulation ends at an external transfer fern/observability/simulations-advanced.mdx
Default filler message; empty request-start with bot_say fern/tools/custom-tools.mdx, fern/tools/dynamic-tool-messages.mdx
request-start never plays for async tools; message conditions fern/apis/api/openapi.json
Default handoff tool description fern/apis/api/openapi.json
Default Transfer Call and Hang Up descriptions Tested with the Chat API on 2026-12-04
Voice formatting plan defaults and replacements fern/assistants/voice-formatting-plan.mdx
Pronunciation dictionary providers fern/assistants/pronunciation-dictionaries.mdx

Testing Steps

  • fern check passed with 0 errors before the rebase onto main; CI reruns it here
  • The page compiles as MDX
  • Every internal link and in-page anchor on the page resolves
  • The full City Dental prompt, assembled from the page, renders on Vapi with no leftover Liquid tags
  • Run the app locally using fern docs dev or navigate to preview deployment
  • Ensure that the changed pages and code snippets work

cc @roshan-vapi

🤖 Generated with Claude Code

Restructure the page around one running example prompt, with sections for
setup, call types, fallbacks, closing, conversation style, guardrails, and
call data. Add Liquid guidance for runtime context, tool description and
tool message guidance, and a testing workflow. Remove the downloadable
prompt reference file.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://vapi-preview-pr-1540.docs.buildwithfern.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant