Measure an Amazon Quick PoC with data you already have: acceptance criteria, an MCP server, a usage dashboard and a 5-question ROI survey

A step-by-step guide to running an Amazon Quick proof of concept that ends with a numbers-based answer to "is it worth the money?": per-user MCP connector logging, a fixed and extended usage dashboard with message sentiment, an UpdateAgent script, and a break-even formula, with results from a real PoC.

AI Engineer at Renova Cloud - AWS Premiere Partner - 8x AWS Certified - First Cloud AI Journey
At the end of an Amazon Quick proof of concept (PoC), the customer's leadership asks one question: "Is it worth the money?" This article shows you how to set up the PoC so you can answer that question with numbers, using only data the system already records plus a one-minute survey.
You will do six things:
  1. Agree on acceptance criteria before the PoC starts, and tie each number to a data source that records itself.
  1. Connect Quick to a line-of-business system through an MCP server. Each user calls the API under their own account, and every call writes a log line you can measure.
  1. Deploy a usage dashboard from  aws-samples/sample-quicksuite-usage-dashboard , fix the places where it miscounts, and add a sentiment label to every message.
  1. Use the  UpdateAgent  API to add a rule to a chat agent's instructions that reminds users to click 👍/👎.
  1. Measure time saved with a 5-question Google Form and calculate the break-even point.
  1. Run the end-of-PoC queries and read the results.
Every number in this article comes from a real PoC that ran in November 2026 at an insurance company in Vietnam with a few hundred licenses. Customer names, people's names, account identifiers and business data have been removed. Results are shown as ratios only.

Why this approach

We learned two things early in the project:
  • Customers don't measure by hand. The customer turned down timing processes before and after, exporting business KPIs, and interviewing users, because each was too much work. So every number has to come from data the system records by itself, plus a very short form.
  • Leadership asks about value, not features. "How many systems did you integrate" doesn't convince anyone. "How many hours does this save each month, compared with the license cost" does.
The approach follows  AWS Prescriptive Guidance for generative AI PoCs : set quantified goals, then make the go/no-go decision against the KPIs you agreed on at the start. The ROI calculation follows  Amazon Q Business Insights : minutes saved per use, multiplied by the number of uses.

Architecture overview

Users ──(IAM Identity Center)──► Amazon Quick (chat agent)
│ │
MCP connector, │ │ vended logs
3-legged OAuth ▼ ▼
Cognito user pool ──JWT──► API Gateway S3 (CHAT_LOGS, FEEDBACK_LOGS,
│ AGENT_HOURS_LOGS) + CloudWatch Logs
▼ │
Lambda broker (MCP) Step Functions
│ │ parser → categorizer (Bedrock) → writer (parquet)
DynamoDB ◄──┘ │ │
(one token per user) ▼ ▼
Business system API Glue + Athena ──► QuickSight dashboard (SPICE)
│ ▲
TOOL_CALL log (CloudWatch) │ CloudTrail (Asset Inventory)
The acceptance criteria use three data sources:
Source
Who produces the data
What it measures
MCP broker log (CloudWatch Logs)
The system
Business-data lookup success rate
Usage dashboard (Quick vended logs)
AWS
Real users, number of conversations
Google Form
Users, self-reported
Minutes saved, willingness to keep using

Prerequisites

  • An Amazon Quick account with users synced through IAM Identity Center.
  • The AWS CLI and Terraform, and a profile with permissions for QuickSight, Athena, Glue, Lambda, Step Functions, S3 and CloudWatch Logs in the customer's account.
  • Python 3.11 or later, and  boto3 .
  • A line-of-business system with a REST/OpenAPI API that you are allowed to call on behalf of users.
  • Access to an inexpensive Amazon Bedrock model to label messages. We used Amazon Nova 2 Lite.

Step 1: Agree on acceptance criteria before the PoC starts

Write the criteria on one page and send them to the customer for approval in week one. We kept to exactly six numbers, and each number comes from only one source:
#
Number
Source
Proposed threshold (customer decides)
1
Business-data lookup success rate
MCP broker log
95% or higher
2
Share of licensed users who actually used the assistant this month
Dashboard
40% or higher
3
Conversations per license per month
Dashboard
Break-even point (Step 5)
4
Minutes saved per use (median)
Form
5 minutes or more
5
Willingness to keep using (1-5)
Form
4.0 or higher
6
Form response rate among users who used the assistant
Form + dashboard
30% or higher
Decision rules at the end of the PoC:
  • Scale out: usage numbers (2, 3) and value numbers (4, 5) are met.
  • Extend for training: the technical number (1) is met, but too few people use the assistant.
  • Stop: the technical number is not met, or willingness to keep using is below 3.
Write three things into the criteria document from day one:
  • Define "real user". "Has a license", "has signed in" and "sent at least one message" give three different numbers. We used "sent at least one message this month".
  • "Lookup succeeded" only means the business system returned data. It doesn't mean the answer was what the user wanted. Answer quality is measured by the form.
  • Thresholds are proposals. The customer sets them, not the implementation partner.

Step 2: Connect Quick to the business system through an MCP server

Why MCP

We tried the Quick connector types:
  • An app running inside Quick can't call an external API. An action connector is the only way out.
  • The generic REST connector (GENERIC_HTTP) can be created through the API, but only works in Automations, not in a chat agent.
  • OpenAPI and MCP connectors both work in a chat agent. We chose MCP because it supports per-user authentication (3-legged OAuth): OAuth discovery through RFC 9728, binding the token to a resource through RFC 8707, and PKCE S256.
The most important business reason: every question must run under the asker's own business-system account. The business system then applies its own data permissions, and its audit log records the right person.

How one question travels

Step
Hop
Setting that matters
1
User → IAM Identity Center
Sign-in to Quick
2
Quick connector → Cognito user pool
3-legged OAuth, one session per user
3
Quick → API Gateway HTTP API
MCP JSON-RPC with a Bearer JWT, a JWT authorizer, and throttling
4
API Gateway → Lambda broker
The broker only reads the  sub  claim, because the authorizer has already verified the signature
5
Lambda → DynamoDB
 PK = user#<sub>  points to that user's own business-system refresh token
6
Lambda → business API
The call uses that user's access token
Our business system has no OAuth, only a sign-in form with a captcha. So each user links their account once on an enrolment page. After that, an EventBridge rule runs every 3 hours and puts one SQS message per user on a queue, and the same Lambda broker refreshes each token, so sessions never expire.

Key broker code

The snippets below come from the broker that ran in the PoC. They are shortened, and functions and fields were renamed to neutral names.
Read the caller's identity. The broker doesn't verify the JWT signature itself, because the API Gateway  HttpJwtAuthorizer  has already rejected every token that this user pool didn't issue:
def claims_of(event):
ctx = (event.get("requestContext") or {}).get("authorizer") or {}
jwt = ctx.get("jwt") or {}
claims = jwt.get("claims") or {}
scopes = jwt.get("scopes") or []
if not scopes:
raw = claims.get("scope") or ""
scopes = raw.split() if isinstance(raw, str) else []
return claims, scopes
Get the business-system token of that exact user:
def read_state(sub):
try:
r = ddb.get_item(TableName=TABLE_NAME, Key={"pk": {"S": "user#" + sub}})
except ClientError as e:
obs.error("DDB_GET_FAIL", cognitoSub=sub, detail=str(e)[:200])
return {}
item = r.get("Item") or {}
return {k: list(v.values())[0] for k, v in item.items()}
Call the business API and write one structured log line per call. This log line is the source of number 1 in the criteria:
status, body, secs = upstream_call(path, method=method, payload=payload,
token=token, params=query or None)
obs.log("TOOL_CALL", cognitoSub=sub, httpMethod=method, path=path,
upstreamStatus=status, seconds=secs)
obs.metric("UpstreamLatency", secs * 1000, unit="Milliseconds")
The log line holds only the Cognito identifier, the API path, the status code and the duration. It doesn't hold the question, the returned data or any token.

Four limits we hit

  • Nested timeouts. The API Gateway HTTP API integration timeout is 30 seconds and can't be raised. The broker sets a 25-second timeout on the business-system call so it still has time to return a clear error instead of an empty 504. When a call times out, return a message the model can read, for example "the result is too large, call again with PageSize=10", so the agent can correct its own call.
  • Tool count. We observed that Quick registers only the first 100 tools of a connector and ignores the rest without an error. Our broker declares 96 tools generated from OpenAPI, so treat 100 as a hard budget.
  • The SQS visibility timeout must be longer than the Lambda timeout (120 seconds against 90). If it's shorter, SQS delivers the message again while the first refresh is still running, and two concurrent refreshes invalidate each other's tokens.
  • Turn on  report_batch_item_failures . Without it, one failing user sends the whole batch of 10 back to the queue.

Create the connector in Quick

In the Quick console, choose Integrations → Add → Model Context Protocol. Enter the MCP endpoint and choose User authentication. Don't choose Service authentication: it uses one shared account for everyone, which is exactly what this design avoids. Then enter the client ID, client secret, token URL, authorization URL and scopes from the stack outputs.

Step 3: Build the usage dashboard

Deploy the sample

  1. Clone  aws-samples/sample-quicksuite-usage-dashboard  and create a  deploy-<customer>  folder with a  main.tf  that calls the  modules/quicksuite-analytics  module. Use a separate state backend for each customer.
  1. Set the main variables:
  •  identity_store_id  and  identity_store_region : read them with  aws sso-admin list-instances .
  •  cloudtrail_mode :  "new"  if the account has no trail yet (check with  aws cloudtrail describe-trails ),  "existing"  if it already has one.  "disabled"  removes the Asset Inventory sheet.
  •  categorization_config : the Bedrock model that labels messages. We measured about 1 USD per 1,300 messages with Nova 2 Lite.
  1. Run  terraform plan , read it carefully, then run  terraform apply . Our rule: if a plan destroys anything, stop and find out why.

What to fix in the sample

We checked every chart on the live dashboard and fixed the issues below. Carry these fixes over when you build the dashboard for your next customer.
Symptom
Cause
Fix
Messages per user counted about 2.5 times too high
 Message Count = 1  on every row, including agent-hours rows
Count only  CHAT_LOGS  rows
All 5 asset KPIs show the same number
The KPIs don't filter by asset type
Add an  Asset Type  filter to each KPI
Hour-of-day chart is 7 hours off
Calculated in UTC
A  display_utc_offset_hours  variable with  addDateTime 
Agents that users created show as "deleted"
Only hand-declared agent names are known
Take the latest name from the CloudTrail  CreateAgent / UpdateAgent  events
Asset creators show as UUIDs
The column reads the raw user ID
 LEFT JOIN  the user table on  user_id 
Space names are always null
The wrong field is read
Read  $.eventRequestDetails.spaceName 
Activity by Country is almost all null
IAM Identity Center has no country
 COALESCE(NULLIF(country, ''), 'Không rõ')  (Vietnamese for "Unknown")
Fix the message over-count in  quicksight_dataset.tf :
data_transforms {
create_columns_operation {
columns {
column_id = "message_count"
column_name = "Message Count"
# Only chat rows are messages. Agent-hours and feedback rows share this dataset
# and must count 0 here.
expression = "ifelse({Log Type} = 'CHAT_LOGS', 1, 0)"
}
}
}
Show the hour of day in local time:
expression = "extract('HH', addDateTime(${var.display_utc_offset_hours}, 'HH', {Timestamp}))"
Take agent names from CloudTrail automatically, joined into the SQL of the messages dataset:
LEFT JOIN (
SELECT agent_id, max_by(agent_name, eventtime) AS agent_name
FROM (
SELECT json_extract_scalar(ct.serviceeventdetails, '$.eventRequestDetails.agentId') AS agent_id,
json_extract_scalar(ct.serviceeventdetails, '$.eventRequestDetails.name') AS agent_name,
ct.eventtime
FROM <database>.<cloudtrail_table> ct
WHERE <partition window> AND ct.eventsource = 'quicksight.amazonaws.com'
AND ct.eventname IN ('CreateAgent', 'UpdateAgent', 'CreateAgentFromPrompt')
) x
WHERE agent_id IS NOT NULL AND agent_name IS NOT NULL
GROUP BY agent_id
) an ON m.agent_id = an.agent_id
 max_by(agent_name, eventtime)  picks the latest name, so a renamed agent still shows correctly without any manual mapping.

Add sentiment to every message

The 👍/👎 buttons in Quick are the obvious source for satisfaction, but we received no feedback records in the first 3 weeks. So we added a fourth dimension to the sample's existing categorizer Lambda: the sentiment of the user's message. One label is reserved for the most important PoC signal, the user is not satisfied with the answer.
The agent served Vietnamese speakers, so the labels are in Vietnamese: positive, neutral, negative, and "not satisfied with the answer".
# "Không hài lòng với câu trả lời" (not satisfied with the answer) is the PoC signal: the user
# corrects or rejects what the assistant said before.
DEFAULT_SENTIMENTS = ["Tích cực", "Trung tính", "Tiêu cực", "Không hài lòng với câu trả lời"]
The text added to the prompt, inside the  _build_prompt  f-string:
## Dimension 4: Sentiment of the user's message
Sentiments: {", ".join(config.get("sentiments") or DEFAULT_SENTIMENTS)}
Judge the user's message only, not the assistant's answer. Most work requests are neutral.
Use "{(config.get("sentiments") or DEFAULT_SENTIMENTS)[-1]}" when the user says a previous answer
was wrong, incomplete or unhelpful, or repeats a request in frustration.
Normalize the label the model returns, so the model can't add a stray bucket to the dashboard:
sentiments = config.get("sentiments") or DEFAULT_SENTIMENTS
label = _valid_label(parsed.get("sentiment"), sentiments)
neutral = sentiments[1] if len(sentiments) > 1 else sentiments[0]
# An unknown label becomes neutral, not "Other": an "Other" slice in a sentiment chart means nothing.
record["sentiment"] = label if label != "Other" else neutral
Two things to know about this part:
  • Message text is only in the CloudWatch Logs delivery. The S3 delivery carries no text. The categorizer looks the text up in CloudWatch by  system_message_id , uses it only to call the model, and never writes it into the record stored in S3.
  • Old messages don't need a pipeline replay. We invoked the same categorizer Lambda again for each old  system_message_id , wrote the labels to a separate Glue table,  sentiment_backfill , and joined that table into the dataset. The message text is read inside AWS and never reaches the machine that runs the script. No existing file is changed or deleted.
COALESCE(m.sentiment, sb.sentiment) AS sentiment
...
LEFT JOIN (SELECT system_message_id, max(sentiment) AS sentiment
FROM <database>.sentiment_backfill
GROUP BY system_message_id) sb
ON m.system_message_id = sb.system_message_id
Apply order matters: a new Glue column must exist before the dataset that uses it. Apply the Glue table first with  terraform apply -target=... , then apply the rest.

Backfill history for the Asset Inventory sheet

A new trail records only from the moment it's created. To get 90 days of history, we read CloudTrail Event History ( LookupEvents ), kept only the events from before the trail started recording so nothing is duplicated, and wrote them as CloudTrail-format files under the prefix the Glue table reads.

Verify by measurement

  • After every apply, the dashboard is  CREATION_SUCCESSFUL  with  Errors = [] , and every SPICE refresh is  COMPLETED .
  • Check that every original visual is present. Compare visual IDs in the analysis with the sample repo's  origin/main  branch. The dashboard is created from a template, so its visual IDs are UUIDs; compare IDs in the analysis, and compare the dashboard by visual title.
  • Read the live dashboard. Use the QuickSight API to start a snapshot job that exports each sheet to PDF, extract the PDF text, and check each KPI against Athena. For example, Total Spaces must equal the sum of  CreateSpace  and  CreateInlineSpace  events.
  • A new  JOIN  must not increase the dataset's row count.
Some charts are empty for a good reason, so don't "fix" them: Feedback (no records yet), Knowledge Base and Flows (nobody created one), Blocked Requests and Failed Ingestions.

Step 4: Remind users to click 👍/👎 with the UpdateAgent API

Quick chat agents have  DescribeAgent  and  UpdateAgent  APIs. When we did this, the installed  boto3  and AWS CLI didn't have these operations yet, so we downloaded the latest QuickSight service model and pointed the  AWS_DATA_PATH  environment variable at it.
The script below inserts one rule into the agent's instructions. It runs as a dry run by default and writes only with  --apply . It checks that the insertion point is unique, then reads the agent back to confirm that only the instructions changed.
The rule is in Vietnamese because the agent answers in Vietnamese. In English it says: "After the third answer in the same conversation, end the answer with exactly one question: 'Are you satisfied with my help? If yes, click 👍; if not, click 👎 right below this answer.' Ask only once per conversation. Don't ask while reporting an error or asking the user for more information."
"""Insert one rule into a Quick chat agent's instructions via UpdateAgent. Dry-run unless --apply."""
import sys

import boto3

ACCOUNT, AGENT = "<account-id>", "<agent-id>"
ANCHOR = "<p>Lời chào</p>" # an existing paragraph ("Greeting"); the rule goes right before it
MARK = "<p>6. Hỏi mức hài lòng</p>" # rule heading ("6. Ask about satisfaction")
RULE = (MARK + "<p>Sau lần trả lời thứ ba trong cùng một cuộc trò chuyện, ở cuối câu trả lời hỏi đúng một câu: "
"\"Anh/chị có hài lòng với trợ giúp của em không? Hài lòng thì anh/chị bấm nút 👍, chưa hài lòng thì bấm 👎 "
"ngay dưới câu trả lời này giúp em nhé.\" Mỗi cuộc trò chuyện chỉ hỏi một lần. "
"Đang báo lỗi hoặc đang hỏi lại thông tin thì chưa hỏi.</p>")
KEEP = ("Name", "Description", "IconId", "StarterPrompts", "WelcomeMessage", "ActionConnectors", "Spaces")

qs = boto3.Session(region_name="us-east-1").client("quicksight")
before = qs.describe_agent(AwsAccountId=ACCOUNT, AgentId=AGENT)["Agent"]
old = before["CustomPromptInterface"]["CustomInstructions"]
if MARK in old:
sys.exit("rule already present - nothing to do")
assert old.count(ANCHOR) == 1, "anchor not unique"
new = old.replace(ANCHOR, RULE + ANCHOR)
print(f"{len(old)} -> {len(new)} chars; only the inserted block differs:", new.replace(RULE, "") == old)

req = {"AwsAccountId": ACCOUNT, "AgentId": AGENT, "Name": before["Name"],
"CustomPromptInput": {"NewPrompt": {"CustomInstructions": new}}}
for k in ("Description", "IconId", "StarterPrompts", "WelcomeMessage"):
if before.get(k) not in (None, "", []):
req[k] = before[k]
if "--apply" not in sys.argv:
sys.exit("dry-run only; pass --apply to write")

qs.update_agent(**req)
after = qs.describe_agent(AwsAccountId=ACCOUNT, AgentId=AGENT)["Agent"]
print("instructions updated:", after["CustomPromptInterface"].get("CustomInstructions") == new)
for k in KEEP:
print(f" {k} unchanged:", after.get(k) == before.get(k))
Before you run with  --apply , save the  describe_agent  output to a file so you can roll back. Two things we noticed when we ran it:
  • The agent moves to an updating state and returns to  ACTIVE  after a few seconds, and Quick attaches a new prompt profile (the  ModelProfileId  changes).
  • CloudTrail records the principal that called the API as the editor, not the agent's owner. Tell the owner before you change their agent.
This is only a reminder. Quick is a managed service: you can't stop users from asking another question before they click. Whether a click produces a  FEEDBACK_LOGS  record has to be tested with one real click, followed by a count of new files. That's why we didn't use 👍/👎 as the main measure.

Step 5: The 5-question ROI survey

The form

The form is anonymous, collects no email, and takes about a minute. It doesn't ask for anything the logs already have, such as department, use case or number of uses: logs are more accurate than self-reports.
Question
Content
Role in the formula
1
About how many minutes do you save each time you use the assistant? (None / Under 5 / 5-15 / 15-30 / Over 30)
Main input, mapped to 0 / 2.5 / 10 / 22.5 / 30 minutes
2
How usable are the answers, usually? (Usable as is / Small edits / Major edits / Usually not usable)
"Usually not usable" counts as 0 minutes
3
What do you use the saved time for?
Answers leadership's "so what" question
4
How much do you want to keep using the assistant? (1-5)
Decision condition
5
Comments (optional)
Quotes for the report
We dropped questions that rate the interface and speed, because they don't feed the ROI formula.

The formula

  • Hours saved per month = conversations this month (from logs) × median minutes saved (from the form) ÷ 60
  • Full-time equivalent (FTE) = hours saved ÷ 160
  • Break-even when hours saved ≥ monthly cost ÷ L, where L is the cost of one hour of work, supplied by the customer
  • Conversations per license needed to break even = (license price ÷ L) × (60 ÷ minutes saved per conversation)
Example, with an assumed license price of 40 USD per month and 10 minutes saved per conversation:
L (USD per hour)
Conversations needed per license per month
5
48
10
24
20
12
Keep the numbers conservative: use the median, not the mean; count "over 30 minutes" as 30; count only conversations that exist in the logs; and label the result "estimated from user self-reports" in the report.

Step 6: Measure at the end of the PoC

Lookup success rate, in CloudWatch Logs Insights on the Lambda broker's log group:
filter event = "TOOL_CALL"
| stats count(*) as calls, count_distinct(cognitoSub) as users, sum(upstreamStatus = 200) as ok
Break the results down by status code, to separate business-system errors from agent errors:
filter event = "TOOL_CALL" | stats count(*) as n by upstreamStatus | sort n desc
Real users and conversations this month, in Athena on the dashboard's  message_enriched  table:
SELECT count(*) AS messages,
count(DISTINCT user_arn) AS users,
count(DISTINCT conversation_id) AS conversations
FROM <database>.message_enriched
WHERE regexp_extract(user_arn, '[^/]+$') NOT LIKE 'deleted-user-%'
AND from_unixtime(IF(event_timestamp > 100000000000, event_timestamp / 1000, event_timestamp))
>= timestamp '<start of month, UTC>'
The table uses partition projection, so also filter on the date partitions. Otherwise Athena lists thousands of empty prefixes.
Save the evidence before the logs expire. The broker's log group keeps logs for 30 days. Run the queries above on the last day of the PoC and save the results, or the numbers for the start of the month are gone.

Results from the real PoC (ratios, November 2026)

Number
Result
Business-data lookup success
94.9%; 97.8% when business-system server errors are excluded
Remaining calls
2.9% HTTP 500 from the business system, 1.0% HTTP 403 (user not allowed to see that record), 1.0% HTTP 400 (wrong parameters), 0.1% never reached the system
Real users this month
24% of licenses
Conversations per license
About 1 this month
Sentiment of messages with text
98.2% neutral, 0.8% positive, 0.7% negative, 0.25% not satisfied with the answer
Adoption funnel
100% licensed → 28% chatted → 19% connected the connector → 17% looked up real data
How we read these numbers:
  • The technology works; usage doesn't yet. Lookups succeed almost 95% of the time, but each license had only about 1 conversation this month, far below the 12-48 needed to break even. ROI depends mostly on how often people use the assistant, and much less on minutes saved per use.
  • The biggest drop in the funnel is between getting a license and the first use. Train the people who haven't started, or license only the groups that really use it.
  • Sentiment works as an early warning, not as the main satisfaction measure. Most messages are work requests, so neutral is normal. Watch for a rise in "not satisfied with the answer".
  • Our first measurement took the launch week and extrapolated it to a full month, which gave 3.6 conversations per license. Measured over the actual month, the number was about 1. Always measure over the exact period you report on.

Lessons learned

  1. Agree on the criteria and the data sources before the first user signs in.
  1. Build structured logging into the MCP server from the start. It's the cheapest and most transparent source of evidence.
  1. Don't trust the sample dashboard until you have checked every KPI against Athena.
  1. When you read chat logs to verify something, only count and measure lengths. Never print message content.
  1. For every change in the customer's account: dry run first, back up the current state, and read it back after writing.

Cost and cleanup

  • Labeling with Nova 2 Lite cost about 1 USD per 1,300 messages in our measurement.
  • The first CloudTrail trail that records management events has no event charge, only S3 storage. If the account already has a trail, use  cloudtrail_mode = "existing"  to avoid paying for a second trail.
  • Remove the dashboard with  terraform destroy  in the deploy folder. Read the plan first to make sure it doesn't touch account-level resources you didn't create.

References

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article