> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getraya.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getraya.app/_mcp/server.

# Raya Voice AI use cases

Raya Voice AI can be integrated into various business workflows. Here are common use cases:

## Customer Support

Deploy voice agents for customer support:

* Handle common inquiries automatically
* Route complex issues to human agents
* 24/7 availability
* Multilingual support

**Example:** A telecom company uses agents to handle billing inquiries, account updates, and service activation.

## Appointment Reminders

Automate appointment reminders:

* Healthcare appointments
* Service bookings
* Meeting confirmations
* Event notifications

**Example:** A clinic sends automated appointment reminders 24 hours before scheduled visits.

## Lead Qualification

Qualify sales leads through automated conversations:

* Collect prospect information
* Score leads based on responses
* Schedule follow-ups
* Integrate with CRM systems

**Example:** A real estate company qualifies leads by asking about budget, location preferences, and timeline.

## Job Recruitment

Conduct initial candidate screening:

* Pre-screening interviews
* Collect candidate information
* Assess qualifications
* Schedule next steps

**Example:** An HR team uses job agents to screen candidates before scheduling in-person interviews.

## Surveys & Feedback

Collect customer feedback:

* Post-purchase surveys
* Service quality feedback
* Market research
* Satisfaction ratings

**Example:** A restaurant chain collects feedback after delivery orders.

## Notifications & Alerts

Send important notifications:

* Payment reminders
* Order updates
* Security alerts
* Emergency notifications

**Example:** A bank sends voice alerts for suspicious account activity.

## Batch Campaigns

Run large-scale calling campaigns:

* Marketing campaigns
* Customer outreach
* Event invitations
* Product launches

**Example:** A political campaign reaches thousands of voters with personalized messages.

## Integration Examples

### Python - Make a Call

```python
import requests
import time

def make_call(agent_id, phone_number):
    response = requests.post(
        'https://v1.getraya.app/api/call',
        headers={'X-API-Key': 'your-api-key'},
        json={
            'agent_id': agent_id,
            'to_number': phone_number,
            'country_code': '91',
            'timezone': 'Asia/Kolkata'
        }
    )
    return response.json()

# Make call
result = make_call('agent-id', '1234567890')
call_uuid = result['uuid']

# Poll for completion
while True:
    status = requests.get(
        f'https://v1.getraya.app/api/call/{call_uuid}',
        headers={'X-API-Key': 'your-api-key'}
    ).json()
    
    if status['outcome'] in ['Completed', 'Failure']:
        break
    
    time.sleep(120)  # Wait 2 minutes
```

### Python - Create Batch

```python
def create_batch(agent_id, contacts):
    response = requests.post(
        'https://v1.getraya.app/api/batch',
        headers={'X-API-Key': 'your-api-key'},
        json={
            'agent_id': agent_id,
            'batch_name': 'Customer Follow-up',
            'contacts': contacts
        }
    )
    return response.json()

# Create batch
batch = create_batch('agent-id', [
    {'contact_name': 'John Doe', 'contact_phone': '1234567890'},
    {'contact_name': 'Jane Smith', 'contact_phone': '9876543210'}
])

# Start batch
requests.post(
    f'https://v1.getraya.app/api/batch/{batch["batchId"]}/start',
    headers={'X-API-Key': 'your-api-key'},
    json={
        'max_retries': 3,
        'retry_after_hrs': 3,
        'max_concurrent_calls': 5,
        'selected_statuses': ['Pending'],
        'schedule': {
            'timezone': 'Asia/Kolkata',
            'start_time': '09:00',
            'end_time': '18:00',
            'days': [1, 2, 3, 4, 5]
        }
    }
)
```