Voiceflow named in Gartner’s Innovation Guide for AI Agents as a key AI Agent vendor for customer service
Read now

You’ll need Node.js 18+ to run this code. Download it here.
You'll also need to have Docker Compose installed.
To get started, copy the `.env` file and set up required environment variables:
To create the containers, install the required dependencies, and launch the server, run:
This will create the following containers:
OpenSearch dashboard can be accessed at http://localhost:5601
There are several API endpoints available for various tasks:
Add content to OpenSearch: `POST /api/add`
Get a response using a live webpage as context: `POST /api/live`
Get a response using the vector store: `POST /api/question`
Clear Redis cache: `GET /api/clearcache`
Delete a collection: `DELETE /api/collection`
Find more detailed API documentation in the README.md file on our repo.
You can also use the `/api/live` endpoint to get a response using a live webpage as context without vectorizing the content.
Once you've added content to OpenSearch, you can use the `/api/question` endpoint to get answers based on your knowledge base.
Now you can easily set up and use your knowledge base to answer questions and provide valuable information for your users using the API Step in your Voiceflow Assistants.