> ## Documentation Index
> Fetch the complete documentation index at: https://docs.navtalk.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Business Consultant

> Use Lisa as a business consultant to provide strategic business advice and professional guidance

![Lisa - Business Consultant](https://navtalk.s3.us-east-2.amazonaws.com/uploadFiles/navtalk.Lisa.png)

## Overview

The **Business Consultant** use case leverages **Lisa** to provide strategic business advice and professional guidance. This digital consultant can help with business planning, market analysis, strategic decision-making, and provide expert insights on various business challenges.

## Use Case Benefits

* **Strategic Insights**: Access expert business advice on demand
* **24/7 Consultation**: Get business guidance anytime without scheduling meetings
* **Cost-Effective**: Reduce consulting costs while maintaining quality advice
* **Scalable Support**: Provide consultation services to multiple clients simultaneously

## Implementation

<CodeGroup>
  ```javascript JavaScript theme={null}
  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.Lisa';

  const websocketUrlWithParams = `${websocketUrl}?license=${encodeURIComponent(license)}&name=${encodeURIComponent(characterName)}`;
  const socket = new WebSocket(websocketUrlWithParams);

  // Configure Lisa as a business consultant
  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 sent via realtime.input_config
      }
      
      if (data.type === NavTalkMessageType.REALTIME_SESSION_UPDATED) {
        // Session ready, start sending audio input
      }
    }
  };
  ```

  ```python Python theme={null}
  import asyncio
  import websockets
  import json
  from urllib.parse import quote

  NAV_TALK_MESSAGE_TYPE = {
      'CONNECTED_SUCCESS': 'conversation.connected.success',
      'REALTIME_SESSION_CREATED': 'realtime.session.created',
      'REALTIME_SESSION_UPDATED': 'realtime.session.updated',
      # ... other event types
  }

  async def connect_business_consultant():
      websocket_url = 'wss://transfer.navtalk.ai/wss/v2/realtime-chat'
      license = 'your-license-key'
      character_name = 'navtalk.Lisa'
      
      websocket_url_with_params = f'{websocket_url}?license={quote(license)}&name={quote(character_name)}'
      
      async with websockets.connect(websocket_url_with_params) as websocket:
          async for message in websocket:
              if isinstance(message, str):
                  data = json.loads(message)
                  nav_data = data.get('data')
                  
                  if data.get('type') == NAV_TALK_MESSAGE_TYPE['REALTIME_SESSION_CREATED']:
                      # Send conversation history if needed
                      # Session configuration (instructions, voice, model) is sent via realtime.input_config
                      pass
                  
                  if data.get('type') == NAV_TALK_MESSAGE_TYPE['REALTIME_SESSION_UPDATED']:
                      # Session ready, start sending audio input
                      pass

  asyncio.run(connect_business_consultant())
  ```
</CodeGroup>

<Note>
  Integrate with business intelligence tools and databases to provide data-driven insights and recommendations.
</Note>
