Getting Started
React Quickstart
Get up and running using React
Installation
npm install vocode
Or, start from our Replit template.
Usage
Setting up the conversation
Our self-hosted backend allows you to expose a websocket route that operates like StreamingConversation
.
To get started, clone the Vocode repo or copy the client backend app directory.
Environment
Copy the .env.template
and add your API keys.
You’ll need:
Running with Docker
From the client_backend
directory:
Running with Python
You now have a server with a Vocode websocket route at localhost:3000! You can now use the useConversation
hook with your self-hosted backend as follows:
Use the status
, start
, and stop
objects within your React components to control conversations with your self-hosted backend, e.g.