A Pipecat AI Assistant integration example with Nextgenswitch
-
Set up a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Create .env: Copy the example environment file and update with your settings:
cp env.example .env
-
Run bot.py:
python bot.py -
Create Custom function in Nextgenswitch:
<?xml version="1.0"?>
<response>
<connect><stream name="stream" url="ws://pipecat_server_ip:8765/ws"/></connect>
<say>Something problem in the stream. It could not connect</say>
</response>