TrackBuddy is a serverless Slack-integrated work logging and summary system that uses AWS Bedrock Agents with Action Groups for direct DynamoDB operations.
- API Gateway: Single REST endpoint for Slack webhooks
- Slack Handler Lambda: Main request processor for TrackBuddy
- Slack signature verification: Using signing secret validation
- Response handling: Ephemeral messages back to Slack
- Remove: Knowledge Base and Guardrails
- Add: Action Groups for summary retrieval only
- Agent Instructions: Handle
/1:1,/midpoint, and/quarterlycommands - Model: Claude 3.5 Haiku for cost-effective processing
- Note:
/logcommands bypass the agent for direct database storage
Get Summary Action Group:
- Lambda function to retrieve past 7 days of logs
- Return formatted data for AI summarization
- Date range filtering
Get Midpoint Action Group:
- Lambda function to retrieve past 6 months of logs
- Return formatted data for AI summarization
Get Quarterly Action Group:
- Lambda function to retrieve quarterly logs
- Return formatted data for AI summarization
- Quarter-specific filtering
DynamoDB Table: work-logs
- Partition Key:
user_id(from Slack) - Sort Key:
timestamp(ISO format) - Attributes:
work_description,created_at
- Slack → API Gateway → Slack Handler Lambda
- Lambda stores directly in DynamoDB
- Confirmation returned to Slack
- Slack → API Gateway → Slack Handler Lambda
- Lambda invokes Bedrock Agent with summary request
- Agent calls appropriate Summary Action Group
- Action Lambda retrieves logs for specified time period
- Agent generates professional summary
- Summary returned to Slack
- Create serverless architecture using AWS CDK
- Implement Slack integration with proper authentication
- Configure Bedrock Agent with Action Groups for data operations
- Use DynamoDB for efficient work log storage and retrieval
- Modify agent instructions for work logging use case
