Overview
Invenicum integrates with Google’s Gemini AI to provide advanced capabilities like automatic product data extraction from URLs and intelligent inventory assistance through the Venibot chatbot.Gemini integration is optional but highly recommended for enhanced productivity and automation features.
Prerequisites
- Active Google account
- Access to Google AI Studio
- Invenicum account with active session
Step-by-Step Setup
Get Your Gemini API Key
- Visit Google AI Studio
- Sign in with your Google account
- Navigate to API Keys section
- Click Create API Key or Get API Key
- Copy the generated API key (format:
AIza...)
Configure Integration in Invenicum
- Open Invenicum and navigate to Settings → Integrations
- Find the Google Gemini AI integration card
- Click Configure or tap on the card
- In the configuration sheet, enter your API key
Your Google Gemini API key from AI Studio. This field is masked for security.
The Gemini model to use. Recommended:
gemini-3-flash-preview for optimal performance.Save and Verify
- Click Save to store your configuration
- The integration status should change to Connected ✓
- You’ll see a confirmation message
The API key is stored securely on the backend and never exposed in the client.
Available AI Features
Once configured, you can use these Gemini-powered features:Magic Assistant (URL Extraction)
Automatically extract product information from URLs:- Create or edit an asset
- Click AI Magic Assistant
- Paste a product URL (Amazon, eBay, etc.)
- Click Start Magic
- AI will fill fields like name, description, price, and more
Venibot Chatbot
Ask questions about your inventory:- “What’s in stock?”
- “Show me active loans”
- “Generate inventory report”
Configuration Files
The Gemini integration is defined in: Integration Definition:lib/core/utils/constants.dart:25-42
lib/data/services/ai_service.dart:1-53
Troubleshooting
Integration shows as disconnected
Integration shows as disconnected
- Verify your API key is correct
- Check that the key hasn’t expired in Google AI Studio
- Ensure you saved the configuration
- Try disconnecting and reconnecting the integration
AI extraction fails
AI extraction fails
- Verify Gemini integration is connected
- Check your internet connection
- Ensure the URL is publicly accessible
- Some websites may block automated extraction
- Review error message in the app for specific details
AI toggle is disabled
AI toggle is disabled
The AI features toggle requires:
- Gemini integration to be connected first
- Navigate to Settings → Integrations → Google Gemini
- Complete the setup steps above
API quota exceeded
API quota exceeded
Google AI Studio has usage limits:
- Check your quota in AI Studio dashboard
- Consider upgrading your Google AI plan
- Rate limits reset daily
Security Best Practices
- Store API keys securely using the integration settings (not in code)
- Rotate keys periodically in Google AI Studio
- Monitor usage in AI Studio to detect unauthorized access
- Use environment-specific keys for development vs production
