Can I retrieve my AI-generated channel data via an API interface?

Retrieve AI-generated call data such as transcripts and summaries via the sipgate API – here’s how it works.

What requirements must be met?

With the sipgate app, you can have transcripts, summaries, tasks, and Smart Answers created for each of your calls using the AI features. These are then automatically saved in the sipgate app. You can also use admin via a webhook to transfer the stored information from the shared channels to external databases or your CRM system for further analysis or processing. We explain how this works in this article.

First, you need a URL to which the data is automatically sent as soon as all AI-generated content is available after a phone call.

Where do I enter the configuration data?

As admin in the sipgate Desktop App go to Conversation Intelligence → CI Webhooks. There you enter the desired target URL and save it. After that, after each call from a channel, the entire AI-generated content is transmitted to this URL as a bundle via the webhook.

Important: The content is automatically sent after each channel call - however, it may take a moment, as the transfer only takes place once all AI-generated content is available.

What does it all look like?

The data is generally provided in JSON. However, in the sipgate app you can set whether it should be output in vCon format. "vCon" stands for Virtualized Conversations and is a special format for storing and sharing conversation data, such as chat logs, transcripts, and recordings. Further information about this format can be found here.

This is the JSON payload without vCON:

{
  "callHeadline": "Customer asked about product availability and pricing",
  "call": {
    "id": "call_12345",
    "caller": "+491751234567",
    "callee": "+498912345678",
    "startTime": 1718202000000,
    "endTime": 1718202300000,
    "duration": 300,
    "direction": "inbound"
  },
  "channel": {
    "id": "channel_98765",
    "name": "Sales Hotline"
  },
  "transcriptions": [
    {
      "speaker": "caller",
      "startTime": 0,
      "endTime": 5000,
      "text": "Hi, I wanted to ask if the new product is available."
    },
    {
      "speaker": "callee",
      "startTime": 5001,
      "endTime": 10000,
      "text": "Yes, it is available and currently on a promotional offer."
    },
    {
      "speaker": "caller",
      "startTime": 10001,
      "endTime": 15000,
      "text": "Great! How much does it cost with the discount?"
    },
    {
      "speaker": "callee",
      "startTime": 15001,
      "endTime": 20000,
      "text": "The discounted price is 49.99 Euros including VAT."
    }
  ],
  "summary": "The caller inquired about the availability and pricing of a new product. The agent confirmed availability and provided the discounted price.",
  "note": {
    "content": "Customer seemed interested in the promotional offer and may convert soon."
  },
  "actionItems": [
    {
      "id": "action_1",
      "text": "Follow up with the customer in 2 days to offer further assistance."
    }
  ],
  "smallTalkItems": [
    {
      "id": "smalltalk_1",
      "topic": "Weather",
      "description": "Caller mentioned the sunny weather at the beginning.",
      "pinned": false,
      "dismissed": false
    }
  ],
  "smartAnswers": [
    {
      "id": "smartanswer_1",
      "question": "Is the new product available?",
      "answer": "Yes, it is currently available and on promotion."
    },
    {
      "id": "smartanswer_2",
      "question": "What is the price?",
      "answer": "The promotional price is 49.99 Euros including VAT."
    }
  ]
}

If you have any further questions about AI Assistant Webhooks, write to us: [email protected]

Last updated