Overview
This guide walks you through the complete process of integrating AWS Bedrock Agents into your Elementum Apps. By connecting Bedrock Agents, you enable AI-powered automation that leverages Amazon’s foundation models, knowledge bases, and action groups while integrating seamlessly with your AWS infrastructure. Bedrock Agents are configured at the App level through the Intelligence settings, allowing each App to connect to external agents available through its Bedrock AI Provider. What You’ll Accomplish:- Configure an AWS Bedrock AI Provider in Elementum
- Create and configure a Bedrock Agent in AWS
- Connect external Bedrock Agents to your Elementum App
- Integrate external agents into App automations
- Understand the technical architecture and APIs
Prerequisites
Before beginning this setup, ensure you have the following in place:1. Elementum Requirements
App Access
Admin Permissions
2. 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
3. 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
Configure Agent Instructions
Select Foundation Model
Configure Optional Features
- Connect to S3 buckets containing documents
- Agent can retrieve and reference this information
- Define custom actions via Lambda functions
- Enable the agent to perform specific tasks
- Implement content filtering
- Define topic restrictions
Save and Prepare
Create an Agent Alias
Open Agent Configuration
Navigate to Aliases
Create Alias
- Alias name: Provide a name (e.g., “production”, “v1”)
- Description: Describe this version
- Select Create a new version and associate it to this alias
Copy the Agent Alias ARN
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
Navigate to IAM
Configure User
- User name: Choose a descriptive name (e.g., “elementum-bedrock-invoker”)
- Do not enable console access (programmatic access only)
Attach Permissions
Create Access Keys
- Open the user details
- Go to Security credentials tab
- Click Create access key
- Select Third-party service as the use case
- 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
Now configure Elementum to connect to AWS Bedrock.Add AI Provider
Navigate to AI Providers
Add New Provider
Configure Provider
us-east-2)Access Key ID: The access key from Step 2Secret Access Key: The secret key from Step 2Test Connection
Save Provider
Provider Configuration Tips
Region Matching
Multiple Providers
Step 4: Connect Agent in App Intelligence
With the provider configured, connect your Bedrock Agent to an App.Access Intelligence Settings
Navigate to Your App
Open App Admin
Select Intelligence
Add External Agent
Add Agent
Select Bedrock
Select Provider
Enter Agent Alias ARN
Configure Agent Settings
Save Configuration
Step 5: Test the Integration
Verify the agent connection works correctly.Test in Elementum
Open Agent
Start Chat
Send Test Messages
- The agent responds successfully
- Responses are appropriate and match expectations
- Latency is acceptable for your use case
Verify Behavior
- Standard queries
- Edge cases
- Knowledge base retrieval (if configured)
- Action group execution (if configured)
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
Navigate to Automation
Add Agent Action
Select Bedrock Agent
Configure Parameters
- Use field values from the current record
- Reference previous automation action outputs
- Include static values or formulas
- Map agent outputs to record fields
- Store results for later actions
- Set error handling behavior
Set Execution Options
- Continue with default values
- Halt automation and alert
- Escalate to human review
Example Automation
Understanding the Architecture
How Bedrock Agent Invocation Works
When Elementum invokes a Bedrock Agent:AWS Bedrock APIs Used
Elementum leverages the Amazon Bedrock Runtime API: InvokeAgent API Used to send messages to your agent and receive responses. 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
Elementum Logs
- Invocation frequency
- Response times
- Success/failure rates
- Error messages
AWS CloudWatch
- API call volumes
- Latency percentiles
- Error rates
- Token usage
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:InvokeAgentaction - Check policy is attached to the correct IAM user
- Ensure resource ARN in policy matches or uses wildcard
- Verify access keys belong to the correct 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
Security
IAM Best Practices
- Use least privilege permissions
- Restrict resource ARNs when possible
- Rotate access keys regularly (every 90 days)
- Use separate credentials per environment
Agent Security
- Enable Bedrock Guardrails for content filtering
- Define clear scope in agent instructions
- Monitor for unexpected behavior patterns
- Regular security reviews
Performance
- Optimize Instructions: Clear, concise agent instructions lead to faster responses
- Right-size Models: Use appropriate models for your use case (Haiku for speed, Opus for complexity)
- Monitor Latency: Track response times and set appropriate timeouts
- Cache When Possible: Cache repeated queries at the automation level
Cost Management
- Monitor token usage in AWS Cost Explorer
- Use smaller models for simpler tasks
- Implement rate limiting for high-volume automations
- Review and optimize knowledge base sizes
Example Use Cases
Use Case 1: IT Helpdesk Automation
Scenario: Automatically triage and respond to IT support tickets Implementation:- Create Bedrock Agent with IT knowledge base (documentation, FAQs)
- Configure action groups for ticket operations
- Connect agent in 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
Use Case 2: Customer Communication
Scenario: Generate personalized customer communications Implementation:- Create Bedrock Agent with communication templates and brand guidelines
- Configure guardrails for appropriate content
- Connect agent in CRM App
- Automation: Communication request → Agent drafts message → Human review → Send
- Consistent brand voice
- Personalized content at scale
- Faster communication turnaround
Next Steps
Agent Orchestration Center
Agent Architecture
Automation System
AWS Bedrock Docs
By integrating AWS Bedrock Agents through your App’s Intelligence configuration, you extend your automation capabilities with powerful AI while leveraging your existing AWS infrastructure and security model. This integration enables sophisticated conversational AI, knowledge retrieval, and custom actions within your Elementum workflows.