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

**********
create_act
**********



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

  

  Creates a new AI task (act) within a session that can interact with tools and perform specific actions.

  

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


  **Request Syntax**
  ::

    response = client.create_act(
        workflowDefinitionName='string',
        workflowRunId='string',
        sessionId='string',
        task='string',
        toolSpecs=[
            {
                'name': 'string',
                'description': 'string',
                'inputSchema': {
                    'json': {...}|[...]|123|123.4|'string'|True|None
                }
            },
        ],
        clientToken='string'
    )
    
  :type workflowDefinitionName: string
  :param workflowDefinitionName: **[REQUIRED]** 

    The name of the workflow definition containing the session.

    

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

    The unique identifier of the workflow run containing the session.

    

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

    The unique identifier of the session to create the act in.

    

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

    The task description that defines what the act should accomplish.

    

  
  :type toolSpecs: list
  :param toolSpecs: 

    A list of tool specifications that the act can invoke to complete its task.

    

  
    - *(dict) --* 

      Specification for a tool that acts can invoke, including its name, description, and input schema.

      

    
      - **name** *(string) --* **[REQUIRED]** 

        The unique name of the tool that acts will use to invoke it.

        

      
      - **description** *(string) --* **[REQUIRED]** 

        A description of what the tool does and how it should be used.

        

      
      - **inputSchema** *(dict) --* **[REQUIRED]** 

        The JSON schema that defines the expected input format for the tool.

        .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``json``. 

      
        - **json** (:ref:`document<document>`) -- 

          The JSON schema that defines the expected input format for the tool.

          

        
      
    

  :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**

    
    ::

      {
          'actId': 'string',
          'status': 'RUNNING'|'PENDING_CLIENT_ACTION'|'PENDING_HUMAN_ACTION'|'SUCCEEDED'|'FAILED'|'TIMED_OUT'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **actId** *(string) --* 

        The unique identifier for the created act.

        
      

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

        The initial status of the act after creation.

        
  
  **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`

  