Amazon Bedrock Agents | Amazon Web Services

Amazon Web Services
7 Feb 202412:57

Summary

TLDRIn this video, Mark Roy, a Principal ML Specialist Solution Architect at AWS, introduces 'Agents for Amazon Bedrock'. This service enables the creation of applications that can execute complex business tasks using natural language interactions. It leverages Amazon Bedrock's large language models to decompose tasks into actionable steps, utilizing existing APIs, applications, and databases. The demo showcases a CRM agent that uses historical data to identify customer concerns and suggest meeting topics, demonstrating the powerful integration of AI with business processes.

Takeaways

  • 🧑‍💻 The speaker is Mark Roy, a principal ML specialist solution architect at AWS.
  • 🌟 Agents for Amazon Bedrock is a service that allows building applications which can execute multi-step business tasks.
  • 🤖 Generative AI is powerful but lacks the ability to take actions; Agents for Amazon Bedrock fills this gap.
  • 🔧 Agents can interact in natural language, utilize large language models, and take actions using existing APIs and databases.
  • 🛡️ It's a fully managed service that ensures security and provides control over access to agents and actions.
  • 📈 Agents can break down requests into steps, execute them, and provide transparent insights into the execution plan.
  • 🔄 The process involves constructing an LLM prompt, invoking Amazon Bedrock, and using Chain of Thought reasoning to execute tasks.
  • 💾 The demo showcases a CRM agent that leverages CRM data to help salespeople plan their work.
  • 📅 The agent can suggest meeting topics, agendas, and preferred times based on customer interactions and preferences.
  • 🔗 Agents can be integrated into custom applications or used standalone through the AWS console or API.
  • 📚 Resources are available for getting started with agents, including a blog post and an online workshop.

Q & A

  • What is the main purpose of Agents for Amazon Bedrock?

    -Agents for Amazon Bedrock allows customers to build applications that can execute multi-step business tasks using natural language, leveraging the power of large language models (LLMs) and integrating with existing APIs, applications, databases, and knowledge stores.

  • How does Agents for Amazon Bedrock differ from traditional applications?

    -Agents for Amazon Bedrock differs from traditional applications by not being hard-coded. Instead, it dynamically comes up with a plan on its own, given a set of tools, actions, and knowledge bases, and then executes that plan for the user.

  • What is the 'secret sauce' feature of Agents for Amazon Bedrock mentioned in the script?

    -The 'secret sauce' feature of Agents for Amazon Bedrock is its ability to take a user's request, break it down into a set of steps, and execute those steps on behalf of the user, all while being fully secure and managed.

  • How does the orchestration process work in Agents for Amazon Bedrock?

    -The orchestration process in Agents for Amazon Bedrock involves decomposing a task into steps, constructing a proper LLM prompt, invoking Bedrock, and then using Chain of Thought reasoning to execute each step using actions or knowledge bases until the task is complete.

  • What is Chain of Thought reasoning as mentioned in the script?

    -Chain of Thought reasoning is a method used by Agents for Amazon Bedrock to figure out a plan and execute each step using either an action or a knowledge base to complete a task.

  • How does transparency work in Agents for Amazon Bedrock?

    -Transparency in Agents for Amazon Bedrock is achieved by providing access to the plan that was created and how it was executed, allowing users to understand the decision-making process behind the scenes.

  • What is an example of an agent built in the demo in the script?

    -In the demo, a CRM (Customer Relationship Management) agent was built to leverage data in a CRM system, helping salespeople plan their work by interacting with customer data, opportunities, and historical activities.

  • How can users interact with Agents for Amazon Bedrock?

    -Users can interact with Agents for Amazon Bedrock through the test console while developing the agent, or by using the API to integrate the agent into their own applications or scripts.

  • What actions are available to the CRM agent demonstrated in the script?

    -The CRM agent has actions available such as getting a company overview, retrieving recent interactions or activities with details like dates, times, and meeting notes, and accessing customer preferences.

  • How does the CRM agent use the information from recent interactions to suggest a meeting topic and agenda?

    -The CRM agent uses the information from recent interactions by analyzing the customer's concerns and interests, then suggesting a meeting topic and agenda that aligns with those interests, such as an overview of smartship capabilities, pricing, and packages.

  • What resources are available for users to get started with Agents for Amazon Bedrock?

    -Users can refer to the announcement blog post for more information and participate in an online workshop that covers Amazon Bedrock overall with a specific module on Agents for Amazon Bedrock.

Outlines

00:00

🧠 Introduction to Amazon Bedrock Agents

Mark Roy, a principal ML specialist solution architect at AWS, introduces agents for Amazon Bedrock, a service that allows customers to build applications using large language models that can execute multi-step business tasks. These agents can interact in natural language and leverage existing APIs, applications, databases, and knowledge stores. The service is fully managed, secure, and provides control over access to agents, actions, and knowledge bases. It also offers transparency into the decision-making process behind task execution.

05:01

🔍 Demonstrating Amazon Bedrock Agents

The video script walks through a demo of a CRM agent built with Amazon Bedrock that helps salespeople manage customer interactions. The agent uses Amazon Bedrock's large language model, CLA 2.1, and is equipped with actions to retrieve a company overview, recent interactions, and customer preferences. The agent is shown to take a natural language request, break it down into steps, execute them by interacting with the CRM, and provide a comprehensive response. The demo also illustrates how to trace the agent's execution steps and how to integrate the agent into a custom application using the provided API.

10:01

🛠 Building Applications with Amazon Bedrock Agents

The script explains how to build applications using Amazon Bedrock agents by leveraging existing APIs and databases. It demonstrates a simple Lambda function in Python that handles events from the agent, retrieves necessary information, and returns it as an action response. The agent then uses this information to complete tasks. The video concludes with resources for getting started with agents, including an announcement blog post and an online workshop, and encourages viewers to explore building applications with Amazon Bedrock agents.

Mindmap

Keywords

💡Amazon Bedrock

Amazon Bedrock is a service that provides large language models (LLMs) to customers. It is a key component of the video's theme, as it is the platform on which agents operate. The script mentions that Amazon Bedrock is used across various industries and use cases, highlighting its versatility and power. The video discusses how agents for Amazon Bedrock can take advantage of these LLMs to execute multi-step business tasks.

💡Agents

Agents, in the context of the video, refers to a feature of Amazon Bedrock that allows for the creation of applications capable of executing complex, multi-step business tasks. They are integral to the video's narrative as they represent an advancement in generative AI, moving beyond mere data processing to taking actionable steps. The script provides a demo of how agents can interact with CRM data to provide insights and plan actions.

💡Generative AI

Generative AI is a type of artificial intelligence that can generate new content, such as text or images, based on existing data. In the video, generative AI is noted as being widely used, but the script emphasizes the need to move beyond generation to actionable tasks, which is where agents for Amazon Bedrock come into play.

💡Multi-step business tasks

This phrase refers to the ability of agents to perform a series of actions in sequence to accomplish a business goal. The video explains that agents can break down complex requests into a set of steps and execute them, which is a significant advancement in AI capabilities. An example from the script is the CRM agent that plans and executes steps to identify customer concerns based on recent interactions.

💡Natural Language

Natural language is the conversational language that people speak in their daily lives, as opposed to formal or computer languages. The video emphasizes that agents can be interacted with in natural language, making them more accessible and user-friendly. An example is the request for a meeting topic and agenda based on customer interests and preferences.

💡APIs and Applications

APIs (Application Programming Interfaces) and applications are tools that agents can interact with to perform tasks. The script mentions that agents can leverage existing APIs and applications, which means they can be integrated into a company's current tech stack to automate processes. This is showcased in the demo where the agent uses actions to interact with a CRM system.

💡Knowledge Stores

Knowledge stores refer to databases or repositories of information that agents can access to perform their tasks. In the video, knowledge stores are depicted as a resource that agents can use to gather information and make decisions, similar to how humans would use knowledge to solve problems.

💡Secure and Managed Service

This term highlights that Amazon Bedrock's agents are not only powerful but also secure and easy to manage. The video script assures viewers that the service is fully managed, meaning AWS takes care of the infrastructure and maintenance, and that it is secure, with controls over who can access the agents and their actions.

💡Transparent Execution

Transparent execution refers to the ability to see how an agent has processed a request and carried out actions. The script explains that agents provide a trace of their decision-making process, which is valuable for understanding and auditing how tasks are completed. This transparency is a key feature that differentiates agents from traditional black-box AI systems.

💡Orchestration

Orchestration, in the context of the video, refers to the process by which agents decompose tasks into steps and then execute those steps in an organized manner. It is a core concept in the video's demonstration of agent functionality. The script describes how agents use a 'Chain of Thought' reasoning to figure out a plan and execute it, which is a form of orchestration.

💡Lambda Functions

Lambda Functions are serverless computing functions provided by AWS that can be used to run code without provisioning or managing servers. The video script mentions using Lambda functions to interact with databases and APIs, which simplifies the process of building applications that leverage agents. An example given is a Python Lambda function that retrieves meeting results to fulfill an agent's request.

Highlights

Introduction to Agents for Amazon Bedrock by Mark Roy, Principal ML Specialist Solution Architect at AWS.

Generative AI is widely used across industries but lacks the ability to take action.

Agents for Amazon Bedrock allows building applications that can execute multi-step business tasks.

Agents can interact in natural language and utilize existing APIs, applications, databases, and knowledge stores.

Agents uses the power of Bedrock's large language models.

Agents can break down requests into steps and execute them autonomously.

The service is fully secure, managed, and provides control over access to agents and actions.

Agents provide transparency on the execution plan and how tasks are completed.

Orchestration of tasks by Agents involves decomposing tasks into executable steps.

Agents use Chain of Thought reasoning to figure out a plan and execute steps.

Demo of Amazon Bedrock console showing how to create and manage agents.

Example of a CRM agent that leverages CRM data to assist salespeople.

Agents can be invoked through the test console or API for development.

Detailed trace of agent's multi-step plan execution shown in demo.

Agents can have natural language conversations and make decisions based on previous interactions.

Agents can suggest meeting topics and agendas based on customer interests and preferences.

Agents can be integrated into custom applications or scripts.

APIs are available for invoking agents and creating agents.

Lambda functions can be used to connect Agents with databases and APIs.

Resources provided for getting started with Agents for Amazon Bedrock.

Encouragement for viewers to explore and build with Agents for Amazon Bedrock.

Transcripts

play00:00

welcome my name is Mark Roy and I'm a

play00:02

principal ml specialist solution

play00:04

architect at

play00:05

AWS and in this brief video I'm going to

play00:08

take you through an overview of agents

play00:11

for Amazon Bedrock as well as give you a

play00:14

quick demo of how it works so let's Jump

play00:18

Right In uh first of all let me cover

play00:21

what is agents for Amazon Bedrock uh and

play00:24

as you probably know uh generative AI

play00:27

has been being used by

play00:30

pretty much every customer and across

play00:33

all use cases and and industries so it's

play00:36

uh and it's been shown to be extremely

play00:38

powerful one of the things it's not

play00:40

doing however is taking action so

play00:43

customers are looking to build Solutions

play00:46

using large language models services

play00:48

like Amazon Bedrock but they want to

play00:50

take it to the next step uh so what

play00:52

agents allows you to do is build these

play00:56

applications that can execute multi-step

play00:58

business tasks you can interact with it

play01:01

in natural language take advantage of

play01:03

the full power of llms large language

play01:06

models uh under the hood but also take

play01:10

actions by taking advantage of your

play01:12

existing apis and applications databases

play01:16

and and uh knowledge stores so a quick

play01:20

look rundown of the features uh that

play01:22

agents provides one it uses the power of

play01:25

bedrocks large language models uh

play01:28

secondly and this is really where the

play01:30

secret sauce comes in uh it's able to

play01:33

take your request break that down into a

play01:36

set of steps and execute that on your

play01:40

behalf so it's not a hard-coded

play01:42

application uh it's actually coming up

play01:45

with a plan on its own given a set of

play01:47

tools or actions and knowledge bases and

play01:50

then executing that for you uh it's also

play01:54

done in a fully secure fashion this is a

play01:56

fully managed service and you get full

play01:59

control over for who can use which uh

play02:01

agents and actions and knowledge bases

play02:04

and then lastly uh because this is a a a

play02:10

uh it's making decisions uh under the

play02:12

hood about how to execute it also gives

play02:14

you access to uh what that plan was and

play02:18

how it executed that uh

play02:21

transparently so because the

play02:23

orchestration is something kind of new

play02:26

uh and interesting let me dive into that

play02:28

a little bit further so when you use an

play02:30

agent you hand it a task and agents for

play02:34

Amazon Bedrock decomposes that it

play02:36

figures out a plan what are the steps

play02:38

that I need to do to get that job done

play02:40

on your behalf uh and based on that plan

play02:45

it will execute uh various actions or do

play02:48

some uh searches across uh multiple

play02:52

knowledge bases it will look at the

play02:54

results that it gets and and proceed to

play02:56

The Next Step until it's got uh

play03:00

uh the U task complete until it has a

play03:03

final answer let's double click on that

play03:05

a little bit more uh deeply and then

play03:08

I'll jump into a demo so here we've got

play03:11

a Bedrock agent been that's been handed

play03:13

a task uh and under the hood it does all

play03:17

of the heavy lifting of constructing a

play03:20

proper llm prompt it takes into account

play03:23

all of the conversation history you've

play03:25

been having with the agent it gives the

play03:27

metadata about which action

play03:30

what tools are available and what

play03:32

knowledge bases are available it gives

play03:34

it the set of instructions that the

play03:36

agent Builder provided uh and then it

play03:40

will invoke uh Bedrock under the hood

play03:44

and and then uh the agent will figure

play03:47

out a plan using what's called Chain of

play03:49

Thought uh reasoning here and it will

play03:52

execute each of those steps using either

play03:54

an action or a knowledge base and when

play03:57

it gets the full set of results it will

play04:00

then use Bedrock again uh to prepare a

play04:03

final response using natural language uh

play04:06

back to the actual

play04:08

user very powerful new way to go about

play04:12

taking full advantage of uh large

play04:14

language models so let's see a demo of

play04:17

how that

play04:19

works uh so what you're looking at here

play04:21

is the Amazon Bedrock console I've

play04:24

clicked on agents and I've brought up uh

play04:26

an agent that I've already built this

play04:29

agent is is a CRM agent or customer

play04:31

relationship management agent uh that

play04:34

makes it easy to uh leverage um the data

play04:39

that's available uh in your CRM so the

play04:43

uh let's say I'm an account manager and

play04:46

I work with multiple different

play04:48

customers uh the CRM lets me keep track

play04:51

of who those customers are the

play04:53

opportunities uh that I'm working on uh

play04:56

with them as well as the history of all

play04:58

the different uh activ activities let's

play05:00

say meetings and discussions and events

play05:02

and so forth uh so all of that's

play05:05

available so uh when you define an agent

play05:08

you give it a

play05:09

name uh and uh here I've got a set of

play05:13

versions that I've been building let's

play05:14

dive into the current working draft so

play05:17

you've got the name of your agent and

play05:18

then a set of instructions uh so here

play05:21

I'm saying that you are a customer

play05:23

relationship management agent that helps

play05:26

salespeople plan their work uh so forth

play05:29

and so so on uh and you also identify

play05:32

which Amazon Bedrock large language

play05:35

model you're using in this case we're

play05:36

using CLA uh

play05:38

2.1 and then you define a set of

play05:41

knowledge bases you want to make

play05:42

available to it as well as uh a set of

play05:46

actions or apis that are

play05:49

available in this case I'm just giving

play05:52

it a couple of actions uh one an ability

play05:55

to get back a company

play05:57

overview uh a second one

play06:00

that lets uh the agent get back the set

play06:03

of recent interactions or activities uh

play06:07

and give details back about that like

play06:09

for

play06:10

example um uh an array of um dates uh

play06:17

times uh as well as

play06:21

um uh the meeting notes uh from those

play06:24

interactions and then lastly uh it has

play06:27

an ability to get the customer

play06:29

preferences so these are the uh actions

play06:32

that are uh available to this agent and

play06:35

let's see how the agent uh works so you

play06:38

can either use the agent from the test

play06:40

console as you're developing it or you

play06:42

can use the

play06:43

API so here's an example call that I

play06:46

made uh before we started uh this video

play06:50

uh I asked the agent to help me out with

play06:53

uh customer

play06:54

CABC given our recent interactions what

play06:57

are their top concerns and interests and

play06:59

it came back with an answer saying hey

play07:01

they're worried about

play07:02

reliability and they have a strong

play07:04

interest in our upcoming Service uh

play07:06

particularly around pricing and if I

play07:08

show the detailed trace of what went on

play07:13

uh behind the scenes uh you can see that

play07:15

it came up with a multi-step plan four

play07:18

steps and then it executed uh those

play07:21

steps the first step was to find the

play07:23

interactions it passed in the customer

play07:25

ID which it was able to uh pull from my

play07:28

request

play07:30

uh and then it uh invoked uh the action

play07:34

which interacted with the CRM itself

play07:36

gave back a set of details here about

play07:38

all the meetings that we've had when

play07:40

they happened what the results were uh

play07:44

and then it uh determines that it's got

play07:46

enough information and it gives back a

play07:48

final response basically summarizing

play07:51

what were the concerns based on uh that

play07:54

activity uh so pretty powerful and then

play07:57

you can actually have a conversation as

play07:59

as well so here I'm going to have a

play08:01

followup request based on those

play08:04

interests suggest a next meeting topic

play08:08

and an agenda and let me know what day

play08:11

and time is preferred so it's able to

play08:13

leverage what it is already seen to come

play08:16

up with a meeting topic which is

play08:18

basically uh an overview of the

play08:21

smartship capabilities and it proposed

play08:24

an agenda uh smartship overview pricing

play08:27

and packages demo

play08:29

Q&A uh you notice it came back with a uh

play08:33

suggested meeting time of Wednesday

play08:35

afternoon and that was based on its

play08:38

ability to uh take an action on my

play08:40

behalf to look up the customer

play08:42

preferences so I had all of this

play08:44

powerful interaction with really just a

play08:48

couple of simple natural language

play08:50

requests and agents for Amazon Bedrock

play08:54

uh is able to interpret those uh and

play08:56

take action on my behalf dynamic Ally

play08:59

coming up with a plan based on what are

play09:01

the actions available and what are the

play09:03

knowledge bases uh

play09:06

available taking that a little bit

play09:08

further in addition to using it from the

play09:10

test console as you're building an

play09:13

agent you can

play09:17

also uh write your own uh application or

play09:21

integrate an agent with your own

play09:23

application uh you could use it from a

play09:25

script uh you could use it from an

play09:28

existing

play09:29

um tool or website or your uh you know

play09:34

uh iOS application

play09:37

and there's a full API to invoke the

play09:40

agent uh as well as create agents uh as

play09:43

well so in this case um I built a simple

play09:46

user interface that takes in a request

play09:50

it calls invoke agent uh because we

play09:53

deployed that agent and made Avail made

play09:55

it available uh to the

play09:57

API uh and as it it's uh proceeding the

play10:01

API gives you back a trace of what's

play10:03

happening so here you see the steps that

play10:05

it was planning to do uh and then the

play10:08

first step that it uh took on my behalf

play10:11

what parameters it passed what results

play10:14

it got back and then it takes a another

play10:17

step um comes back with some

play10:21

results and then it figures out it's got

play10:23

enough information so it uh returns that

play10:26

back uh to the invoke agent uh response

play10:31

and my application would really just

play10:32

show this uh I could save this Trace

play10:36

information into a log file if uh if I

play10:38

wanted to for example uh so you can set

play10:41

up a a bot of your own uh that will take

play10:45

natural language input use one or more

play10:48

agents under the hood and the Agents

play10:50

will uh take advantage of your existing

play10:53

apis and databases and document stores

play10:56

uh to get work done very simple Le to

play10:59

build um in the way that you hook into

play11:02

your databases and apis is to write

play11:05

simple Lambda functions uh in whatever

play11:08

language uh you'd like in this case I've

play11:10

got a python Lambda function uh so we

play11:14

take in an event the agent hands you an

play11:17

event uh you can look at what action the

play11:20

agent wanted you to take in this example

play11:24

uh if I am asked to list recent

play11:27

interactions call a function uh that

play11:30

will get that

play11:32

done in this simple demo I've just uh

play11:35

retrieved the customer ID parameter and

play11:37

the comp parameter and then I've got a

play11:39

hardcoded set of uh meeting results that

play11:42

I'm handing back in the real world this

play11:45

is where I would call the CRM API uh to

play11:48

get that job done and uh then I simply

play11:52

uh return uh that back as part of the

play11:55

action response and the agent uh API

play11:59

takes care of the rest so very

play12:02

straightforward to use very powerful new

play12:05

way to look at building applications

play12:08

using large language

play12:10

models so with that uh um let me also

play12:15

point out that we've got some resources

play12:17

for you to help you get started uh on

play12:19

the left uh this will get you to our uh

play12:23

announcement blog post uh to help you

play12:25

understand uh a little bit more about

play12:28

agents and on the right we've got a an

play12:31

online Workshop uh that you can uh learn

play12:35

about Amazon Bedrock overall with a set

play12:38

of different modules including a module

play12:40

specifically on agents for Amazon

play12:43

bedrock with that thank you for watching

play12:46

and uh let us know what you go out and

play12:48

build with agents for Amazon

play12:55

bedrock

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
AI AutomationAmazon BedrockBusiness TasksGenerative AICRM IntegrationNatural LanguageAPI ActionsKnowledge BasesML SpecialistTech Demo
هل تحتاج إلى تلخيص باللغة الإنجليزية؟