

# Prerequisites
<a name="inline-agent-prereq"></a>

**Note**  
Configuring and invoking an inline agent feature is in preview release for Amazon Bedrock and is subject to change.

Complete the following prerequisites before you invoke your inline agent:

1. Decide on the foundation model you want to use for configuring your inline agent, Region where you want to invoke the agent, and an instruction that tells the inline agent what it should do. 

1. Create or prepare one or more of the following Amazon Bedrock agent properties you want to use for your inline agent.   
****    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/bedrock/latest/userguide/inline-agent-prereq.html)

1. Create a AWS Identity and Access Management (IAM) role and attach the policy mentioned in this step to the role. 

   Before you can invoke an inline agent, you must create an IAM role that provides the necessary permissions for using the `InvokeInlineAgent` API and to access resources like Lambda functions, knowledge bases, and foundation models. 

   Create a custom service role for your inline agent by following steps at [Creating a role to delegate permissions to an IAM user](https://docs.aws.amazon.com//bedrock/latest/userguide/getting-started.html). After you create the IAM role, attach the following policy to the role.
**Note**  
As a best practice for security purposes, replace the *\$1\$1region\$1*, *\$1\$1account-id\$1*, and *\$1.ids* with Region, your account id, and specific resource ids. after you have created them.