:doc:`NovaActService <../../nova-act>` / Client / create_session

**************
create_session
**************



.. py:method:: NovaActService.Client.create_session(**kwargs)

  

  Creates a new session context within a workflow run to manage conversation state and acts.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/nova-act-2025-08-22/CreateSession>`_  


  **Request Syntax**
  ::

    response = client.create_session(
        workflowDefinitionName='string',
        workflowRunId='string',
        clientToken='string'
    )
    
  :type workflowDefinitionName: string
  :param workflowDefinitionName: **[REQUIRED]** 

    The name of the workflow definition containing the workflow run.

    

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

    The unique identifier of the workflow run to create the session in.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'sessionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **sessionId** *(string) --* 

        The unique identifier for the created session.

        
  
  **Exceptions**
  
  *   :py:class:`NovaActService.Client.exceptions.ServiceQuotaExceededException`

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

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

  
  *   :py:class:`NovaActService.Client.exceptions.ThrottlingException`

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

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

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

  