EvoluAIv2 Docs

Quick Start

Quick Start

Simple example to create an analysis.

POST /trpc/analysis.create

Create a new analysis from audio file.

Request

POST https://api.evolu-ai.com/trpc/analysis.create
Content-Type: application/json
X-API-Key: evai_your_key_here

{
  "json": {
    "salespersonId": "user_xxx",
    "audioUrl": "https://your-storage.com/audio.mp3"
  }
}

Parameters

NameTypeRequiredDescription
salespersonIdstringYesID of the salesperson
audioUrlstringYes*URL of the audio file (HTTPS)
audioKeystringYes*Storage key if already uploaded
transcriptstringYes*Text transcript directly
clientNamestringNoClient name
clientContactstringNoClient email or phone

*One of: audioUrl, audioKey, or transcript is required

Response

{
  "result": {
    "data": {
      "id": "anal_abc123",
      "score": 87,
      "summary": "Analysis summary here...",
      "transcript": "Full transcript...",
      "createdAt": "2024-01-15T12:00:00Z"
    }
  }
}

cURL Example

curl -X POST 'https://api.evolu-ai.com/trpc/analysis.create' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: evai_your_key_here' \
  -d '{
    "json": {
      "salespersonId": "user_abc123",
      "audioUrl": "https://storage.company.com/call-123.mp3",
      "clientName": "John Doe"
    }
  }'

JavaScript Example

const response = await fetch('https://api.evolu-ai.com/trpc/analysis.create', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'evai_your_key_here'
  },
  body: JSON.stringify({
    json: {
      salespersonId: 'user_abc123',
      audioUrl: 'https://storage.company.com/call-123.mp3',
      clientName: 'John Doe'
    }
  })
});

const { result: { data } } = await response.json();
console.log('Analysis ID:', data.id);
console.log('Score:', data.score);

Python Example

import requests

response = requests.post(
    'https://api.evolu-ai.com/trpc/analysis.create',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': 'evai_your_key_here'
    },
    json={
        'json': {
            'salespersonId': 'user_abc123',
            'audioUrl': 'https://storage.company.com/call-123.mp3',
            'clientName': 'John Doe'
        }
    }
)

data = response.json()
print(f"Analysis ID: {data['result']['data']['id']}")
print(f"Score: {data['result']['data']['score']}")

Response Fields

FieldTypeDescription
idstringUnique analysis ID
scorenumberOverall score (0-100)
summarystringAnalysis summary
transcriptstringFull transcript
salespersonNamestringName of salesperson
clientNamestringClient name
createdAtstringISO timestamp

Error Response

{
  "error": {
    "message": "Invalid input",
    "code": "BAD_REQUEST"
  }
}

On this page