Intégrez la puissance de nos agents vocaux dans vos applications
L'API VoxiOne vous permet d'intégrer facilement nos agents vocaux dans vos applications. Créez, configurez et gérez vos agents par programmation avec une API REST moderne et bien documentée.
Créez un compte et générez votre clé API depuis le tableau de bord
curl -X POST https://api.voxione.fr/auth/token \
-H "Content-Type: application/json" \
-d '{"email": "votre@email.com", "password": "motdepasse"}'
Utilisez l'endpoint de création d'agent pour configurer votre assistant vocal
curl -X POST https://api.voxione.fr/v1/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Mon Assistant",
"persona": "commercial",
"language": "fr-FR",
"voice": "sophie"
}'
Initiez un appel sortant ou configurez la réception d'appels entrants
curl -X POST https://api.voxione.fr/v1/calls \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agent_123",
"to": "+33123456789",
"scenario": "prise_rdv"
}'
const VoxiOne = require('@voxione/sdk');
const client = new VoxiOne({
apiKey: 'your_api_key_here'
});
async function createAgent() {
try {
const agent = await client.agents.create({
name: 'Assistant Commercial',
persona: 'commercial',
language: 'fr-FR',
voice: 'sophie',
settings: {
maxCallDuration: 1800,
recordCalls: true,
enableSentimentAnalysis: true
}
});
console.log('Agent créé:', agent.id);
return agent;
} catch (error) {
console.error('Erreur:', error.message);
}
}
createAgent();
import voxione
client = voxione.Client(api_key='your_api_key_here')
def create_agent():
try:
agent = client.agents.create(
name='Assistant Commercial',
persona='commercial',
language='fr-FR',
voice='sophie',
settings={
'max_call_duration': 1800,
'record_calls': True,
'enable_sentiment_analysis': True
}
)
print(f'Agent créé: {agent.id}')
return agent
except voxione.VoxiOneError as e:
print(f'Erreur: {e.message}')
create_agent()
agents->create([
'name' => 'Assistant Commercial',
'persona' => 'commercial',
'language' => 'fr-FR',
'voice' => 'sophie',
'settings' => [
'max_call_duration' => 1800,
'record_calls' => true,
'enable_sentiment_analysis' => true
]
]);
echo "Agent créé: " . $agent->id . "\n";
} catch (VoxiOne\Exception\VoxiOneException $e) {
echo "Erreur: " . $e->getMessage() . "\n";
}
?>
curl -X POST https://api.voxione.fr/v1/agents \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Assistant Commercial",
"persona": "commercial",
"language": "fr-FR",
"voice": "sophie",
"settings": {
"max_call_duration": 1800,
"record_calls": true,
"enable_sentiment_analysis": true
}
}'
SDK complet pour applications web et serveurs Node.js
npm install @voxione/sdk
SDK Python pour Intégrations backend et scripts d'automatisation
pip install voxione
SDK Java pour applications enterprise et Android
implementation 'fr.voxione:sdk:1.0.0'
Recevez des notifications instantanées pour tous les événements importants de vos agents vocaux.
call.started
Appel initié
call.answered
Appel décroché
call.ended
Appel terminé
call.recording_ready
Enregistrement disponible
agent.created
Agent créé
agent.updated
Agent modifié
{
"event": "call.ended",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"call_id": "call_123456",
"agent_id": "agent_789",
"duration": 180,
"status": "completed",
"transcript": "Bonjour, je souhaiterais prendre rendez-vous...",
"sentiment": "positive",
"recording_url": "https://api.voxione.fr/recordings/call_123456.mp3"
}
}