Event: New Call

This event is fired whenever a new call is successfully processed by your Jodie AI agent. It provides the complete details of the call, including any data that was collected.

Payload Structure

The webhook payload is a JSON object with the following structure:

KeyTypeDescription
call_idstringThe unique identifier for the call, prefixed with call_.
caller_phone_numberstringThe phone number of the person who initiated the call, in E.164 format. Can be null.
timestampstringAn ISO 8601 formatted timestamp indicating when the call was processed.
data_collectionsarrayAn array of objects, where each object represents a piece of data collected from the caller during the call.

The data_collections Object

Each object in the data_collections array has the following structure:

KeyTypeDescription
keystringThe name of the data point that was collected.
valuestringThe value that was collected for the specified key.

Example Payload

Here is an example of the JSON payload you can expect to receive for a new.call event.

{
  "call_id": "call_1a2b3c4d5e6f7g8h",
  "caller_phone_number": "+14155552671",
  "timestamp": "2023-10-27T10:00:00.000000Z",
  "data_collections": [
    {
      "key": "email",
      "value": "[email protected]"
    },
    {
      "key": "message",
      "value": "Hello, I'd like to book an appointment for next Tuesday."
    },
    {
      "key": "transcript_summary",
      "value": "The caller, Jane Doe, wants to book an appointment for next Tuesday."
    },
    {
      "key": "name",
      "value": "Jane Doe"
    },
    {
      "key": "address",
      "value": "123 Main St, Anytown, USA"
    },
    {
      "key": "phone_number",
      "value": "+14155552671"
    }
  ]
}