VAPI Custom Knowledge Base integration for MemoAir voice memory
Project description
memoair-vapi
Serve VAPI's Custom Knowledge Base webhook from MemoAir voice memory. Phase 1 retrieves from the shared org index.
Install
pip install memoair-vapi
Quick start
import json
from memoair_vapi import MemoAirVapiSearch, verify_vapi_signature
search = MemoAirVapiSearch(
api_key="memoair_pk_...",
project_id="proj_xxx",
agent_id="agent_xxx",
top_k=5,
)
# In your webhook handler (raw_body = exact request bytes):
if not verify_vapi_signature(raw_body, signature_header, secret):
... # return 401
payload = json.loads(raw_body)
documents = await search.handle_request(payload) # -> {"documents": [...]}
handle_request dispatches on message.type: knowledge-base-request returns
documents; any other type is acked with {}. A malformed knowledge-base request
raises VapiWebhookError (map it to HTTP 400). Retrieval failures degrade to
{"documents": []} so a live call never breaks.
A runnable FastAPI server is in examples/vapi/.
Docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memoair_vapi-0.1.0.tar.gz.
File metadata
- Download URL: memoair_vapi-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df71052be03abca5fdb68411eea613b99fa4bae0a6e355f1c3045da529f82936
|
|
| MD5 |
f6d31623da50f8e709024461bd31dace
|
|
| BLAKE2b-256 |
8d7da1efd50a499ba8f6e6a706333322f2df8e8fef4dabd16beb7640d1810088
|
File details
Details for the file memoair_vapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: memoair_vapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8336b8c320e9d29df39a4b4072fee82dbd88d22c0d3f8c3f7a98c17eb02bac3
|
|
| MD5 |
fba7d3bd6f0d065376a3dbf230d35597
|
|
| BLAKE2b-256 |
3cc3aa0e5cc63ac8dcb5cc7eceaef9c3776db2b93381597573b148ad52b4aa7a
|