A Streamlit-based procurement assistant that helps with ordering consumable materials (C materials like fasteners, nails, screws, and small parts) using Claude AI and voice interactions via ElevenLabs.
- Automated Inventory Checks: Checks your inventory and proposes orders based on this.
- AI-Powered Procurement: Uses Claude AI for intelligent order processing
- Voice Conversations: ElevenLabs integration for automated local store voice call ordering
- Speech Transcription: Automated speech-to-text
- Database Management: CSV-based inventory and supplier management
- Contract Integration: PDF contract extraction and parsing
- Email Notifications: Order confirmations sent via email to contractor
- Sponsor integration: Call local construction stores based on sponsoring
- Integration with Twilio: Actual Phone calls
- Order Reccomendation: Based on purchase history or construction plan, or commonly bought together items
- Mobile App
- macOS (required for some dependencies)
- Python 3.8+
- Homebrew (for system dependencies)
git clone https://github.com/manuel-tran/nailed-it.git
cd nailed-itBefore installing Python packages, you need to install PortAudio (required for PyAudio):
brew install portaudiopython -m venv venv
source venv/bin/activatepip install -r requirements.txtKey dependencies include:
streamlit- Web frameworkanthropic- Claude AI APIelevenlabs- Voice AI integrationpyaudio- Audio processingpandas- Data handlingpypdf- PDF processing
Create a Streamlit secrets file to store your API keys:
mkdir -p .streamlit
touch .streamlit/secrets.tomlAdd the following to .streamlit/secrets.toml:
ANTHROPIC_API_KEY = "your-anthropic-api-key-here"
ELEVENLABS_API_KEY = "your-elevenlabs-api-key-here"
SMTP_EMAIL = "your-email@gmail.com"
SMTP_PASSWORD = "your-app-password"
SMTP_SERVER = "smtp.gmail.com"
SMTP_PORT = 587If using a custom ElevenLabs agent, update the AGENT_ID in elevenlabs_tools.py:
AGENT_ID = "your-agent-id-here"streamlit run app.pyThe app will open in your browser at http://localhost:8501
- Simulates orderning at "local store"
- Needs email address to sent call url in elevenlabs_tools.py line 187 set.
The application uses CSV files for data management:
- database.csv - Inventory of available items
- contracts.csv - Contract details and terms (Can be created with contract pdf upload)
- inventory.csv - Current inventory levels
If you get errors installing PyAudio:
brew install portaudio
pip install pyaudio- Ensure
.streamlit/secrets.tomlexists and has correct formatting - API keys should not have spaces or extra quotes
- Check that
.streamlit/secrets.tomlis in.gitignore(not committed to git)
Make sure the secrets file is in the .streamlit/ directory:
ls -la .streamlit/secrets.toml- Ensure your system microphone is enabled and working
- Check system audio permissions for the terminal/IDE
- Try testing with
python -c "import pyaudio; print(pyaudio.PyAudio().get_device_count())"
.
├── app.py # Main Streamlit application
├── elevenlabs_tools.py # ElevenLabs integration and tools
├── elevenlabs_call.py # Voice conversation handling
├── utils.py # Utility functions
├── suppliers.csv # Supplier data
├── contracts.csv # Contract information
└── .streamlit/
└── secrets.toml # API keys (not in git)
- Never commit
.streamlit/secrets.tomlto version control - Ensure
.gitignoreincludes.streamlit/secrets.toml - Rotate API keys regularly
- Use app-specific passwords for email (Gmail App Passwords)
For issues with specific integrations:
- Claude AI: See Anthropic API docs
- ElevenLabs: See ElevenLabs docs
- Streamlit: See Streamlit docs