AWS connect documentation change
Summary
Updated API reference to UpdateSessionData and added implementation details for session data management
Security assessment
Corrects API method name and adds implementation guidance without addressing security vulnerabilities
Diff
diff --git a/connect/latest/adminguide/custom-data-q.md b/connect/latest/adminguide/custom-data-q.md index 440f24067..f19b34636 100644 --- a//connect/latest/adminguide/custom-data-q.md +++ b//connect/latest/adminguide/custom-data-q.md @@ -13 +13 @@ Amazon Q in Connect supports adding custom data to an Amazon Q in Connect sessio -You add data to a session by using the [UpdateSessionData](https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_UpdateSession.html) API. Use the following sample AWS CLI command. +You add data to a session by using the [UpdateSessionData](https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_UpdateSessionData.html) API. Use the following sample AWS CLI command. @@ -24 +24,14 @@ You add data to a session by using the [UpdateSessionData](https://docs.aws.amaz -Since sessions are created for contacts while customer service agents are using Amazon Connect and Amazon Q in Connect, a useful way to add session data is by using Amazon Connect flow block automation to call the [UpdateSessionData](https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_UpdateSession.html) API to add information to the session as necessary. +Since sessions are created for contacts while customer service agents are using Amazon Connect and Amazon Q in Connect, a useful way to add session data is by using a flow: Use a [AWS Lambda function](./invoke-lambda-function-block.html) block to call the [UpdateSessionData](https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_UpdateSessionData.html) API. The API can add information to the session. + +Here's what you do: + + 1. Add a [Amazon Q in Connect](./q-block.html) block to your flow. It associates an Amazon Q in Connect domain to a contact so Amazon Connect can search knowledge bases for real-time recommendations. + + 2. Place the [AWS Lambda function](./invoke-lambda-function-block.html) block after your [Amazon Q in Connect](./q-block.html) block. The [UpdateSessionData](https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_UpdateSessionData.html) API requires the sessionId from Amazon Q in Connect. You can retrieve the sessionId by using the [DescribeContact](https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeContact.html) API and the assistantId that is associated with the [Amazon Q in Connect](./q-block.html) block. + + + + +The following image shows the two blocks, first [Amazon Q in Connect](./q-block.html) and then [AWS Lambda function](./invoke-lambda-function-block.html). + +