:doc:`LexModelsV2 <../../lexv2-models>` / Client / generate_bot_element

********************
generate_bot_element
********************



.. py:method:: LexModelsV2.Client.generate_bot_element(**kwargs)

  

  Generates sample utterances for an intent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/GenerateBotElement>`_  


  **Request Syntax**
  ::

    response = client.generate_bot_element(
        intentId='string',
        botId='string',
        botVersion='string',
        localeId='string'
    )
    
  :type intentId: string
  :param intentId: **[REQUIRED]** 

    The intent unique Id for the bot request to generate utterances.

    

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

    The bot unique Id for the bot request to generate utterances.

    

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

    The bot version for the bot request to generate utterances.

    

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

    The unique locale Id for the bot request to generate utterances.

    

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

    
    ::

      {
          'botId': 'string',
          'botVersion': 'string',
          'localeId': 'string',
          'intentId': 'string',
          'sampleUtterances': [
              {
                  'utterance': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **botId** *(string) --* 

        The unique bot Id for the bot which received the response.

        
      

      - **botVersion** *(string) --* 

        The unique bot version for the bot which received the response.

        
      

      - **localeId** *(string) --* 

        The unique locale Id for the bot which received the response.

        
      

      - **intentId** *(string) --* 

        The unique intent Id for the bot which received the response.

        
      

      - **sampleUtterances** *(list) --* 

        The sample utterances for the bot which received the response.

        
        

        - *(dict) --* 

          A sample utterance that invokes an intent or respond to a slot elicitation prompt.

          
          

          - **utterance** *(string) --* 

            The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`LexModelsV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ValidationException`

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

  
  *   :py:class:`LexModelsV2.Client.exceptions.ConflictException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.PreconditionFailedException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ConflictException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.InternalServerException`

  