feat(vapi): add Vapi voice AI webhook memory integration#923
Open
benfrank241 wants to merge 3 commits intomainfrom
Open
feat(vapi): add Vapi voice AI webhook memory integration#923benfrank241 wants to merge 3 commits intomainfrom
benfrank241 wants to merge 3 commits intomainfrom
Conversation
8247c04 to
be3e1dc
Compare
…etadata - README.md: full usage docs with FastAPI/outbound/config examples - LICENSE: MIT - CHANGELOG.md: initial 0.1.0 release notes - examples/interactive_webhook.py: manual REPL for testing retain/recall cycle without a real Vapi account - hindsight-docs/docs-integrations/vapi.md: docs page for the integrations site - hindsight-docs/src/data/integrations.json: entry so Vapi appears on the integrations listing - pyproject.toml: added license, authors, keywords, classifiers, URLs for PyPI - tests/test_webhook.py: use AsyncMock to silence spurious 'coroutine never awaited' warning Verified: 20/20 unit tests pass; interactive webhook simulator validates full retain -> recall cycle against live Hindsight.
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.
Adds Hindsight persistent memory to Vapi voice AI calls via a webhook handler.
How it works
Unlike Pipecat (per-turn frame processor), Vapi injects memory once per call via webhooks:
assistant-request— recalls memories for the caller (keyed to phone number) and returnsassistantOverrideswith a system message containing those memoriesend-of-call-report— retains the full call transcript asynchronously (fire-and-forget, never delays the webhook response)None(HTTP 200 no-op)Outbound call helper:
build_assistant_overrides(query)for injecting memory at call creation time.Usage
Changes
hindsight-integrations/vapi/— newhindsight-vapipackage.github/workflows/test.yml— CI job + detect-changesscripts/release-integration.sh— added"vapi"to VALID_INTEGRATIONSTests
20 passing unit tests covering: client resolution, assistant-request recall+inject, end-of-call retain, outbound overrides helper, unknown event no-op.