# Get the generation details

- **URL:** https://marketplace.gohighlevel.com/docs/ghl/conversation-ai/get-generation-details
- **Summary:** Retrieves detailed information about AI responses including the System Prompt, Conversation history, Knowledge base, website, FAQ chunks, and Rich Text chunks.

[Skip to main content](https://marketplace.gohighlevel.com/docs/ghl/conversation-ai/get-generation-details#__docusaurus_skipToContent_fallback)

Version: v3

Get the generation details
==========================

GET 

https://services.leadconnectorhq.com/conversation-ai/generations

Copy for LLMView as MarkdownOpen in ClaudeOpen in ChatGPTOpen in Cursor

Retrieves detailed information about AI responses including the System Prompt, Conversation history, Knowledge base, website, FAQ chunks, and Rich Text chunks.

### Requirements

#### Scope(s)

`conversation-ai.readonly`

#### Auth Method(s)

`OAuth Access Token``Private Integration Token`

#### Token Type(s)

`Sub-Account Token`

Request[​](https://marketplace.gohighlevel.com/docs/ghl/conversation-ai/get-generation-details#request "Direct link to request")

### Header Parameters

**Version** stringrequired

**Possible values:** \[`v3`\]

API Version

### Query Parameters

**messageId** stringrequired

Message Id

**Example:** `messageId123`

**source** stringrequired

**Possible values:** \[`conversation`, `workflow`\]

**Example:** `conversation`

Responses[​](https://marketplace.gohighlevel.com/docs/ghl/conversation-ai/get-generation-details#responses "Direct link to Responses")

*   200
*   400
*   401
*   422

Successful response

*   application/json

*   Schema
*   Example (auto)

**Schema**

**prompt**stringrequired

The complete prompt used for the AI response.

**Example:** `Personality: Friendly and professional, Intent: Assist customers with inquiries Additional Information: Handle basic support queries`

**intent**string

The intent/goal extracted from location prompt.

**Example:** `Assist customers with product inquiries and support`

**responseMessage**stringrequired

The response message generated by the AI.

**Example:** `Hello! I understand you're interested in our products. How can I assist you today?`

**faqs**array

FAQ chunks used in generating the response from fine-tuned data.

**Example:** `[{"id":"chunk_123","content":"Our return policy allows returns within 30 days of purchase.","title":"Return Policy FAQ"}]`

**website**array

Website content chunks used in generating the response.

**Example:** `[{"id":"chunk_456","content":"We offer free shipping on orders over $50.","url":"https://example.com/shipping"}]`

**agentId**string

ID of the employee/agent that generated the response.

**Example:** `emp_123`

**input**string

The original input message that triggered this response.

**Example:** `What is your return policy?`

**actionLogs**arrayrequired

List of actions taken during this interaction.

**Example:** `[{"contactUpdateAction":[{"fieldId":"field_123","value":"John Doe"}]}]`

**history**arrayrequired

Conversation history leading up to this response.

**Example:** `[{"role":"user","content":"Hi, I have a question about returns"},{"role":"assistant","content":"I'll be happy to help you with information about our return policy."}]`

**mode**string

Mode of operation during this interaction.

**Example:** `auto-pilot`

    {  "prompt": "Personality:\nFriendly and professional,\n\nIntent:\nAssist customers with inquiries\n\nAdditional Information:\nHandle basic support queries",  "intent": "Assist customers with product inquiries and support",  "responseMessage": "Hello! I understand you're interested in our products. How can I assist you today?",  "faqs": [    {      "id": "chunk_123",      "content": "Our return policy allows returns within 30 days of purchase.",      "title": "Return Policy FAQ"    }  ],  "website": [    {      "id": "chunk_456",      "content": "We offer free shipping on orders over $50.",      "url": "https://example.com/shipping"    }  ],  "agentId": "emp_123",  "input": "What is your return policy?",  "actionLogs": [    {      "contactUpdateAction": [        {          "fieldId": "field_123",          "value": "John Doe"        }      ]    }  ],  "history": [    {      "role": "user",      "content": "Hi, I have a question about returns"    },    {      "role": "assistant",      "content": "I'll be happy to help you with information about our return policy."    }  ],  "mode": "auto-pilot"}
> Common reference appendix (shared error/status catalog): see [../_shared-appendix.md](../_shared-appendix.md).
**name:** [Authorization](https://marketplace.gohighlevel.com/docs/ghl/conversation-ai/conversation-ai-api#authentication)
**type:** http**scopes:** `conversation-ai.readonly`**scheme:** bearer**bearerFormat:** JWT**in:** header**description:** Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

*   curl
*   nodejs
*   python
*   php
*   java
*   go
*   ruby
*   powershell

*   CURL

    curl -L 'https://services.leadconnectorhq.com/conversation-ai/generations?messageId=messageId123&source=conversation' \-H 'Accept: application/json' \-H 'Authorization: Bearer <Authorization>'

RequestCollapse all

Base URL

Edit

https://services.leadconnectorhq.com

Auth

Bearer Token

Parameters

messageId — queryrequired

source — queryrequired\---conversationworkflow

Version — headerrequired\---v3

Send API Request

ResponseClear

Click the `Send API Request` button above and see the response here!
