Documentation Index
Fetch the complete documentation index at: https://docs.elementum.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AWS Bedrock integrates with Elementum in two ways:- AI Services — Select and configure Claude models hosted on Bedrock, then use them across automations and agents like any other provider. Running models through your own AWS account keeps AI workloads within your cloud infrastructure and compliance boundaries.
- Bedrock Agents — Connect a Bedrock Agent you’ve built in AWS to an Elementum App so you can invoke it from automations and Intelligence.
- Add an Amazon Bedrock AI Provider in Organization Settings
- Select and configure Bedrock-hosted Claude models for use in AI Services
- Optionally create a Bedrock Agent and agent alias in AWS
- Connect the agent via App Intelligence using the Agent Alias ARN
- Use Bedrock models and agents in automations
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 with the appropriate Bedrock permissions:- Access Key ID: AWS access key for programmatic access
- Secret Access Key: Corresponding secret key
- IAM Policy: Permission to invoke Bedrock models (
bedrock:InvokeModel) and, if using Bedrock Agents, permission to invoke agents (bedrock:InvokeAgent)
Step 1: Configure AWS Bedrock Agent (Optional)
If you plan to connect a Bedrock Agent to an App, configure the agent in AWS first. If you only need Bedrock-hosted models for AI Services, skip ahead to Step 2.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 call Bedrock models and (optionally) invoke Bedrock Agents.Create IAM User
Configure User
- User name: Choose a descriptive name (e.g., “elementum-bedrock-invoker”)
- Do not enable console access (programmatic access only)
Attach Permissions
bedrock:InvokeModel for AI Services and bedrock:InvokeAgent if you are connecting Bedrock Agents: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:InvokeModel | Required to call Bedrock-hosted models (Claude) for AI Services |
bedrock:InvokeAgent | Required to invoke Bedrock Agents and receive responses |
bedrock:InvokeModel is sufficient. Add bedrock:InvokeAgent when you also connect Bedrock Agents. If your agent uses knowledge bases or action groups, the agent’s own IAM role (not the invoker role) needs additional permissions for those resources.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 your Bedrock resources are 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 where your Bedrock models and agents are available.
- Use separate providers for different AWS accounts or regions if needed.
Select Bedrock-hosted models for AI Services
Once the provider is saved, you can create AI Services that use Bedrock-hosted Claude models:- In Organization Settings, go to the Services tab.
- Click + Service and select the service type (LLM).
- Choose your Amazon Bedrock provider.
- Select a Claude model from the available list (model availability depends on your AWS region and account access).
- Configure service settings (name, temperature, max tokens) and Save.
Step 4: Connect Agent in App Intelligence (Optional)
If you configured a Bedrock Agent in Step 1, connect it 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 uses two Bedrock APIs depending on the feature: InvokeModel Sends a prompt to a Bedrock-hosted foundation model (e.g., Claude) and returns the model response. Used by AI Services created with the Bedrock provider. Key Parameters:modelId: The identifier of the foundation modelbody: The request payload (prompt, parameters)contentType/accept: Media types for the request and response
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 models and 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:InvokeModelandbedrock:InvokeAgentto specific model and 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