Retrieves detailed information about AI responses including the System Prompt, Conversation history, Knowledge base, website, FAQ chunks, and Rich Text chunks.
Retrieves detailed information about AI responses including the System Prompt, Conversation history, Knowledge base, website, FAQ chunks, and Rich Text chunks.
http
GET https://services.leadconnectorhq.com/conversation-ai/generations
Authorization
Name
Type
Required
Example
Description
Authorization
string
Yes
Bearer token generated from the Leadway portal. See Authentication.
Version
string
Yes
2021-07-28
API version.
Query parameters
Name
Type
Required
Example
Description
messageId
string
Yes
messageId123
Message Id
source
string
Yes
conversation
Responses
200 - Successful response
prompt (string, required): 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 account prompt. Example: Assist customers with product inquiries and support
responseMessage (string, required): The response message generated by the AI. Example: Hello! I understand you're interested in our products. How can I assist you today?
faqs (object[]): FAQ chunks used in generating the response from fine-tuned data.
website (object[]): Website content chunks used in generating the response.
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 (object[], required): List of actions taken during this interaction.
history (object[], required): Conversation history leading up to this response.
mode (string): Mode of operation during this interaction. Example: auto-pilot
json
{
"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."
}
// truncado: 3 lineas mas
}