FlyMe is an agentic helper that will search for flights for you directly in Slack!
All you have to do is ask FlyMe for flights via DM or with an @mention in natural language, and it'll connect to Arcade.dev, OpenAI, and Google Flights to pull down some options!
- Python 3.8+
 - Slack workspace admin access
 - Arcade.dev account
 - OpenAI API key
 
git clone https://github.com/KristopherLeads/FlyMe
cd FlyMepip install -r requirements.txtARCADE_API_KEY=your_arcade_api_key
OPENAI_API_KEY=your_openai_api_key
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-token- Go to api.slack.com/apps
 - Click "Create New App" > "From scratch"
 - Name: 
FlyMe 
- Settings > Socket Mode > Enable
 - Generate app-level token with 
connections:writescope - Save token as 
SLACK_APP_TOKEN 
- Add Bot Token Scopes:
chat:writechannels:readim:readim:writeim:historyusers:read
 - Install to workspace
 - Save Bot User OAuth Token as 
SLACK_BOT_TOKEN 
- Turn on Events
 - Subscribe to bot events:
message.imapp_mention
 
- Enable this via App Home > Messages Tab > Enable
 
python3 main.py- DM the bot: "Find me flights from NYC to LA next month"
 - Or @mention in a channel: "@FlyMe flights to Miami tomorrow"
 
FlyMe/
├── app.py             # FlyMe orchestration logic
├── bot.py             # FlyMeBot class
├── config.py          # FlyMe configuration management
├── constants.py       # FlyMe application constants
├── graceful.py        # Graceful shutdown handling
├── slack.py           # Slack integration
├── main.py            # Core FlyMe application
├── instructions.md    # AI agent instructions
├── requirements.txt   # Dependencies
├── LICENSE            # MIT license
├── README.md          # Documentation
├── .env.example       # Example environment variables
└── .gitignore         # Git ignore file
These diagrams are provided for informational purposes to help illustrate the flow and structure of this code and the user request.
Edit instructions.md to modify bot behavior. This file is sent to OpenAI for instructions, so you can fully customize this tool in any way you'd like!
- Verify Socket Mode is enabled
 - Check all 4 environment variables are set
 - Ensure bot is invited to channels and is given perms in Slack Apps
 
- Try major airport codes (JFK, LAX, ORD)
 
- The bot requires this file to run - redownload from the repo
 
MIT
Thanks to GitHub for the include Python .gitignore template.
