- Live Example: AI Agent Dave
- Frontend Repository: business_voice_agent_frontend
- Interest Form Share your interest by completing this form
A voice-enabled AI assistant backend for David McGrath's business website (digispectintelligence.com). This backend powers Agent Dave, providing real-time voice interaction capabilities using Restack AI.
Agent Dave is designed to assist visitors of Digispect Intelligence by providing information about David's profile, expertise, and services. This backend handles the voice processing pipeline, AI model integration, and real-time communication.
- Docker (for running Restack)
- Python 3.10 or higher
- Restack (docker image for local development and account for web hosting)
- Livekit account (for live chat)
- Deepgram account (for speech-to-text transcription)
- ElevenLabs account (for text-to-speech and voice cloning)
- OpenAI (for AI logic)
-
Copy the
.env.examplefile in theagentsubfolder and the.env.local.examplefile in thelivekit_pipelinesubfolder (and rename by removing the.examplesuffixes): -
Configure the following services and update the values in the above mentioned files:
- Sign up at Livekit
- In your
.envand.env.localfiles:- Set
LIVEKIT_URLtoWEBSOCKET_URLvalue - Set
LIVEKIT_API_KEYtoAPI_KEYvalue - Set
LIVEKIT_API_SECRETtoAPI_SECRETvalue
- Set
- Sign up at Deepgram
- Obtain an API key and add to
DEEPGRAM_API_KEYin.env.localfile
- Sign up at ElevenLabs
- Add
ELEVEN_API_KEYandELEVENLABS_VOICE_IDto.env.localfile
- Sign up at OpenAI
- Add
OPENAI_API_KEYto.envfile
Note: Make sure to also set up the business_voice_agent_frontend repository for the complete system.
docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 -p 9233:9233 -p 10233:10233 ghcr.io/restackio/restack:mainUsing uv:
cd agent
uv venv && source .venv/bin/activate
uv sync
uv run devUsing pip:
cd agent
python -m venv .venv && source .venv/bin/activate
pip install -e .
python -c "from src.services import watch_services; watch_services()"Using uv:
cd livekit_pipeline
uv venv && source .venv/bin/activate
uv sync
uv run python src/pipeline.py devUsing pip:
cd livekit_pipeline
python -m venv .venv && source .venv/bin/activate
pip install -e .
python src/pipeline.py devThis backend works in conjunction with the business_voice_agent_frontend. Please refer to the frontend repository for complete usage instructions on how to interact with the voice assistant system.
To deploy on Restack Cloud:
- Create an account at https://console.restack.io
- Follow the deployment instructions in the Restack documentation
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, contact david.mcgrath@digispectintelligence.com
This repo is based on the examples here: