Internal Slack DM assistant for Sea Haven Industries, powered by AWS Bedrock. Employees can ask questions about vendors, company policies, SOPs, and SA8000 compliance via direct message.
npx cdk bootstrap aws://328440206208/us-east-1 # first time only
npx cdk deploy
```
The deploy takes ~15 minutes on first run. The AOSS collection and vector index creation are the slow steps — both handled automatically.
Stack outputs after deploy:
-`KBDocsBucketName` — S3 bucket to upload knowledge base documents
-`AgentId` — Bedrock Agent ID
-`SlackWebhookUrl` — URL to register in Slack app settings
## Post-Deployment Setup
### 1. Upload knowledge base documents
Upload SA8000 compliance docs, SOPs, and the employee handbook to the S3 bucket printed in stack outputs. Supported formats: PDF, DOCX, TXT, HTML, CSV, XLSX.
qbo-lookup/ Bedrock action group — QuickBooks vendor search
maps-lookup/ Bedrock action group — Google Maps Places search
scripts/
create-aoss-index.ts Manual fallback for AOSS index creation (not needed in normal deploy)
```
## Known Maintenance Items
- **QBO refresh token** expires after 100 days of inactivity. Rotate via the [Intuit OAuth Playground](https://developer.intuit.com/app/developer/playground) and update the `seahaven/qbo/oauth` secret.
- **KB sync** must be triggered manually after uploading new documents. Consider adding a scheduled EventBridge rule for automatic nightly syncs.