Solved

Using the Retrieve AI content data for calls (/v2/calls/ai-content) End point

  • 14 November 2023
  • 9 replies
  • 257 views

Badge

I am, trying to get the call summary from the  /v2/calls/ai-content)End point.  Note that queries using other endpoints work fine, but this one no matter what throws a 500 server error.  Have been banging my head on this for a while would appreciate any help

URL

/v2/calls/ai-content

Body

{ "filter": { "fromDateTime": "2022-11-14T20:50:27.294Z", "toDateTime": "2023-11-14T20:50:27.295Z", "callIds": [ "555785916001072125" ], ,
  "contentSelector": {
    "brief": true,
    "outline": true,
    "highlights": true,
    "callOutcome": true
  } },

}

Method

POST

icon

Best answer by Andrew O'Driscoll 15 November 2023, 18:18

View original

9 replies

Userlevel 6
Badge +1

Hey @Neil Cosgrove! Working on finding a solve for you. Appreciate your patience - stay tuned for an answer shortly! 

Userlevel 5
Badge +3

@Neil Cosgrove 

I cut and pasted your JSON into Postman (and a JSON editor) and it complained about the format. (Could have been caused by the cut and paste)

In any case I edited it down to this, and it worked in 2 Gong instances I tested in.  Let us know if this gets you where you need to go! 

{

"filter": {

"fromDateTime": "2023-11-14T20:50:27.294Z",

"toDateTime": "2023-11-15T04:50:27.295Z",

"__callIds": ["555785916001072125"]

},

"contentSelector": {

"brief": true,

"outline": true,

"highlights": true,

"callOutcome": true

}

}

Badge

It now doesn’t throw an error, but no content is being returned.  all that gets returned back is the callid.  I not that you have a “__” before callids, I did not see that in the docs?

Thank you for the help

Userlevel 5
Badge +3

@Neil Cosgrove  the __callIds was just to comment it out. The API will ignore it. 

I also saw data returned with just the call ID. When I put the call into Gong I saw there was no spotlight generated yet for the call, thus nothing in the API. Once the spotlight was created the API returned data.

Makes sense kinda, but could be limiting based on what you’re trying to do.  Create a spotlight for one of the calls, and see if you have the same experience. 

 

 

Badge

Makes perfect sense accept why was the spotlight not generated for the call (that’s a question for Gong, not yourself).  My use case is that I want to get the spotlight of client calls and add it as notes in my CRM.

Userlevel 5
Badge +3

@Neil Cosgrove If you are using SFDC the spotlight details can get pushed there using the latest Gong for Salesforce Managed Package. (Not HubSpot yet) See this help center article that says 

 

Spotlight can be pushed to your CRM via the call brief and call highlight fields in the Conversation object page layout

@Andrew O'Driscoll @Molly Kipnis @Neil Cosgrove Is this endpoint still available? I can’t seem to find any documentation on the ai-content endpoint in Gongs Public API documentation

Userlevel 6
Badge +1

@Blake.Brown Andrew is traveling until May — @Neil Cosgrove, please let us know if this is still available. 🙂 Blake, I’ll check with the teams internally. Stay tuned!

Userlevel 1

Hey @Blake.Brown - the endpoint referenced here is /v2/calls/extensive

Reply