:doc:`ConnectWisdomService <../../wisdom>` / Client / get_quick_response

******************
get_quick_response
******************



.. py:method:: ConnectWisdomService.Client.get_quick_response(**kwargs)

  

  Retrieves the quick response.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/GetQuickResponse>`_  


  **Request Syntax**
  ::

    response = client.get_quick_response(
        knowledgeBaseId='string',
        quickResponseId='string'
    )
    
  :type knowledgeBaseId: string
  :param knowledgeBaseId: **[REQUIRED]** 

    The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.

    

  
  :type quickResponseId: string
  :param quickResponseId: **[REQUIRED]** 

    The identifier of the quick response.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'quickResponse': {
              'channels': [
                  'string',
              ],
              'contentType': 'string',
              'contents': {
                  'markdown': {
                      'content': 'string'
                  },
                  'plainText': {
                      'content': 'string'
                  }
              },
              'createdTime': datetime(2015, 1, 1),
              'description': 'string',
              'groupingConfiguration': {
                  'criteria': 'string',
                  'values': [
                      'string',
                  ]
              },
              'isActive': True|False,
              'knowledgeBaseArn': 'string',
              'knowledgeBaseId': 'string',
              'language': 'string',
              'lastModifiedBy': 'string',
              'lastModifiedTime': datetime(2015, 1, 1),
              'name': 'string',
              'quickResponseArn': 'string',
              'quickResponseId': 'string',
              'shortcutKey': 'string',
              'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED'|'CREATED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED',
              'tags': {
                  'string': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **quickResponse** *(dict) --* 

        The quick response.

        
        

        - **channels** *(list) --* 

          The Amazon Connect contact channels this quick response applies to. The supported contact channel types include ``Chat``.

          
          

          - *(string) --* 
      
        

        - **contentType** *(string) --* 

          The media type of the quick response content.

           

          
          * Use ``application/x.quickresponse;format=plain`` for quick response written in plain text.
           
          * Use ``application/x.quickresponse;format=markdown`` for quick response written in richtext.
          

          
        

        - **contents** *(dict) --* 

          The contents of the quick response.

          
          

          - **markdown** *(dict) --* 

            The container quick response content.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``content``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


          
            

            - **content** *(string) --* 

              The content of the quick response.

              
        
          

          - **plainText** *(dict) --* 

            The container quick response content.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``content``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


          
            

            - **content** *(string) --* 

              The content of the quick response.

              
        
      
        

        - **createdTime** *(datetime) --* 

          The timestamp when the quick response was created.

          
        

        - **description** *(string) --* 

          The description of the quick response.

          
        

        - **groupingConfiguration** *(dict) --* 

          The configuration information of the user groups that the quick response is accessible to.

          
          

          - **criteria** *(string) --* 

            The criteria used for grouping Wisdom users.

             

            The following is the list of supported criteria values.

             

            
            * ``RoutingProfileArn``: Grouping the users by their `Amazon Connect routing profile ARN <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`__. User should have `SearchRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchRoutingProfiles.html>`__ and `DescribeRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeRoutingProfile.html>`__ permissions when setting criteria to this value.
            

            
          

          - **values** *(list) --* 

            The list of values that define different groups of Wisdom users.

             

            
            * When setting ``criteria`` to ``RoutingProfileArn``, you need to provide a list of ARNs of `Amazon Connect routing profiles <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`__ as values of this parameter.
            

            
            

            - *(string) --* 
        
      
        

        - **isActive** *(boolean) --* 

          Whether the quick response is active.

          
        

        - **knowledgeBaseArn** *(string) --* 

          The Amazon Resource Name (ARN) of the knowledge base.

          
        

        - **knowledgeBaseId** *(string) --* 

          The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.

          
        

        - **language** *(string) --* 

          The language code value for the language in which the quick response is written.

          
        

        - **lastModifiedBy** *(string) --* 

          The Amazon Resource Name (ARN) of the user who last updated the quick response data.

          
        

        - **lastModifiedTime** *(datetime) --* 

          The timestamp when the quick response data was last modified.

          
        

        - **name** *(string) --* 

          The name of the quick response.

          
        

        - **quickResponseArn** *(string) --* 

          The Amazon Resource Name (ARN) of the quick response.

          
        

        - **quickResponseId** *(string) --* 

          The identifier of the quick response.

          
        

        - **shortcutKey** *(string) --* 

          The shortcut key of the quick response. The value should be unique across the knowledge base.

          
        

        - **status** *(string) --* 

          The status of the quick response data.

          
        

        - **tags** *(dict) --* 

          The tags used to organize, track, or control access for this resource.

          
          

          - *(string) --* 
            

            - *(string) --* 
      
    
    
  
  **Exceptions**
  
  *   :py:class:`ConnectWisdomService.Client.exceptions.ValidationException`

  
  *   :py:class:`ConnectWisdomService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ConnectWisdomService.Client.exceptions.ResourceNotFoundException`

  