/install elevenlabs-twilio-memory-bridge
elevenlabs-twilio-memory-bridge
Personalization webhook service for ElevenLabs + Twilio voice agents with persistent caller memory.
What It Does
When a call arrives on your Twilio number, ElevenLabs' native integration triggers this webhook. The bridge looks up the caller's history, loads long-term memory facts and daily context notes, combines them with a customizable soul/personality template, and returns everything as a system prompt override so your agent greets each caller with full context.
Architecture
- No audio proxying - ElevenLabs and Twilio handle media directly
- Webhook only - called once per inbound call to inject context
- File-based persistence - JSON files in
./data/, zero external dependencies - OpenClaw compatible - works with any OpenAI-compatible LLM endpoint
Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/webhook/personalize |
POST | ElevenLabs calls this on inbound call |
/webhook/post-call |
POST | Optional post-call cleanup |
/api/memory/{phone_hash} |
POST | Add long-term fact about a caller |
/api/notes |
POST | Add global or caller-scoped context note |
/health |
GET | Health check |
Setup
- Clone repo,
pip install -r requirements.txt - Copy
.env.exampleto.env, fill in secrets - Configure ElevenLabs agent with Custom LLM pointing to your OpenClaw instance
- Enable system prompt + first message overrides in agent Security settings
- Add webhook URL
https://your-domain/webhook/personalizein ElevenLabs settings - Import Twilio number in ElevenLabs dashboard
- Run:
uvicorn app:app --host 0.0.0.0 --port 8000
Required Environment Variables
ELEVENLABS_API_KEY- scoped ElevenLabs keyELEVENLABS_AGENT_ID- your agent IDOPENCLAW_API_BASE_URL- your OpenClaw instance URLPUBLIC_BASE_URL- publicly reachable URL of this service
Security
- All caller phone numbers are SHA-256 hashed before storage/logging
- Secrets loaded exclusively from environment variables
- Optional HMAC webhook signature verification
- Safe for public GitHub repos, no secrets in source
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install elevenlabs-twilio-memory-bridge - 安装完成后,直接呼叫该 Skill 的名称或使用
/elevenlabs-twilio-memory-bridge触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Elevenlabs Twilio Memory Bridge 是什么?
FastAPI personalization webhook that adds persistent caller memory and dynamic context injection to ElevenLabs Conversational AI agents on Twilio. No audio proxying, file-based persistence, OpenClaw compatible. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1058 次。
如何安装 Elevenlabs Twilio Memory Bridge?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install elevenlabs-twilio-memory-bridge」即可一键安装,无需额外配置。
Elevenlabs Twilio Memory Bridge 是免费的吗?
是的,Elevenlabs Twilio Memory Bridge 完全免费(开源免费),可自由下载、安装和使用。
Elevenlabs Twilio Memory Bridge 支持哪些平台?
Elevenlabs Twilio Memory Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Elevenlabs Twilio Memory Bridge?
由 Britrik(@britrik)开发并维护,当前版本 v1.0.0。