Chat agent
The chat agent is a conversational interface in the AWS Assurance web application. You describe what you want in your own words, and the agent reads and updates your AWS Assurance data on your behalf. You can ask about frameworks, controls, assessments, evidence, tasks, comments, projects, and discovered resources, and you can start an assessment without leaving the conversation.
To open the chat agent, use the prompt bar on any page, or choose Ask AI on a task. Ask AI opens the chat agent and asks it to explain that task and walk you through resolving it.
The agent works inside the environment and project that you have open, so you don’t supply an environment identifier in your prompts.
Topics
What you can do with the chat agent
For example, you can ask the chat agent to work with the following resources:
-
Frameworks – List and describe frameworks, create and update custom frameworks, publish a custom framework, and delete a custom framework.
-
Controls and control groups – List and describe controls and control groups, create, update, or delete custom ones, and mark a control or requirement not applicable to your project.
-
Framework enablement – List the frameworks enabled in your project, and enable or disable a framework in that project. To change a framework’s assessment mode (Daily or Continuous), use the web application. For more information, see Choosing an assessment mode.
-
Assessments – List assessments and describe a single assessment, including its status and outcome.
-
Evidence – List and describe evidence, upload new evidence, and extract the text of an evidence file so the agent can reason about its contents. The agent reads PDF, DOCX, XLSX, XLS, and plain text files.
-
Tasks and comments – List and describe tasks, change a task’s status, priority, or due date, and add comments to controls and tasks.
-
Scope and resources – List the resources in your project’s scope, and change your project’s resource filters.
-
Custom framework onboarding – Onboard a custom framework end to end from a source document you provide.
Before the agent publishes a framework, deletes an item, replaces your project’s resource filters, disables a framework, or marks a control not applicable, it describes the change and waits for you to confirm it.
The chat agent acts with your permissions. It can read and change only the resources that you can. For what it can’t do, see Limitations.
Asking compliance questions
Type a question in the chat panel. Write the question the way you would ask a colleague. The agent decides which data it needs, retrieves it, and answers with the values it read.
The following prompts are typical starting points:
Which frameworks are enabled in this project?
Summarize the results of the most recent NIST SP 800-53 R5 assessment.
Show me every control that needs attention, grouped by control group.
Which controls have no evidence attached?
What does control AC-2 require, and what evidence do we have for it?
List the open tasks for SOC 2 and tell me which ones have no comments.
While the agent works, the chat panel shows the operations it runs as activity entries beneath your question. Use these entries to see which data the answer is based on. The agent’s written answer is the durable record of the conversation; the activity entries are shown for the current session only. For more information, see What is restored when you reopen a conversation.
Ask a follow-up question in the same conversation instead of restating context. The agent keeps the earlier turns of the session in context, so you can narrow an answer step by step.
Working with evidence, tasks, and comments
You can attach evidence, annotate findings, and adjust task state from the conversation.
To add evidence, either paste the text into the conversation or point the agent at an object in Amazon S3. The agent uploads it and links it to the controls you name:
Upload this access review as evidence for control AC-2 in NIST SP 800-53 R5.
Attach s3://amzn-s3-demo-bucket/2026/encryption-standard.pdf as evidence for the encryption controls in SOC 2.
To have the agent reason about a file that is already uploaded, ask it to read the evidence. The agent extracts the text and uses it in its answer:
Read the network segmentation policy we uploaded and tell me which SOC 2 controls it supports.
For more information about evidence, see Managing evidence in AWS Assurance.
To record a finding or a decision, ask the agent to add a comment:
Add a comment on the task for AC-2 noting that the quarterly access review completed on March 3.
There are limits on how the agent changes task state. You can ask the agent to move a task back to Review or to cancel it. The agent cannot mark a task as completed, and it cannot reopen a task. Completion and reopening are determined by the AI evaluator on the next assessment run, based on the evidence and configuration it finds. If you ask the agent to complete a task, it declines and explains that the next assessment determines the outcome. For the task statuses and how assessments resolve them, see Remediation tasks.
If you ask the agent to comment while updating a task, it creates the comment and then applies the task update, so both changes are recorded.
Starting an assessment from chat
You can start an assessment from the conversation. Name the framework and the framework version. To assess one control, name the control as well.
To assess a single control:
Start an assessment of control AC-2 in NIST SP 800-53 R5.
The agent starts the assessment and returns the assessment ID. The AI evaluator then runs asynchronously.
To assess an entire framework, omit the control:
Start an assessment of every control in SOC 2 Oct-2023.
The agent schedules all controls in the framework for evaluation. Because each control is evaluated separately, no single assessment ID is returned for a framework-level request. For the difference between control-level and framework-level assessments, see Control-level and framework-level assessments.
You can also give the agent context to pass to the AI evaluator:
Start an assessment of control CC6.1 in SOC 2 Oct-2023. Note that the bastion hosts were decommissioned last week.
When the agent starts a control-level assessment, it adds a View assessment journal button under its answer that opens the running assessment. For a framework-level request, it adds View running assessments instead. These buttons are part of the live conversation. They are not restored when you reload the page or reopen the session, where only the written messages return. For more information, see What is restored when you reopen a conversation.
Starting an assessment doesn’t confirm that it finished. The AI evaluator runs outside the conversation, and an evaluation can fail after AWS Assurance schedules it. To see the result, open the control and choose View full report in the Assessment summary. You can also ask the agent to list assessments.
The chat agent does not stream the AI evaluator’s progress, and the conversation does not update as the evaluation proceeds. To check on a running assessment, ask the agent for its current state, or open the control and choose View assessment journal:
What is the status of the assessments I started today?
Chat sessions and history
Each conversation is a session. AWS Assurance stores your messages and the agent’s responses in the session so you can return to them later.
The following behavior applies to sessions:
-
Retention – AWS Assurance retains chat sessions and their messages for 90 days. After 90 days, they are deleted automatically. Copy anything you need to keep into a task, a comment, or your own records.
-
Browsing history – You can list your earlier sessions and open one to read the conversation it contains. Opening a session restores the conversation into the chat panel, where you can continue it. The session list and the messages in a session are paginated.
-
Environment scope – A session belongs to the environment it was created in. You cannot continue a session from a different environment.
-
One request at a time – Each session handles one request at a time. If you send a message while the agent is still responding, AWS Assurance asks you to wait for the current response to finish.
-
Long conversations – When a conversation grows long, AWS Assurance summarizes the earlier turns and keeps the most recent ones verbatim, so the agent retains the thread of the discussion without exceeding its context limit. Details from summarized turns can be condensed. Restate a detail if a later answer depends on it.
-
Message size – A single message can contain up to 10,000 characters. To work with a longer document, upload it as evidence and ask the agent to read it.
Message content is encrypted at rest. If you configure a customer managed AWS KMS key for the environment, AWS Assurance encrypts chat content with that key. For the limit on concurrent chat sessions, see Quotas for AWS Assurance.
Retrieving chat history with the AWS Assurance API
To retrieve your chat history programmatically, use the following operations:
-
ListChatSessions -
Returns your chat sessions in one environment. Each session has a
sessionId, alastMessageAttimestamp, and asequenceNumber. -
GetChatMessages -
Returns the messages of one session in chronological order. Pass the
sessionIdthatListChatSessionsreturns. Each message has anauthor(useroragent),content, acreatedAttimestamp, and asequenceNumber.
Both operations return their results in pages.
What is restored when you reopen a conversation
When you reload the page or open an earlier session, AWS Assurance restores the written conversation: your messages and the agent’s answers, in order.
The activity entries that show which operations the agent ran are not stored. They appear while the agent is working and are not restored afterward. The buttons the agent added under an answer, such as View assessment journal, are part of the same live activity and are also not restored. This applies to a page reload in the same conversation as well as to opening an earlier session.
Because of this, treat the agent’s written answer as the record. When a result matters, ask the agent to state the values in its answer, or record it where it persists:
List the SOC 2 controls that need attention, and include the control ID and reason for each one in your answer.
To keep a finding outside the 90-day retention window, ask the agent to add it as a comment on the relevant control or task.
Resuming a response that is still streaming
The agent writes its answers incrementally. If you reload the page or your connection drops while an answer is still being written, AWS Assurance reattaches to that response, replays the part that was already produced, and continues streaming the rest into the chat panel. You do not need to resend your message.
This behavior applies only while the response is still being produced:
-
After the answer finishes, there is nothing left to resume. Reopening the conversation shows the stored answer instead. For more information, see What is restored when you reopen a conversation.
-
The partial answer is held only for the duration of the response and is not durable. If the service restarts while a response is in progress, that response does not resume. Send your message again.
This is chat-session behavior, not assessment monitoring. It resumes an answer the agent is in the middle of writing. It does not attach the conversation to a running assessment, and there is no way to reconnect the conversation to an assessment that is already running. To follow an assessment, open the control in the web application, as described in Starting an assessment from chat.
Limitations
Keep the following limitations in mind when you work with the chat agent:
-
The agent cannot mark a task as completed or reopen a task. It can move a task to Review or cancel it. The AI evaluator determines completion on the next assessment run.
-
The agent cannot update or delete an assessment. It can start an assessment, list assessments, and describe one.
-
The agent cannot change a framework’s assessment mode. It enables a framework in the default mode, Daily. To change the mode, use the web application.
-
The agent does not stream the AI evaluator’s progress and does not notify you when an assessment finishes.
-
A framework-level assessment request does not return a single assessment ID, because each control is evaluated separately.
-
The agent answers questions about compliance and your AWS Assurance data, and declines other topics.
-
The agent treats the contents of evidence files and other documents as data to analyze. It does not follow instructions that are written inside them.
-
The agent operates with your permissions. If you cannot read or change a resource, neither can the agent when it acts for you.
-
Activity entries and the buttons under an answer are not stored, and are not restored when you reopen a conversation.
-
Chat sessions and messages are deleted 90 days after they are created.