import requests
response = requests.post(
'https://dev.voice.ai/api/v1/agent/',
headers={'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json'},
json={
'name': 'My First Agent',
'config': {
'prompt': 'You are a helpful call center agent. Help customers with billing, returns, and questions.',
'greeting': 'Thank you for calling. How can I help you?',
'llm_model': 'gemini-2.5-flash-lite',
'allow_interruptions': True,
'min_interruption_words': 1,
'auto_noise_reduction': True
}
}
)
agent_id = response.json()['agent_id']
print(f'Agent ID: {agent_id}')