martinheller@Mac customer-support-agent-with-agentcore % uv run agentcore invoke '{"prompt": "Who am I?"}'
Using bearer token for OAuth authentication
Using JWT authentication
I'll look up your account information using your email address.Hello! You are **John Doe** (Customer ID: CUST-001). Your account is registered with the email john@example.com, and you've been a member since June 1, 2023. How can I help you today?
╭──────────────────────────────────────────────────────── supportAgentDemo_Agent ────────────────────────────────────────────────────────╮
│ Session: 74d74b58-aa7d-4b8b-9515-e0931743ce1d │
│ ARN: arn:aws:bedrock-agentcore:us-east-2:577405208411:runtime/supportAgentDemo_Agent-U90VrdH6Rf │
│ Logs: aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --follow │
│ aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --since 1h │
│ GenAI Dashboard: https://console.aws.amazon.com/cloudwatch/home?region=us-east-2#gen-ai-observability/agent-core │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
That actually went through the Claude model. If you get an error at this point, you might not have Anthropic permission or any Bedrock Claude quota. Asking for a quota is a matter of filling out an AWS form and waiting a couple of days. The next query, for an order list, also goes through the model.
martinheller@Mac customer-support-agent-with-agentcore % uv run agentcore invoke '{"prompt": "Show me my recent orders"}'
Using bearer token for OAuth authentication
Using JWT authentication
I'll look up your recent orders for you.Now let me get the full details for each of these orders to show you what items were in them.Here are your recent orders:
**1. Order ORD-12430** - Ordered Feb 5, 2025 | Delivered Feb 10, 2025
- 4K Monitor (1x) - $399.00
- **Total: $399.00** | Status: ✓ Delivered
**2. Order ORD-12420** - Ordered Feb 1, 2025 | Delivered Feb 4, 2025
- Phone Case (1x) - $29.99
- **Total: $29.99** | Status: ✓ Delivered
**3. Order ORD-12410** - Ordered Jan 25, 2025 | Delivered Jan 29, 2025
- Mechanical Keyboard (1x) - $149.99
- **Total: $149.99** | Status: ✓ Delivered
**4. Order ORD-12400** - Ordered Jan 20, 2025 | Delivered Jan 23, 2025
- USB-C Charging Cable (2x) - $12.99 each
- **Total: $25.98** | Status: ✓ Delivered
**5. Order ORD-12345** - Ordered Jan 15, 2025 | Delivered Jan 20, 2025
- Wireless Headphones (1x) - $79.99
- **Total: $79.99** | Status: ✓ Delivered
**6. Order ORD-12300** - Ordered Jan 2, 2025 | Delivered Jan 8, 2025
- Running Shoes (1x) - $249.00
- **Total: $249.00** | Status: ✓ Delivered
All of your recent orders have been delivered successfully! Is there anything specific you'd like to know about any of these orders?
╭──────────────────────────────────────────────────────── supportAgentDemo_Agent ────────────────────────────────────────────────────────╮
│ Session: 74d74b58-aa7d-4b8b-9515-e0931743ce1d │
│ ARN: arn:aws:bedrock-agentcore:us-east-2:577405208411:runtime/supportAgentDemo_Agent-U90VrdH6Rf │
│ Logs: aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --follow │
│ aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --since 1h │
│ GenAI Dashboard: https://console.aws.amazon.com/cloudwatch/home?region=us-east-2#gen-ai-observability/agent-core │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
The next query demonstrates that we can ask the customer support agent for refund. This is a small item, so it’s supposed to go through without an issue.
martinheller@Mac customer-support-agent-with-agentcore % uv run agentcore invoke '{"prompt": "I need a refund for order ORD-12420. The phone case was damaged."}'
Using bearer token for OAuth authentication
Using JWT authentication
I'll process a refund for your damaged phone case from order ORD-12420.Perfect! Your refund has been processed successfully.
**Refund Details:**
- Refund ID: REF-DC32B
- Order: ORD-12420 (Phone Case)
- Amount: $29.99
- Reason: Damaged item
- Status: Processed
You should receive the refund in your original payment method within **3-5 business days**.
I'm sorry to hear the phone case arrived damaged. Is there anything else I can help you with today?
╭──────────────────────────────────────────────────────── supportAgentDemo_Agent ────────────────────────────────────────────────────────╮
│ Session: 74d74b58-aa7d-4b8b-9515-e0931743ce1d │
│ ARN: arn:aws:bedrock-agentcore:us-east-2:577405208411:runtime/supportAgentDemo_Agent-U90VrdH6Rf │
│ Logs: aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --follow │
│ aws logs tail /aws/bedrock-agentcore/runtimes/supportAgentDemo_Agent-U90VrdH6Rf-DEFAULT --log-stream-name-prefix │
│ "2026/03/02/[runtime-logs]" --since 1h │
│ GenAI Dashboard: https://console.aws.amazon.com/cloudwatch/home?region=us-east-2#gen-ai-observability/agent-core │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
This next refund request really should be rejected or bumped up to a human customer support agent for approval.



