> ## Documentation Index
> Fetch the complete documentation index at: https://api.livechatai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve AI Suggestion

> Get detailed information about a specific AI suggestion including the user message, AI response, evaluation tag, potential gap, and suggested improvement.



## OpenAPI

````yaml get /api/v2/ai-suggestions/{suggestionId}
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/ai-suggestions/{suggestionId}:
    get:
      tags:
        - AI Suggestions
      summary: Retrieve AI Suggestion
      description: >-
        Get detailed information about a specific AI suggestion including the
        user message, AI response, evaluation tag, potential gap, and suggested
        improvement.
      parameters:
        - in: path
          name: suggestionId
          schema:
            type: string
            example: msg_1234567890abcdef
          required: true
          description: The unique identifier of the AI suggestion
      responses:
        '200':
          description: Successfully retrieved AI suggestion details
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: msg_abc123def456
                        description: Unique identifier of the suggestion
                      userMessage:
                        type: object
                        properties:
                          id:
                            type: string
                            example: msg_user789xyz
                          text:
                            type: string
                            example: What is the warranty period for your products?
                      aiMessage:
                        type: object
                        properties:
                          id:
                            type: string
                            example: msg_abc123def456
                          text:
                            type: string
                            example: I'm sorry, I don't have information about that.
                      evaluationTag:
                        type: string
                        enum:
                          - OUT_OF_CONTEXT
                          - PARTIAL_ANSWER
                          - LACK_OF_DEPTH
                        example: OUT_OF_CONTEXT
                        description: The type of issue identified with the AI response
                      potentialGap:
                        type: string
                        nullable: true
                        example: >-
                          Warranty information is missing from the knowledge
                          base
                        description: Description of the potential knowledge gap
                      suggestedImprovement:
                        type: string
                        nullable: true
                        example: >-
                          All our products come with a 2-year warranty. For
                          details...
                        description: Suggested improvement for the response
                      chatId:
                        type: string
                        example: chat_xyz789
                        description: ID of the conversation
                      agentId:
                        type: string
                        example: clx1234567890abcdef
                        description: ID of the agent (chatbot)
                      createdAt:
                        type: string
                        format: date-time
                        example: '2024-01-15T10:30:00Z'
        '401':
          description: Unauthorized - invalid or missing API token
        '404':
          description: Suggestion not found
        '429':
          description: Rate limit exceeded - Too many requests to V2 API
        '500':
          description: Internal server error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````