Troubleshooting & Common Issues
Here you'll find solutions to the most common problems with the OpenAI Agents Manager plugin.
🔍 Diagnostic Checklist
Before diving into specific issues, check these basics:
- Plugin is installed and activated
- OpenAI API key is configured
- OpenAI account has sufficient credit
- Agent is activated (
Is Active= On) - Shopware cache has been cleared (
bin/console cache:clear)
❌ Error Messages & Solutions
"Missing OpenAI API Key"
Problem: No API key configured or plugin cannot find it.
Solutions:
Check API key:
- Go to Settings → System → Plugins
- Open the configuration of "OpenAI Agents Manager"
- Check if the "API Key" field is filled in
Re-enter key:
- Copy your API key from platform.openai.com/api-keys
- Paste it completely (without spaces!)
- Save
Clear cache:
bin/console cache:clear
"Invalid API Key" / "Authentication failed"
Problem: The API key is invalid or has been revoked.
Possible causes:
- Key was copied incorrectly (spaces at beginning/end)
- Key was revoked in OpenAI
- Key belongs to a different organization
Solutions:
Copy key again:
- Make sure to copy the complete key
- Check for hidden spaces
Create new key:
- Go to platform.openai.com/api-keys
- Create a new key
- Enter it in Shopware
Run test:
- In plugin configuration click "Test API Key"
"Insufficient quota" / "You exceeded your current quota"
Problem: Your OpenAI credit is exhausted.
Solution:
Check credit:
Add credit:
- Click "Add payment method" (if not already done)
- Add credit (e.g., 20 USD)
Enable automatic recharge:
- Enable under "Auto recharge"
- Set threshold (e.g., 5 USD)
- Set recharge amount (e.g., 20 USD)
"Rate limit exceeded"
Problem: Too many API requests in a short time.
Causes:
- Multiple users using the agent simultaneously
- Agent calls too many tools in succession
- OpenAI's limit for your account type has been reached
Solutions:
Wait briefly:
- Wait 1-2 minutes
- Try again
Increase rate limit (for paying customers):
- Go to platform.openai.com/settings/organization/limits
- Request a higher limit
Reduce tools:
- Deactivate unneeded tools
- Optimize your instructions
"Agent not found" / "No agents found"
Problem: System cannot find an agent or agent was deleted.
Solutions:
Agent exists?
- Go to 5E OAI Agent Manager
- Check if your agent is in the list
Agent activated?
- Open the agent
- Set "Is Active" to On
- Save
Set default agent:
- If no specific agent is called
- Set "Is Default" to On for one agent
"Thread creation failed"
Problem: Conversation (thread) could not be created.
Solutions:
API key valid?
- Test the key in plugin configuration
Credit available?
- Check your OpenAI credit
Clear cache:
bin/console cache:clear
🤖 Agent Issues
Agent doesn't respond / No response
Checklist:
✅ Agent activated?
- "Is Active" = On
✅ API key valid?
- Test in plugin configuration
✅ OpenAI credit available?
- Check in OpenAI dashboard
✅ Instructions present?
- At least "System Instructions" should be filled in
✅ Model selected?
- E.g.,
gpt-4o-mini
- E.g.,
Debug:
- Open browser console (F12)
- Check for errors in console
- Check "Network" tab for failed requests
Agent gives incorrect/inappropriate answers
Causes & Solutions:
Instructions too vague:
- ❌ Bad: "Be helpful"
- ✅ Good: "You are a product advisor. Ask questions about budget, size, and color."
Tools missing:
- Agent cannot find products without
product_search - Agent cannot check orders without
get_order_status
- Agent cannot find products without
Temperature too high:
- Lower temperature from 1.5 to 0.7
- Makes answers more consistent
Model too weak:
gpt-4o-miniis good but sometimes too limited for complex tasks- Test
gpt-4ofor better results
Agent doesn't call tools
Problem: Agent doesn't use tools even though they are activated.
Solutions:
Mention in instructions:
You have access to the following tools:
- product_search: Use this to search for products
- get_order_status: Use this for order status queriesInclude tool names in questions:
Customer: "Show me red jackets"
Instructions should contain:
"When asked about products, ALWAYS use product_search"Increase Reasoning Effort:
- From
lowtomediumorhigh - Gives agent more time to "think"
- From
Agent responses are too long/too short
Solutions:
Adjust Verbosity:
- Higher = longer responses
- Lower = shorter responses
Define in instructions:
Keep your responses concise and under 3 sentences.or
Give detailed, comprehensive responses with examples.Limit Max Output Tokens:
- Set a limit (e.g., 500 tokens)
- Prevents overly long responses
💰 Cost Issues
Costs are unexpectedly high
Diagnosis:
Check Usage Dashboard:
- platform.openai.com/usage
- Which model is used most?
- How many requests per day?
Expensive models?
gpt-5andgpt-4oare 10-30x more expensive thangpt-4o-mini- Switch to cheaper models
Too many tools activated?
- Each tool increases token count
- Deactivate unneeded tools
Instructions too long?
- Shorten instructions to essentials
- Token caching helps, but shorter = cheaper
Optimizations:
- ✅ Use
gpt-4o-miniinstead ofgpt-4o - ✅ Activate only needed tools
- ✅ Use
search_logsto avoid repetitions - ✅ Set budget limits in OpenAI
Cached tokens not being used
Problem: You see no cost savings from caching.
Explanation:
- Caching only works with identical prompts
- First request is never cached (only from the second onwards)
Verification:
- In OpenAI Usage Dashboard: Look for "Cached Input Tokens"
- After multiple conversations you should see significant cache usage
🔧 Technical Issues
Plugin cannot be installed
Solutions:
Check PHP version:
php -vAt least PHP 8.2 required!
Check Shopware version:
- At least Shopware 6.7.0 required
Update Composer:
composer updatePlugin dependencies:
- Check if all required plugins are installed
Backend chat doesn't load / shows nothing
Solutions:
Clear browser cache:
- Ctrl+Shift+Delete (Chrome/Edge)
- Delete cookies & cache
Check JavaScript errors:
- F12 → Console
- Errors in red text?
Recompile assets:
bin/console cache:clear
bin/build-administration.sh
Vector Store not found
Problem: "Vector store not found" or files are not loaded.
Solutions:
Vector Store exists in OpenAI?
- Go to platform.openai.com/storage/vector_stores
- Check if your Vector Store is listed there
Vector Store ID correct?
- In agent configuration: Check the Vector Store ID
- Format:
vs_abc123...
Files uploaded?
- Vector Store must contain files
- Status must be "completed"
🌐 Browser-specific Issues
Chat works in Chrome but not in Firefox/Safari
Solution:
- Clear browser cache
- Temporarily disable ad blocker
- Check browser console for errors (F12)
📱 Mobile Issues
Chat interface is unusable on smartphone
Note: The backend is optimized for desktop.
Recommendation:
- Use a desktop browser for administration
- Frontend integrations should be mobile-optimized
🔐 Security Issues
API key has been compromised
Immediate actions:
Revoke key:
- Go to platform.openai.com/api-keys
- Click on the key → "Revoke"
Create new key:
- Create a new key
- Enter it in Shopware
Set budget limit:
- Protect yourself from abuse
- Set a monthly limit
📊 Performance Issues
Agent responds very slowly (> 30 seconds)
Causes & Solutions:
Reasoning Effort too high:
highcan take 10-30 seconds- Lower to
mediumorlow
Too many tools:
- More tools = longer decision time
- Deactivate unneeded tools
Large Vector Store:
- Many/large files = slow search
- Reduce the number of files
OpenAI servers overloaded:
- Slower at certain times
- Try again later
🆘 Emergency Measures
Nothing works anymore!
Step-by-step reset:
Deactivate and reactivate plugin:
bin/console plugin:deactivate FelOAIAssistantsManager
bin/console plugin:activate FelOAIAssistantsManagerCompletely reinstall:
bin/console plugin:uninstall FelOAIAssistantsManager
bin/console plugin:install FelOAIAssistantsManager --activateClear cache:
bin/console cache:clearRecompile assets:
bin/build-administration.sh
bin/build-storefront.sh
With plugin:uninstall data may be lost! Create a backup beforehand.
📞 Contact Support
If all solutions don't help:
Collect before contacting:
- ✅ Shopware version
- ✅ Plugin version
- ✅ PHP version
- ✅ Exact error message (screenshot)
- ✅ Browser console logs (F12 → Console)
- ✅ What have you already tried?
Contact:
- Email: support@5-elements-web.de
- Website: 5-elements-web.de
📋 Frequently Asked Questions (FAQ)
Can I use multiple agents simultaneously?
Yes! You can create and use unlimited agents in parallel.
Can I clone/duplicate an agent?
Not currently directly in the UI. Workaround: Create a new agent and manually copy instructions and tool selection.
Are conversations automatically deleted?
No. Threads remain until you manually delete them.
Can I export the logs?
Not directly in the UI, but the data is in the Shopware database (table fel_assistant_chat_message).
Does the plugin work with Shopware 6.6?
No, at least Shopware 6.7.0 is required.
Next Steps
Problem solved? Great!
➡️ Best Practices - Tips for optimal agents
➡️ Cost Management - Keep costs under control
➡️ Back to Main Documentation