ConnectWisdomService / Client / create_session
create_session#
- ConnectWisdomService.Client.create_session(**kwargs)#
Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Wisdom session for each contact on which Wisdom is enabled.
See also: AWS API Documentation
Request Syntax
response = client.create_session( assistantId='string', clientToken='string', description='string', name='string', tags={ 'string': 'string' } )
- Parameters:
assistantId (string) –
[REQUIRED]
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
description (string) – The description.
name (string) –
[REQUIRED]
The name of the session.
tags (dict) –
The tags used to organize, track, or control access for this resource.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'session': { 'description': 'string', 'name': 'string', 'sessionArn': 'string', 'sessionId': 'string', 'tags': { 'string': 'string' } } }
Response Structure
(dict) –
session (dict) –
The session.
description (string) –
The description of the session.
name (string) –
The name of the session.
sessionArn (string) –
The Amazon Resource Name (ARN) of the session.
sessionId (string) –
The identifier of the session.
tags (dict) –
The tags used to organize, track, or control access for this resource.
(string) –
(string) –
Exceptions
ConnectWisdomService.Client.exceptions.ConflictException
ConnectWisdomService.Client.exceptions.ValidationException
ConnectWisdomService.Client.exceptions.ResourceNotFoundException