Skip to main content
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automated Workflows and AI Agents
with Amazon Bedrock
Alexander Barge
Sr. Solutions Architect
AWS
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• From LLMs to Agentic Workflows
• Introduction to Amazon Bedrock Agents
• Agent structure & Agent orchestration
• Outlook
2
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Basic Foundation Model Flow
Input Output
Foundation
Model
“a concept car that flies
and can be used as a boat”
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workflow automation challenges
LLM’s are powerful,
but they can’t
take actions
Integration of data and
internal systems is crucial
but challenging
Orchestration of diverse
programming languages
and interfaces
Enterprise-grade
solutions involve
complex engineering
4
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security considerations for generative AI
The policies, procedures,
and reporting needed to
empower the business
while minimizing risk
---
Create generative AI usage
guidelines
Establish process for
output validation
Develop monitoring &
reporting processes
The specific regulatory,
legal, and privacy
requirements for using
or creating generative AI
solutions.
---
Retain control of your
data
Encrypt data in transit
and at rest
Support regulatory
standards
The implementation of
security controls that are
used to mitigate risk.
---
Human-in-the-loop
Explainability & auditability
Testing strategy
Identity and access
management
Identification of potential
threats to generative AI
solutions and
recommended
mitigations.
---
Threat modeling
Third-party risk
assessments
Ownership of data,
including prompts and
responses
How to architect
generative AI solutions to
maintain availability and
meet business SLAs.
---
Data management
strategy
Availability
High Availability and
Disaster Recovery
strategy
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use as is or
customize
Fine-tune FMs as
needed; Bedrock will
automatically deploy
the FM for inference
Send
prompt
Use the Bedrock API
to send your prompts
to the model
Choose
an FM
Use the playground to
experiment with FMs
and select the one that
suits your needs
Receive
response
Receive the model
response in your
application
Amazon Bedrock
Build generative AI
applications using FMs
through a serverless
API service
6
Fully managed, enterprise-grade access to FMs
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Helps keep your data
secure and private
None of the customer’s data is used to
train the underlying model
All data is encrypted in transit and at rest
Data remains in the Region where the
API is processed
Guardrails can be customized to application
requirements and responsible AI policies
Support for GDPR, SOC, ISO, CSA
compliance, and HIPAA eligibility
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Your data is the differentiator
Generic
generative AI
Generative AI that
knows your business
and your customers
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common approaches for
C O M P L E X I T Y ,
Q U A L I T Y ,
C O S T , T I M E
Prompt
engineering
Retrieval
Augmented
Generation
(RAG) Fine-tuning
Continued
pretraining
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Bedrock Knowledge Bases
N A T I V E S U P P O R T F O R R E T R I E V A L A U G M E N T E D G E N E R A T I O N ( R A G )
10
MODEL
Anthropic—Claude
Meta—Llama
Amazon—Titan Text
AI21 Labs—Jurassic2
USER QUERY AUGMENTED PROMPT ANSWER
KNOWLEDGE
BASES FOR
AMAZON BEDROCK
3
2
1 4 5 6
Securely connect FMs
to data sources for
RAG to deliver more
relevant responses
Fully managed RAG
workflow including
ingestion, retrieval,
and augmentation
Built-in session
context management
for multi-turn
conversations
Automatic citations
with retrievals to
improve transparency
A M A Z O N
B E D R O C K
Mistral AI - Mistral
Cohere – Command
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
From LLMs to Agentic Workflows
Observe results
Input
Think about next step
Output
Execute action or
search knowledge base
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
12
Amazon Bedrock
Agents
Enable generative AI applications
to execute multi-step business tasks
using natural language
• Uses power of LLM’s to prompt and
respond using natural language
• Breaks down and orchestrates tasks
• Completes tasks by dynamically
invoking APIs
• Securely and privately accesses
company data
• Surfaces chain-of-thought trace and
underlying agent prompts
Generally available
Features
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agent basics
Instructions: “you are an agent that …”
Agent
Amazon
Bedrock
do this
for me…
Done. Here’s
the result…
13
Knowledge Bases
Actions
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents use actions to get work done
Instructions: “you summarize meetings and send results”
Meeting assistant
list the action items
from my meeting
Here are the action
items: 1/ …, 2/ …
send them
to my team
Email sent
Meeting Actions
List Meetings
In: date range
Out: [date, subject,
meeting ID]
Get Action Items
In: meeting ID
Out: [action items]
Utility Actions
Send Email
In: subject,
recipients, body
Out: status
Get Team
Out: list of team member
email addresses
14
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents can combine Actions and Knowledge Bases
Instructions: “you are an HR agent, helping employees
understand HR policies and manage vacation time”
HR Policy Assistant v2
how much vacation do
I get per year?
as a full-timer with
3 years tenure, you
get 15 days
HR Knowledge Base
Vacation Policy
Contains the entire
vacation policy for
the company
HR Actions
Request Vacation
In: start date, end date
Out: approval status,
remaining balance
cool. I’d like to take
off December 8 to 15
approved, enjoy.
you have 8 more
days available
15
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents build on existing enterprise resources
HR Time Off
Agent
Vacation Actions
Leave of absence Actions
get-Vacation-Balance
request-LOA
Vacation
microservice
Vacation
database
Leave of absence (LOA)
database
HR Knowledge Base
search-HR-policy
HR Policy docs
16
Existing resources
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agents can be deployed and invoked from any app
17
Agent
draft
Agent
builder
Agent
user
Event
Deployed
Agent
Agent
console
or SDK
Customer
app
Building and testing agents Using production agents
To deploy an agent, you create a new Alias,
and optionally a new Version
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agent orchestration is transparent – Trace
Detailed orchestration trace in the console and from the SDK
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example: Observability in Natural Language
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example: Observability in Natural Language
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
for Agents
Enable Agents to keep and use
summaries of prior interactions
over time
Build Agents that learn from previous
interactions for more seamless
conversations over time
Enable more personalized experiences
Use unique memory ids for separation
between users
Retain the summaries for up to 30 days
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
for Agents
Enable code interpretation
capability to allow agents to
generate and execute code to
perform complex analysis
Enable Agents to generate and execute code
to answer questions and solve problems
Generate charts and analysis automatically
using generated code
Analyze files automatically with generated
code, including CSV, XLS, JSON, DOC, HTML,
TXT, and PDF
Code runs in an isolated environment, with
built-in guardrails enabled
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Multi Agent Orchestration
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Bedrock Prompt Flows
V I S U A L I Z E A N D A C C E L E R A T E G E N E R A T I V E A I D E V E L O P M E N T W O R K F L O W S
Drag-and-drop
interface
Direct testing and
deployment
Version control
and aliasing
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building AI Agents with Amazon Bedrock
Automates
orchestration of
multi-step tasks
Provides secure
access to enterprise
data and APIs
Provides fully
managed
infrastructure
Simplifies building
and deploying
AI assistants
Lets you choose
implementation
languages
25
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Alexander Barge
bargalex@amazon.com
/in/alexanderbarge/
Lets connect!