feat: add Vapi memory cookbook example#33
Draft
benfrank241 wants to merge 1 commit into
Draft
Conversation
Adds applications/vapi-memory/ — a runnable FastAPI webhook server
demonstrating Hindsight memory across Vapi voice calls:
- webhook_server.py exposes /webhook, recalls memories on
assistant-request and retains transcripts on end-of-call-report
via HindsightVapiWebhook
- simulate_call.py POSTs the two Vapi event shapes locally so the
full retain → recall cycle can be exercised without a real Vapi
account or phone number
- README walks through running the server, simulating calls, and
wiring to a real Vapi assistant via ngrok
Memory is keyed per-caller (vapi:caller:{number}) so each phone number
gets its own bank that persists across calls.
Note: requires hindsight-vapi to be released — depends on
vectorize-io/hindsight#923 landing first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds `applications/vapi-memory/` — a runnable FastAPI webhook server that gives Vapi voice assistants persistent caller memory via hindsight-vapi.
Why draft
Depends on vectorize-io/hindsight#923 (the `hindsight-vapi` integration PR) merging and the package being published to PyPI. Once `pip install hindsight-vapi` works, this PR can be marked ready.
Test plan
🤖 Generated with Claude Code