---
title: Generative AI API Endpoint Details
slug: tutorials/generative-ai-api-endpoint-details
docTags: 
createdAt: 2024-02-06T12:41:36.089Z
---

Each of the Generative AI endpoints utilize the unique **`interactionIdentifier`** returned upon successful declaration of the [audio](docId\:PqLj1vqO7gTf0iqj1LBVN), [chat](docId\:iD41ifX7uC0RZDlb7RbtO), or [transcription](docId:8OMp8XUfyRY9gaB1YIvul) interaction.&#x20;

**NOTE:**  [Audio](docId\:PqLj1vqO7gTf0iqj1LBVN) interactions must have completed processing before the Generative AI Endpoints can provide success responses.  Attempting to make a request prior to the completed processing of an [audio](docId\:PqLj1vqO7gTf0iqj1LBVN) interaction will result in an error response.&#x20;

[Chats](docId\:iD41ifX7uC0RZDlb7RbtO) and [transcripts](docId:8OMp8XUfyRY9gaB1YIvul) allow for immediate access to Generative AI endpoints after declaration.&#x20;

The **Generative AI REST API** calls are all similar in format.  For details on that format, please see the [Making API Requests for GenAI Results](https://docs.elevateai.com/tutorials/making-api-requests-for-generative-ai-results) page. Unsuccessful response codes are documented on that page, as well.

Access a guide to using these features, below.

# <font color="#3694fc">// </font>CX Generative AI API Features

## AutoSummary

- **Description:&#x20;**&#x52;etrieves a summary of the interaction between the Agent and Customer
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/summary**</font>

:::CodeblockTabs
Successful Response

```json
{
  "summary": string
}
```
:::

## Summary Details

- **Description:&#x20;**&#x53;ummarizes additional details about the interaction, including the reason(s) for the interaction, actions taken, entities mentioned, and whether or not a resolution was reached
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/summary/details**</font>

:::CodeblockTabs
Successful Response

```json
{
  "reasons": string[],
  "actionsTakenByAgent": string[],
  "entities": [{
    "type": string,
    "value": string
  }],
  "isResolved": boolean
}
```
:::

## Agent Action Items&#x20;

- **Description:&#x20;**&#x50;rovides insight into the specific actions taken by an agent over the course of a customer interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/agent/action-items**</font>

:::CodeblockTabs
Successful Response

```json
[{
  "action": string,
  "details": string
}]
```
:::

## Agent Coaching Assistant&#x20;

- **Description:&#x20;**&#x50;rovides insight into agent behaviors throughout an interaction, allowing users to identify opportunities for agent coaching and/or agent improvement after a customer interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/agent/coaching-assistant**</font>

:::CodeblockTabs
Successful Response

```json
{
  "coaching": string
}
```
:::

## Interaction Topics

- **Description:&#x20;**&#x50;rovides a list of the topics that were discussed during the interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/topics**</font>

:::CodeblockTabs
Successful Response

```json
[{
  "topic": string,
  "description": string
}]
```
:::

## Conversation Composition

- **Description:&#x20;**&#x50;rovides a list of the questions and/or concerns that were raised by the customer during an interaction, the steps used to address and/or resolve each issue, and the status of each issue, post-interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/conversation-composition**</font>

:::CodeblockTabs
Successful Response

```json
[{
  "concernSummary": string,
  "concern": string,
  "isResolved": boolean,
  "actionsTakenByAgent": string[]
}]
```
:::

## Ask ElevateAI Q\&A

- **Description:&#x20;**&#x41;llows the user to ask questions around a specific interaction – up to 5 questions per interaction – and receive specific answers.&#x20;
  - The data being queried is your data!
  - A single question – up to 2000 characters – is asked in the request body of the **POST&#x20;**&#x6D;ethod. The answer to the question is returned in the response. &#x20;
    - Up to a maximum of 5 successful questions or 5 error responses are allowed per interaction.
  - This endpoint also supports a **GET** method which returns all of the prior question & answer pairs for this interaction (including failed questions and responses)
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/cx/ask**</font>

:::CodeblockTabs
POST Request Body

```json
{
  "question": "<enter your question here>"
}
```

POST Successful Response

```json
[{
  "question": string,
  "answer": string
}]
```

GET Successful Response

```json
[{
  "question": string,
  "answer": string
},
{
  "question": string,
  "answer": string
},
{
  "question": string,
  "answer": string
}]
```
:::

# <font color="#23c9ff">// </font>Generic Generative AI API Features (Non-CX)

## Summary

- **Description:&#x20;**&#x52;etrieves a summary of the interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/summary**</font>

:::CodeblockTabs
Successful Response

```json
{
  "summary": string
}
```
:::

## Summary Details

- **Description:&#x20;**&#x53;ummarizes the entities mentioned within the interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/summary/details**</font>

:::CodeblockTabs
Successful Response

```json
{
  "entities": [{
    "type": string,
    "value": string
  }]
}
```
:::

## Action Items

- **Description:&#x20;**&#x44;escribes the action items which were raised during the interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/action-items**</font>

:::CodeblockTabs
Successful Response

```json
[{
  "action": string,
  "details": string
}]
```
:::

## Topics

- **Description:&#x20;**&#x52;eturns a list of topics that were discussed during the interaction
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/topics**</font>

:::CodeblockTabs
Successful Response

```json
[{
  "topic": string,
  "description": string
}]
```
:::

## Ask ElevateAI Q\&A

- **Description:&#x20;**&#x41;llows the user to ask questions around a specific interaction – up to 5 questions per interaction – and receive specific answers.&#x20;
  - The data being queried is your data!
  - A single question – up to 2000 characters – is asked in the request body of the **`POST`** method. The answer to the question is returned in the response. &#x20;
    - Up to a maximum of 5 successful questions or 5 error responses are allowed per interaction.
    - This endpoint also supports a **`GET`** method which returns all of the prior question & answer pairs for this interaction (including failed questions and responses).
- **Endpoint:&#x20;**/v1/interactions/\{interactionIdentifier\:guid}/<font color="#3694fc">**gen-ai/ask**</font>

:::CodeblockTabs
POST Request Body

```json
{
  "question": "<enter your question here>"
}
```

POST Successful Response

```json
[{
  "question": string,
  "answer": string
}]
```

GET Successful Response

```json
[{
  "question": string,
  "answer": string
},
{
  "question": string,
  "answer": string
},
{
  "question": string,
  "answer": string
}]
```
:::

**Need more help?** Contact the [ElevateAI Support team](mailto\:support@elevateai.com). &#x20;
