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'
}
)
[REQUIRED]
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The name of the session.
The tags used to organize, track, or control access for this resource.
dict
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.
Exceptions
ConnectWisdomService.Client.exceptions.ConflictException
ConnectWisdomService.Client.exceptions.ValidationException
ConnectWisdomService.Client.exceptions.ResourceNotFoundException