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 Agents are agents you build in your own AWS account using Amazon foundation models, knowledge bases, action groups, and guardrails. Elementum lets you connect a Bedrock Agent to an App through App Intelligence so you can invoke it from automations and conversational workflows—while data access and execution stay inside your AWS environment. You will:- (If needed) Create a Bedrock Agent and an agent alias in AWS.
- Add
bedrock:InvokeAgentto the IAM user used by your Bedrock AI Provider. - Connect the agent to an App through App Intelligence using the Agent Alias ARN.
- Use the agent in automations via Run Agent Task.
Prerequisites
Elementum requirements
- App access: Access to the App where you want to use the Bedrock Agent.
- Bedrock AI Provider configured: An Amazon Bedrock AI Provider must already exist in Organization Settings → Providers. If you haven’t set this up, complete AWS Bedrock Setup first—this guide assumes that’s done.
AWS requirements
Your AWS environment must have:- An AWS Account with Bedrock enabled in your target region.
- Foundation model access granted to the model your agent will use.
- The IAM user used by your Bedrock AI Provider must include the
bedrock:InvokeAgentpermission (see Step 2).
Step 1: Configure the Bedrock Agent in AWS
If you have not yet built the agent in AWS, create it and an agent alias before connecting to Elementum. Skip to Step 2 if you already have a Bedrock Agent and alias.Create a Bedrock Agent in AWS
Access Amazon Bedrock
- Sign in to the AWS Management Console.
- Navigate to the 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 the agent in the 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: Grant InvokeAgent permission
The IAM user backing your Bedrock AI Provider must be able to invoke agents.- In the AWS Console, go to IAM and open the user used by your Bedrock AI Provider.
-
Edit the user’s attached policy and add
bedrock:InvokeAgentto the existing statement (alongsidebedrock:InvokeModel): - Save the policy.
Step 3: Connect the agent in App Intelligence
Open App Intelligence
- Open the App where you want to use the Bedrock Agent.
- In the App menu, click Intelligence.
Connect the Bedrock agent
Add Agent
Select Provider
Enter Agent Alias ARN
Configure Agent Settings
Step 4: 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 5: Use the agent in 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.How Bedrock Agent invocation works
When Elementum invokes a Bedrock Agent:AWS Bedrock API used
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 agent.agentId: The unique identifier of the agent.sessionId: Session identifier for conversation continuity.inputText: 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
Access Denied Errors
Access Denied Errors
- IAM user missing
bedrock:InvokeAgentpermission. - Policy not attached to the user.
- Resource restrictions in policy don’t match the agent ARN.
- Verify the IAM policy includes
bedrock:InvokeAgentand is attached to the IAM user whose keys are on the Bedrock AI Provider (see Step 2). - Ensure the policy
Resourcematches your agent alias ARNs or uses a permitted pattern. - Confirm the access keys in Elementum belong to that user.
ARN Format Errors
ARN Format Errors
- Using the base agent ARN instead of the agent alias ARN.
- Typo in the ARN.
- Wrong region in the 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 that the region matches your provider configuration.
Region Mismatch
Region Mismatch
- Provider configured for a different region than the agent.
- Agent not available in the 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 the 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 the 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 the AWS CLI.
- Review provider status: Check the Bedrock AI Provider status in Elementum.
Best Practices
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
Latency and timeouts
Latency and timeouts
Caching repeated work
Caching repeated work
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.