Overview
This guide covers configuring a Bedrock Agent in AWS, adding an Amazon Bedrock AI Provider in Elementum, connecting the agent in App Intelligence, and using it in automations. Bedrock Agents are configured per App; each App uses agents through a Bedrock AI Provider defined at the organization level. You will:- Add an Amazon Bedrock AI Provider in Organization Settings
- Create a Bedrock Agent and agent alias in AWS
- Connect the agent via App Intelligence using the Agent Alias ARN
- Use the agent in automations and optional testing in Intelligence
Prerequisites
Before beginning, ensure you have the following in place.Elementum Requirements
- App access: Access to the App where you want to use Bedrock Agents
- Organization permissions: Ability to add or edit AI Providers in Organization Settings
AWS Requirements
Your AWS environment must have:- AWS Account: Active AWS account with Bedrock access
- Region: Bedrock available in your target region (e.g., us-east-1, us-east-2, us-west-2)
- Bedrock Access: Amazon Bedrock service enabled for your account
- Foundation Model Access: Access granted to at least one foundation model (Claude, Titan, etc.)
- IAM Permissions: Ability to create IAM users and policies
IAM Credentials
You’ll need AWS credentials that can invoke Bedrock Agents:- Access Key ID: AWS access key for programmatic access
- Secret Access Key: Corresponding secret key
- IAM Policy: Permission to invoke Bedrock agents (
bedrock:InvokeAgent)
Step 1: Configure AWS Bedrock Agent
Before connecting to Elementum, you need a Bedrock Agent configured in AWS.Create a Bedrock Agent in AWS
Access Amazon Bedrock
- Sign in to the AWS Management Console
- Navigate to Amazon Bedrock service
- Select Agents from the left navigation
Create New Agent
- Agent name: Provide a descriptive name (e.g., “Customer Support Agent”)
- Description: Describe the agent’s purpose
- Agent resource role: Create a new role or select an existing one with Bedrock permissions
Select Foundation Model
Configure Optional Features
- Attach Amazon Bedrock knowledge bases using supported data sources (for example, Amazon S3)
- The agent can retrieve and cite that content when answering
- Define custom actions via Lambda functions
- Enable the agent to perform specific tasks
- Implement content filtering
- Define topic restrictions
Create an agent alias
Elementum invokes agents with an Agent Alias ARN, not the base agent ARN.- In the Bedrock console, open the agent and open the Aliases tab.
- Click Create alias. Set an alias name and description, and choose Create a new version and associate it to this alias so the alias points at a prepared version.
- After creation, copy the Agent Alias ARN. Format:
arn:aws:bedrock:{region}:{account-id}:agent-alias/{agent-id}/{alias-id}
Test Agent in AWS Console
Before connecting to Elementum, verify your agent works correctly:- In the Bedrock console, open your agent
- Use the Test panel on the right side
- Send test messages to verify behavior
- Confirm responses match your expectations
Step 2: Create IAM Credentials
Create IAM credentials that Elementum will use to invoke your Bedrock Agent.Create IAM User
Configure User
- User name: Choose a descriptive name (e.g., “elementum-bedrock-invoker”)
- Do not enable console access (programmatic access only)
Create Access Keys
- Open the user details
- Go to Security credentials tab
- Click Create access key
- Choose a use case that matches programmatic access from outside AWS (for example, application running outside AWS), then complete the prompts
- Copy and securely store the Access Key ID and Secret Access Key
Required IAM Permissions Summary
| Permission | Description |
|---|---|
bedrock:InvokeAgent | Required to invoke the agent and receive responses |
Step 3: Create Bedrock AI Provider in Elementum
Configure Elementum to call AWS with the credentials from Step 2.Add the provider
- Go to Organization Settings and open the Providers tab (same place you configure other AI Providers).
- Click + Provider and select Amazon Bedrock.
- Enter a Provider name, the Region where the agent is deployed (for example
us-east-2), Access Key ID, and Secret Access Key. - Use Test Connection to confirm the credentials, then Save.
- The provider Region must match the region in your Agent Alias ARN and where the agent runs.
- Use separate providers for different AWS accounts or regions if needed.
Step 4: Connect Agent in App Intelligence
With the provider configured, connect your Bedrock Agent to an App.Open App Intelligence
- Open the App where you want to use Bedrock Agents.
- In the App menu, click Intelligence.
Connect the Bedrock agent
Add Agent
Select Provider
Enter Agent Alias ARN
Configure Agent Settings
Step 5: Test the Integration
Verify the agent connection works correctly.Test in Elementum
Send Test Messages
- The agent responds successfully
- Responses are appropriate and match expectations
- Latency is acceptable for your use case
Expected Behavior
| Test | Expected Result |
|---|---|
| Simple greeting | Agent responds appropriately |
| Domain-specific question | Agent uses knowledge base (if configured) |
| Action request | Agent executes action group (if configured) |
| Out-of-scope question | Agent handles gracefully per instructions |
Step 6: Integrate with Automations
Use your Bedrock Agent in App automations for production workflows.Using Agents in Automation Actions
In the automation builder, the action type is Run Agent Task. For full field-level detail, see Run Agent Task in the automation actions reference.Select Bedrock Agent
Configure the task and outputs
Set Execution Options
- Continue with default values
- Halt automation and alert
- Escalate to human review
Example automation (conceptual)
The following illustrates how steps might flow; exact builder labels can vary by release.Understanding the Architecture
How Bedrock Agent Invocation Works
When Elementum invokes a Bedrock Agent:AWS Bedrock APIs Used
Elementum invokes Bedrock Agents using theInvokeAgent operation on Amazon Bedrock’s agent runtime API (not the generic model InvokeModel API).
InvokeAgent
Sends a prompt to the agent and returns the agent’s response (including optional tool and knowledge-base steps on the AWS side).
Key Parameters:
agentAliasId: The alias ID of the agentagentId: The unique identifier of the agentsessionId: Session identifier for conversation continuityinputText: The message to send to the agent
Security Model
| Aspect | Implementation |
|---|---|
| Authentication | IAM Access Key/Secret Key via Bedrock AI Provider |
| Authorization | IAM policies control which agents can be invoked |
| Data in Transit | TLS encryption for all API calls |
| Audit | AWS CloudTrail logs all Bedrock API calls |
| Isolation | App-level configuration with provider-based access |
Monitoring and Maintenance
Monitoring Agent Performance
In Elementum- Use automation history and related logs to review invocations, response times, success and failure rates, and error messages.
- Use CloudWatch and Cost Explorer (as applicable) for Bedrock API volume, latency, errors, and token or usage-related metrics.
Maintenance Tasks
- Regular Maintenance
- Updating Agents
- Scaling
- Review automation logs for agent errors
- Monitor response times and latency
- Check for timeout patterns
- Review agent usage and costs
- Audit IAM permissions
- Test agent behavior after any updates
- Rotate IAM access keys
- Review and optimize agent instructions
- Evaluate new foundation models
Troubleshooting
Common Issues
Access Denied Errors
Access Denied Errors
- IAM user missing
bedrock:InvokeAgentpermission - Policy not attached to user
- Resource restrictions in policy don’t match agent ARN
- Verify IAM policy includes
bedrock:InvokeAgentand is attached to the IAM user whose keys are on the Bedrock AI Provider - Ensure the policy
Resourcematches your agent alias ARNs or uses a permitted pattern (see Step 2: Create IAM credentials) - Confirm the access keys in Elementum belong to that user
ARN Format Errors
ARN Format Errors
- Using agent ARN instead of agent alias ARN
- Typo in the ARN
- Wrong region in ARN
- Ensure you’re using the Agent Alias ARN, not the base Agent ARN
- Verify the format:
arn:aws:bedrock:{region}:{account}:agent-alias/{agent-id}/{alias-id} - Copy the ARN directly from the AWS console
- Check region matches your provider configuration
Region Mismatch
Region Mismatch
- Provider configured for different region than agent
- Agent not available in specified region
- Verify the region in your Bedrock AI Provider matches where the agent is deployed
- Check the region in the Agent Alias ARN
- Confirm Bedrock is available in your target region
- Update provider configuration if needed
Timeout Errors
Timeout Errors
- Timeout set too low for agent complexity
- Agent accessing slow knowledge bases
- Large response generation
- Network latency
- Increase timeout in automation configuration
- Optimize agent instructions for faster responses
- Review knowledge base configuration for performance
- Consider breaking complex tasks into multiple calls
Alias Not Associated with Version
Alias Not Associated with Version
- Alias created without linking to a version
- Agent in draft state without prepared version
- In Bedrock console, verify the alias has an associated version
- Create a new alias and select “Create a new version and associate it”
- Ensure the agent is not in draft state
Debugging Tips
- Test in AWS First: Always verify agent works in the Bedrock console before troubleshooting Elementum integration
- Check CloudTrail: Review AWS CloudTrail logs for detailed API call information
- Verify Credentials: Test IAM credentials independently using AWS CLI
- Review Provider Status: Check the Bedrock AI Provider status in Elementum
Best Practices
IAM and credentials
IAM and credentials
- Apply least privilege; scope
bedrock:InvokeAgentto specific agent alias ARNs when practical. - Rotate access keys on a schedule your organization defines (for example, every 90 days).
- Use different IAM users or keys per environment (development vs production).
Agent configuration and guardrails
Agent configuration and guardrails
- Use Bedrock Guardrails and clear instruction scope where appropriate.
- Review agent behavior and access periodically.
Optimize instructions
Optimize instructions
Model choice
Model choice
Latency and timeouts
Latency and timeouts
Caching repeated work
Caching repeated work
Monitor usage and spend
Monitor usage and spend
Right-size models for simple tasks
Right-size models for simple tasks
Rate limiting high-volume automations
Rate limiting high-volume automations
Knowledge base footprint
Knowledge base footprint
Example Use Cases
IT helpdesk automation
IT helpdesk automation
- Create a Bedrock Agent with an IT knowledge base (documentation, FAQs).
- Configure action groups for ticket operations.
- Connect the agent in the IT Support App Intelligence.
- Set up automation: New ticket → Agent analysis → Auto-categorize and suggest resolution.
- Faster first response times
- Consistent ticket categorization
- Reduced L1 support workload
Customer communication
Customer communication
- Create a Bedrock Agent with communication templates and brand guidelines.
- Configure guardrails for appropriate content.
- Connect the agent in the CRM App.
- Automation: Communication request → Agent drafts message → Human review → Send.
- Consistent brand voice
- Personalized content at scale
- Faster communication turnaround