A Docker-containerized bot that runs daily at 5:55 PM IST to fetch and post AI news updates to Slack using GPT-4, DuckDuckGo, and Agno.
- Automated daily AI news updates at 5:55 PM IST
- Containerized deployment using Docker
- Easy management through Portainer
- Automatic restarts and health monitoring
- Real-time logging
- Docker
- Portainer
- OpenAI API Key
- Slack Bot Token
- Clone the repository
- Copy
.env.example
to.env
and add your credentials:export OPENAI_API_KEY="your_key_here" export SLACK_TOKEN="your_token_here"
- Run locally:
python src/slack_news_bot.py
-
In Portainer:
- Go to "Stacks" → Add stack
- Name it (e.g., "slack-news-bot")
- Copy the contents of
docker-compose.yml
-
Set Environment Variables:
OPENAI_API_KEY
: Your OpenAI API keySLACK_TOKEN
: Your Slack Bot token
-
Deploy the stack
The bot will automatically:
- Run every day at 5:55 PM IST
- Post updates to #tech-updates Slack channel
- Restart if there are any issues
- Log all activities
View bot status and logs in Portainer:
- Go to Containers
- Select your bot container
- Check the Logs tab
OPENAI_API_KEY
: OpenAI API key for GPT-4SLACK_TOKEN
: Slack Bot User OAuth Token