Overview
The Research Assistant use case uses Lily to help with information gathering, research analysis, and knowledge discovery. This digital assistant can search for information, analyze data, synthesize findings, and present research in a clear and organized manner.
Use Case Benefits
- Efficient Research: Quickly gather and analyze information from multiple sources
- 24/7 Research Support: Get research assistance anytime
- Comprehensive Analysis: Synthesize complex information into actionable insights
- Knowledge Organization: Structure research findings for easy reference
Implementation
const NavTalkMessageType = Object.freeze({
CONNECTED_SUCCESS: "conversation.connected.success",
REALTIME_SESSION_CREATED: "realtime.session.created",
REALTIME_SESSION_UPDATED: "realtime.session.updated",
// ... other event types
});
const websocketUrl = 'wss://transfer.navtalk.ai/wss/v2/realtime-chat';
const license = 'your-license-key';
const characterName = 'navtalk.Lily';
const websocketUrlWithParams = `${websocketUrl}?license=${encodeURIComponent(license)}&name=${encodeURIComponent(characterName)}`;
const socket = new WebSocket(websocketUrlWithParams);
// Configure Lily as a research assistant
socket.onmessage = (event) => {
if (typeof event.data === 'string') {
const data = JSON.parse(event.data);
const nav_data = data.data;
if (data.type === NavTalkMessageType.REALTIME_SESSION_CREATED) {
// Send conversation history if needed
// Session configuration (instructions, voice, model) is passed through URL parameters
}
if (data.type === NavTalkMessageType.REALTIME_SESSION_UPDATED) {
// Session ready, start sending audio input
}
}
};
Use function calling to integrate with search APIs, databases, and knowledge bases for more comprehensive research capabilities.