Running Ark¶
Local development¶
After installing and configuring:
Or in one step:
You should see:
INFO starting ark region=us-east-1 agent=ABCDEFGHIJ
INFO resolved bot identity: U1234567
INFO socket mode: connected
Verifying the connection¶
- Open Slack and send a direct message to your bot
- You should see an :eyes: reaction appear on your message
- The bot responds with the Bedrock Agent's reply
For channel mentions:
The bot responds in a thread.
Log levels¶
Set LOG_LEVEL to control verbosity:
| Level | What it shows |
|---|---|
debug |
Everything including Bedrock response sizes and internal state |
info |
Startup, connections, message processing |
warn |
File download issues, unsupported types, reaction failures |
error |
Agent invoke failures, Firehose publish errors |
Graceful shutdown¶
Ark handles SIGINT and SIGTERM for graceful shutdown:
Health check¶
Ark doesn't expose an HTTP port (Socket Mode is outbound-only). To verify the process is healthy, check the logs or process status: