Coaching data in the Connect Customer data lake
The following table contains coaching data.
Coaching session record
Table name:
coaching_session_record
Description: Stores coaching session and topic data, including lifecycle timestamps, acknowledgements, feedback, and goal outcomes.
Primary key:
instance_id, coaching_session_id, record_type, record_id
Partition key:
session_created_timestamp (daily)
Join keys:
instance_id— Joins to all tablescoaching_session_id— Joins to Coaching Session Recordparticipant_user_id,coach_user_id,created_by_user_id,last_modified_by_user_id— Join to users (asuser_id)evaluation_form_item_reference_id,evaluation_form_version— Join to Contact Evaluation Record (asitem_reference_id,form_version)
| Column | Type | Nullable | Description |
|---|---|---|---|
| instance_id | string | No | The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. |
| aws_account_id | string | No | The ID of the AWS account that owns the Connect Customer instance. |
| instance_arn | string | No | The Amazon Resource Name (ARN) of the Connect Customer instance. |
| coaching_session_id | string | No | The unique identifier of the coaching session. |
| record_type | string | No | The row type. Valid values:
SESSION_PARTICIPANT, TOPIC. |
| record_id | string | No | The participant user ID for SESSION_PARTICIPANT
rows or the topic ID for TOPIC rows. |
| to_delete | Boolean | No | Indicates that the record was deleted. |
| session_created_timestamp | Timestamp | No | Timestamp when the coaching session was created. |
| session_last_modified_timestamp | Timestamp | No | Timestamp when the coaching session was last modified. |
| session_title | string | Yes | The customer-provided title of the coaching session. |
| session_status | string | Yes | The session state. Valid values: SHARED,
COMPLETE. |
| session_location | string | Yes | The customer-provided location of the coaching session. |
| created_by_user_id | string | Yes | The Connect Customer user ID of the person who created the coaching session. |
| last_modified_by_user_id | string | Yes | The Connect Customer user ID of the person who last modified the coaching session. |
| session_scheduled_timestamp | Timestamp | Yes | Timestamp scheduled for the coaching session. |
| session_due_timestamp | Timestamp | Yes | Timestamp by which the coaching session is due. |
| session_shared_timestamp | Timestamp | Yes | Timestamp when the coaching session was shared with the participant. |
| session_completion_timestamp | Timestamp | Yes | Timestamp when the coach completed the coaching session. |
| session_follow_up_timestamp | Timestamp | Yes | Timestamp selected for follow-up measurement of topic metrics. |
| participant_user_id | string | Yes | The Connect Customer user ID of the participant. |
| participant_acknowledgement_timestamp | Timestamp | Yes | Timestamp when the participant acknowledged the coaching session. |
| participant_acknowledgement_comment | string | Yes | Comment provided when the participant acknowledged the coaching session. |
| coach_user_id | string | Yes | The Connect Customer user ID of the coach assigned to the session. |
| coach_acknowledgement_timestamp | Timestamp | Yes | Timestamp when the coach acknowledged the coaching session. |
| coach_acknowledgement_comment | string | Yes | Comment provided when the coach acknowledged the coaching session. |
| session_feedback | string | Yes | The customer-provided feedback recorded for the coaching session. |
| completed_after_due_date | Boolean | Yes | Indicates whether the session was completed after
session_due_timestamp. |
| all_goals_status | string | Yes | The aggregate goal status of the coaching session. Valid
values: MET, NOT_MET. Null when the
outcome cannot be determined. |
| label | string | Yes | The customer-provided label of the coaching topic. |
| topic_source | string | Yes | The origin of the topic. Valid values: CUSTOM,
EVALUATION_FORM. |
| topic_type | string | Yes | The topic classification. Valid values: STRENGTH,
OPPORTUNITY. Null when the topic is
unclassified. |
| scoring_mode | string | Yes | The evaluation-form scoring mode for the topic. Valid values:
PERCENTAGE, POINTS_BASED. |
| metric_at_creation | double | Yes | The topic metric captured when the coaching session was created. |
| goal_metric | double | Yes | The target metric value for the topic. |
| metric_at_completion | double | Yes | The topic metric collected at session completion. |
| metric_at_follow_up | double | Yes | The topic metric collected at follow-up. |
| goal_status | string | Yes | The topic's goal status. Valid values: MET,
NOT_MET. Null when the outcome cannot be
determined. |
| evaluation_form_id | string | Yes | The ID of the evaluation form associated with the topic. |
| evaluation_form_version | bigint | Yes | The version of the evaluation form associated with the topic. |
| evaluation_form_item_reference_id | string | Yes | The hierarchical path of the evaluation-form item, including
the form ID, with components separated by |. |
| evaluation_form_item_title | string | Yes | The title of the evaluation-form item associated with the topic. |
| evaluation_form_item_type | string | Yes | The type of the referenced evaluation-form item. Valid values:
QUESTION, SECTION, FORM. |
| data_lake_last_processed_timestamp | Timestamp | No | Timestamp of the last time the data lake processed the record. This can include transformation and backfill. This field cannot reliably be used to determine data freshness. |
Sample queries
The following example query in Amazon Athena lists shared coaching sessions that are past due:
SELECT coaching_session_id, session_title, coach_user_id, participant_user_id, session_due_timestamp FROM "coaching-session-record-resource-link-table-name" WHERE instance_id = 'instance-id' AND to_delete = false AND record_type = 'SESSION_PARTICIPANT' AND session_status = 'SHARED' AND session_due_timestamp < CURRENT_TIMESTAMP ORDER BY session_due_timestamp;
The following example query in Amazon Athena ranks evaluation-form topics by the number of completed coaching sessions:
SELECT evaluation_form_id, evaluation_form_version, evaluation_form_item_reference_id, MAX(evaluation_form_item_title) AS topic_title, COUNT(DISTINCT coaching_session_id) AS coaching_session_count FROM "coaching-session-record-resource-link-table-name" WHERE instance_id = 'instance-id' AND to_delete = false AND record_type = 'TOPIC' AND topic_source = 'EVALUATION_FORM' AND session_status = 'COMPLETE' AND session_completion_timestamp >= TIMESTAMP 'start-date' AND session_completion_timestamp < TIMESTAMP 'end-date' GROUP BY evaluation_form_id, evaluation_form_version, evaluation_form_item_reference_id ORDER BY coaching_session_count DESC;
The following example query in Amazon Athena compares topic metrics for sessions completed during a time range:
SELECT coaching_session_id, record_id AS topic_id, label, topic_source, scoring_mode, metric_at_creation, goal_metric, metric_at_completion, metric_at_follow_up, goal_status FROM "coaching-session-record-resource-link-table-name" WHERE instance_id = 'instance-id' AND to_delete = false AND record_type = 'TOPIC' AND session_status = 'COMPLETE' AND session_completion_timestamp >= TIMESTAMP 'start-date' AND session_completion_timestamp < TIMESTAMP 'end-date' ORDER BY coaching_session_id, topic_id;