Generate a brief for a CRM entity

Prev Next
Get
/v2/entities/get-brief

Get a brief for an account, deal, contact, or lead that exists in your CRM. Briefs are set up in the Gong Agent Studio and you must provide the name of the brief you want to generate. A call to this API consumes Gong credits according to the number of emails and calls used to generate the brief. The brief is generated from calls or emails associated with the entity within the specified time period. The response includes:

  • The brief
  • Details of emails and calls used to generate the brief
Required authorization scope: 'api:ai-briefer:read'. Get AI-generated briefs for entities (Accounts, Deals, Contacts, Leads) using briefs configured in Gong.
Query parameters
workspaceId
integer (int64) Required

The ID of the workspace the brief belongs to. Use the Workspaces API to look up workspace IDs.

Example1237998047883638784
briefName
stringRequired

The name of the brief to generate. Briefs are configured in the Agent Studio > AI Briefer.

ExampleAccount overview
crmEntityType
stringRequired

The object type of the entity in the CRM.

Valid values[ "ACCOUNT", "CONTACT", "DEAL", "LEAD" ]
ExampleACCOUNT
crmEntityId
stringRequired

The CRM Id of the entity the question is asked about.

Example125260001VdfoWBAR
timePeriod
stringRequired

Specifies the time period during which associated calls and emails must have occurred to be used to generate the answer. The calls and emails must be associated with the specified entity.

Valid values[ "LAST_7DAYS", "LAST_30DAYS", "LAST_90DAYS", "LAST_90_DAYS_SINCE_LAST_ACTIVITY", "LAST_YEAR_SINCE_LAST_ACTIVITY", "LAST_YEAR", "THIS_WEEK", "THIS_MONTH", "THIS_YEAR", "THIS_QUARTER", "CUSTOM_RANGE", "ALL_CONVERSATIONS" ]
ExampleCUSTOM_RANGE
fromDateTime
string

Required when timePeriod is CUSTOM_RANGE Specifies the date and time (UTC) on or after which calls (based on call start time) and emails must have occurred to be included when generating the answer. Date and time (in ISO-8601 format: '2024-10-18T08:00:00Z', where Z stands for UTC).

Example2024-01-01T00:00:00Z
toDateTime
string

Relevant only when timePeriod is CUSTOM_RANGE Specifies the date and time (UTC) before which calls (based on call start time) and emails must have occurred to be included when generating the answer. Date and time (in ISO-8601 format: '2024-10-18T08:00:00Z', where Z stands for UTC).

Example2024-12-31T23:59:59Z
Responses
200

Successful response

Expand All
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
numOfCallsSearched
integer (int32)

Number of calls searched to generate the brief

Example7
numOfEmailsSearched
integer (int32)

Number of emails searched to generate the brief

Example102
briefSections
Array of object (BriefSectionDto)

The sections defined for the brief

object

The sections defined for the brief

title
string

The title of the brief section.

ExampleCustomer overview
sectionSummary
Array of string

The content displayed for this section.

string
ExampleAcme is involved in customer service.
conversationFindings
object (ConversationFindingsDto)

Evidence from calls and emails used to generate this section of the brief. Includes the relevant calls and emails and the supporting excerpts identified in them. Only relevant when briefSectionType is Conversations.

callFindings
Array of object (BriefCallFindingDto)

Evidence from calls used to generate this section of the brief. Includes the relevant calls and the supporting excerpts identified in them.

object

Evidence from calls used to generate this section of the brief. Includes the relevant calls and the supporting excerpts identified in them.

call
object (CallInfoDto)

Details of the call that contains supporting evidence for the answer.

id
string

The Gong ID of the call.

Example123454809855576620
title
string

The title of the call.

ExampleGong + Acme Bi-Weekly
started
string (date-time)

The date and time the call was recorded in the ISO-8601 format (e.g., '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC).

Example2024-06-15T14:30:00Z
url
string

Link to the call page in Gong

Examplehttps://gong.app.gong.io/call?id=123454809855576620
emailFindings
Array of object (EmailFindingDto)

Evidence from emails used to generate this section in the brief. Includes the relevant emails and the supporting excerpts identified in them.

object

Evidence from emails used. Includes the relevant emails and the supporting excerpts identified.

emails
Array of object (EmailInfoDto)

Details of the emails that contain supporting evidence.

object

Details of the emails that contain supporting evidence.

id
string

The Gong ID of the email. This Id can be used to view the email in Gong by adding it to a Gong URL.

Example5gfz1gfshfhqdfgsaghhjvcah
title
string

The subject of the email.

ExampleAcme Legal/Compliance Needs
sentDateTime
string (date-time)

The date and time the email message was sent in the ISO-8601 format, for example: '2024-01-17T16:20:05-03:00' or '2016-02-16T03:57:04.834+05:30' or '2020-11-20T21:30:07.233692Z', where Z stands for UTC.

Example2024-01-17T19:20:05Z
briefSectionType
string

The section type. Determines the source of the data, and what type of data is included in the section.

Valid values[ "Conversations", "Web", "CrmOrGongData", "McpConnection" ]
ExampleConversations
webFindings
Array of object (WebFindingDto)

Evidence from results of a web search used to generate the brief for this section.

object

Evidence from results of a web search used to generate the brief for this section.

domain
string

The domain of the website. This domain might be a Gong or a third-party URL that redirects (HTTP 302) to the original website.

title
string

The title of the web page.

url
string

The web page URL

mcpResult
object (McpResultDto)

Result returned from MCP connections defined for this brief section. Only relevant when briefSectionType is McpConnection.

connections
Array of object (ConnectionResultDto)

Connection result for each MCP connection

object

Connection result for each MCP connection

name
string

The name given to the MCP connection in Gong

ExampleSentry
status
string

The status of the MCP connection

Valid values[ "SUCCESS", "AUTH_REQUIRED", "FAILED", "NOT_CONNECTED", "NO_MATCHING_TOOLS", "NO_USER_CONTEXT", "UNKNOWN" ]
ExampleNOT_CONNECTED
servers
Array of string

Set of server names that were invoked during the execution.

string
ExampleSentry MCP
mcpStatus
string

Overall execution status

Valid values[ "SUCCESS", "FAILURE", "CONNECTION_ERROR" ]
ExampleCONNECTION_ERROR
errorMessage
string

Overall error message (dropped when status is SUCCESS)

ExampleFailed to establish one or more required connections. Verify the connection and try again.
400

Malformed request

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
401

Access denied

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
402

Payment Required

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
403

Forbidden

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
404

NotFound

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
429

API request limit exceeded

Headers
Retry-After
integer (int32)
Number of seconds to wait before making a new request.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
500

Failed to complete the operation due to an unexpected error

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string