Calls

Events that occur when a call message status changes.

call.started

{
    "data": {
        "id": "d649233e-9127-4ae3-b90e-09611ed94868",
        "delivery_status": "call_in_progress",
        "direction": "INBOUND",
        "type": "call",
        "mode": "ai",
        "body": null,
        "translated_body": null,
        "language": null,
        "translation_language": null,
        "from": "+13232139334",
        "to": "+16314173625",
        "created_at": "2024-10-31T12:54:40.379085Z",
        "updated_at": "2024-10-31T12:54:40.379085Z",
        "conversation_id": "cd4dfb23-9a86-4c11-9240-efbfd7fec874",
        "contact_id": "630fc392-ad52-4e12-a07a-889cb5aed359",
        "channel_id": "95623f0a-4d88-45b6-8074-4a83748d2103",
        "campaign_id": null,
        "campaign_contact_id": null,
        "sequence_id": null,
        "step_contact_id": null,
        "step_id": null,
        "user_id": null,
        "metadata": {
            "type": "phone",
            "duration": null,
            "placeholders_data": {
                "last_name||sir": "Hessel"
            },
            "analysis": null,
            "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
            "agent_version_id": "72ce5cb9-2699-4f68-8e51-1cbeb6cfaa74",
            "llm_id": "02461131-471b-4fb4-ba9e-2aaba0b73b5c",
            "llm_version_id": "d95fcdcd-93b7-448f-9ac6-1bfc3d45c1ea"
        },
        "attachments": []
    },
    "api_version": "v1",
    "event": "call.started",
    "created_at": "2024-10-31T12:54:45.500770Z",
    "request_id": "0f08ac65-32a2-4b02-abbe-ad0b5a3dcd1e",
}

call.ended

{
    "data": {
        "id": "d649233e-9127-4ae3-b90e-09611ed94868",
        "delivery_status": "call_completed.agent_hangup",
        "direction": "INBOUND",
        "type": "call",
        "mode": "ai",
        "body": "Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n",
        "translated_body": null,
        "language": null,
        "translation_language": null,
        "from": "+13232139334",
        "to": "+16314173625",
        "created_at": "2024-10-31T12:54:40.379085Z",
        "updated_at": "2024-10-31T12:54:58.985468Z",
        "conversation_id": "cd4dfb23-9a86-4c11-9240-efbfd7fec874",
        "contact_id": "630fc392-ad52-4e12-a07a-889cb5aed359",
        "channel_id": "95623f0a-4d88-45b6-8074-4a83748d2103",
        "campaign_id": null,
        "campaign_contact_id": null,
        "sequence_id": null,
        "step_contact_id": null,
        "step_id": null,
        "user_id": null,
        "metadata": {
            "type": "phone",
            "duration": 15848,
            "placeholders_data": {
                "last_name||sir": "Hessel"
            },
            "analysis": null,
            "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
            "agent_version_id": "72ce5cb9-2699-4f68-8e51-1cbeb6cfaa74",
            "llm_id": "02461131-471b-4fb4-ba9e-2aaba0b73b5c",
            "llm_version_id": "d95fcdcd-93b7-448f-9ac6-1bfc3d45c1ea"
        },
        "attachments": [
            {
                "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
                "content_type": "audio/x-wav",
                "url": "https://example/organization_fb545ce8-9424-4f82-a2ee-774991180005/calls/dba9f998-f4e1-4cbe-b17f-700394a5e3c0/recording.wav"
            },
            {
                "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
                "content_type": "application/json",
                "url": "https://example/organization_fb545ce8-9424-4f82-a2ee-774991180005/calls/4235e9f2-3be0-416e-bcf7-41b4c4a933df/transcript.json"
            }
        ]
    },
    "api_version": "v1",
    "event": "call.ended",
    "created_at": "2024-10-31T12:55:04.316090Z",
    "request_id": "130de618-9891-4ca2-8b20-00dcd359ca5d"
}

call.analyzed

{
    "data": {
        "id": "d649233e-9127-4ae3-b90e-09611ed94868",
        "delivery_status": "call_completed.agent_hangup",
        "direction": "INBOUND",
        "type": "call",
        "mode": "ai",
        "body": "Agent: Hey this is Charlie with Whippy Employment, may I have your full name please?\nUser: My name is Jack Hannaford.\nAgent: Nice to meet you, Jack. Can you provide me with your current address, including the city, state, and zip code?\nUser: Sure. 105100 Wilshire Boulevard, Los Angeles. California 90024.\nAgent: Great, thanks for that, Jack. What is your preferred contact method - phone call, SMS, or email?\nUser: Uh, let's do SMS.\nAgent: Got it, Jack. Let's move on to your work history. Starting with your most recent job, what was the company name?\nUser: I was working at Global Technical Recruiters.\nAgent: Where is Global Technical Recruiters located?\nUser: Located in Phoenix, Arizona.\nAgent: When did you start working at Global Technical Recruiters, and when did you end your employment there?\nUser: I started 3 years ago\nAgent: Thank you for providing all the necessary information. Our team will review your details and call you back. Have a great day!\n",
        "translated_body": null,
        "language": null,
        "translation_language": null,
        "from": "+13232139334",
        "to": "+16314173625",
        "created_at": "2024-10-31T12:54:40.379085Z",
        "updated_at": "2024-10-31T12:54:59.668935Z",
        "conversation_id": "cd4dfb23-9a86-4c11-9240-efbfd7fec874",
        "contact_id": "630fc392-ad52-4e12-a07a-889cb5aed359",
        "channel_id": "95623f0a-4d88-45b6-8074-4a83748d2103",
        "campaign_id": null,
        "campaign_contact_id": null,
        "sequence_id": null,
        "step_contact_id": null,
        "step_id": null,
        "user_id": null,
        "metadata": {
            "type": "phone",
            "duration": 15848,
            "placeholders_data": {
                "last_name||sir": "Hessel"
            },
            "analysis": {
                "agent_task_completion_rating": "Complete",
                "call_completion_rating": "Complete",
                "call_successful": true,
                "call_summary": "The user, Jack, provided personal information and work history to the agent, Charlie, from Whippy Employment. The call concluded with the agent thanking Jack for his time and stating that they would review his qualifications for potential job matches.",
                "custom_analysis_dat": {},
                "in_voicemail": false,
                "user_sentiment": "Positive"
            },
            "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
            "agent_version_id": "72ce5cb9-2699-4f68-8e51-1cbeb6cfaa74",
            "llm_id": "02461131-471b-4fb4-ba9e-2aaba0b73b5c",
            "llm_version_id": "d95fcdcd-93b7-448f-9ac6-1bfc3d45c1ea"

        },
        "attachments": [
            {
                "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
                "content_type": "audio/x-wav",
                "url": "https://example/organization_fb545ce8-9424-4f82-a2ee-774991180005/calls/dba9f998-f4e1-4cbe-b17f-700394a5e3c0/recording.wav"
            },
            {
                "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
                "content_type": "application/json",
                "url": "https://example/organization_fb545ce8-9424-4f82-a2ee-774991180005/calls/4235e9f2-3be0-416e-bcf7-41b4c4a933df/transcript.json"
            },
            {
                "agent_id": "c13abbed-2de9-45ec-85c3-54f5b340686c",
                "content_type": "application/json",
                "url": "https://example/organization_fb545ce8-9424-4f82-a2ee-774991180005/calls/814ee997-b14c-4aaf-b291-07aab524bde5/analysis.json"
            }
        ]
    },
    "api_version": "v1",
    "event": "call.analyzed",
    "created_at": "2024-10-31T12:55:04.409833Z",
    "request_id": "94a8faa2-25e7-432c-9d87-af78686ace48"
}