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

# Inbound Calls

> Let’s build a technical support agent that can help customers troubleshoot their issues over the phone.

> [card] Main Objective
>
> Our goal is to build an agent that can help customers troubleshoot their technical issues over the phone. To achieve this, we'll start by setting up our voice agent, assigning it a dedicated phone number.

**1. Create an Agent**

```typescript web
// Install: npm i voiceos
import VoiceOS from 'voiceos';

const voiceos = new VoiceOS('your-api-key');

const customer_support = await voiceos.agent.create_agent({
    "initial_message": "Hello, how can I help you today?",
    "prompt": "You're a technical support agent helping a customer troubleshoot their computer.",
    "language_model": {
        "provider": "openai",
        "model": "gpt-3.5-turbo-1106"
    },
    "voice": {
        "provider": "azure",
        "model": "en-US-AvaNeural"
    },
    "transcriber": {
        "provider": "deepgram",
        "model": "nova-2"
    }
});
```

```python python
# Install: pip install voiceos
from voiceos.client import VoiceOS;

voiceos = VoiceOS("your-api-key")

customer_support = voiceos.agents.create_agent({
    "initial_message": "Hello, how can I help you today?",
    "prompt": "You're a technical support agent helping a customer troubleshoot their computer.",
    "language_model": {
        "provider": "openai",
        "model": "gpt-3.5-turbo-1106"
    },
    "voice": {
        "provider": "azure",
        "model": "en-US-AvaNeural"
    },
    "transcriber": {
        "provider": "deepgram",
        "model": "nova-2"
    }
})
```

**2. Setup Inbound Agent**

```typescript web
voiceos.phoneNumbers.updatePhoneNumber(
    "your-voiceos-number", 
    {
        "inbound_agent_id": customer_support.id
    }
)
```

```python python
voiceos.phone_numbers.update_phone_number(
    phone_number="your-voiceos-number",
    update_phone_number={
        "inbound_agent_id": customer_support.id
    }
)
```

**3. Ready to Call**

Your agent is now ready to take calls. You can test it by calling your phone number and speaking to the agent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.