A minimal text-only chat interface for Tavus Conversational Video Interface (CVI) that demonstrates sending user messages through the conversation-respond event.
This app uses the conversation-respond event to send text messages to Tavus Replicas:
const payload = {
message_type: "conversation",
event_type: "conversation.respond",
conversation_id: currentConversationId,
properties: {
text: message
}
};
callObject.sendAppMessage(payload);When a user types a message and presses Enter, the app:
- Captures the text input
- Wraps it in a
conversation-respondevent payload - Sends it via Daily's
sendAppMessage()method - The Tavus Replica receives and responds to the message
- Generate a conversation using the Create Conversation API or Tavus Platform
- Open
index.htmlin your browser - Enter your conversation ID
- Click "Start Chat" and begin typing messages
- Text-only interface (no microphone required)
- Real-time video streaming from Tavus Replica
- URL parameter support (
?conversation_id=YOUR_ID)
Built with vanilla HTML/CSS/JavaScript and Daily.co SDK.