Magento 2 Installation Guide
Connect your Magento 2 or Adobe Commerce store to Synton AI for enterprise-grade AI commerce management.
Prerequisites
Verify your environment before installation:
| Requirement | Minimum Version |
|---|---|
| Magento Open Source | 2.4.4+ |
| Adobe Commerce | 2.4.4+ (Cloud or On-Premise) |
| PHP | 8.1+ |
| MySQL | 8.0+ or MariaDB 10.6+ |
| Elasticsearch/OpenSearch | 7.17+ / 2.x |
| Composer | 2.x |
| SSL Certificate | Required (HTTPS) |
All features work with both Magento Open Source and Adobe Commerce. B2B features require Adobe Commerce with B2B module enabled.
Step 1: Create Synton AI Account
- Visit app.synton.ai
- Click Sign Up
- Select Magento as your platform
- Complete registration
- Verify your email address
Step 2: Install Extension via Composer
Connect to your Magento server via SSH:
# Navigate to Magento root directory
cd /path/to/magento
# Add Synton AI repository
composer config repositories.syntonai composer https://packages.synton.ai/magento
# Install the extension
composer require synton/module-ai:^1.0
# Enable the module
bin/magento module:enable Synton_Ai
# Run setup upgrade
bin/magento setup:upgrade
# Compile dependency injection (production mode)
bin/magento setup:di:compile
# Deploy static content (production mode)
bin/magento setup:static-content:deploy
# Clear cache
bin/magento cache:flush
If running in developer mode, you can skip setup:di:compile and setup:static-content:deploy steps.
Installation Verification
Verify the module is installed:
bin/magento module:status Synton_Ai
Output should show: Module is enabled
Step 3: Create Integration Token
- Log into Magento Admin Panel
- Navigate to System > Extensions > Integrations
- Click Add New Integration
Configure Integration
Integration Info Tab:
| Field | Value |
|---|---|
| Name | Synton AI |
| Your admin email | |
| Callback URL | https://api.synton.ai/integrations/magento/callback |
| Identity Link URL | https://api.synton.ai/integrations/magento/identity |
API Tab - Set permissions:
| Resource | Access Level |
|---|---|
| Catalog > Inventory | All |
| Catalog > Products | All |
| Catalog > Categories | Read |
| Sales > Orders | Read |
| Sales > Invoices | Read |
| Sales > Shipments | Read |
| Customers | Read |
| Stores > Settings | Read |
| Stores > Attributes | Read |
Instead of selecting individual permissions, you can select:
- Resource Access: Custom
- Then check the resources listed above
- Click Save
- Click Activate to activate the integration
- In the confirmation dialog, click Allow
Copy Access Token
After activation, Magento displays your integration credentials:
- Consumer Key
- Consumer Secret
- Access Token
- Access Token Secret
Copy the Access Token - you'll need it in the next step. You can retrieve it later from the integrations page if needed.
Step 4: Connect to Synton AI
- Open app.synton.ai in a new browser tab
- Navigate to Settings > Integrations
- Click the Magento card
- Enter your credentials:
- Store URL: Your Magento store URL (e.g.,
https://store.example.com) - Access Token: The integration token from Step 3
- Store URL: Your Magento store URL (e.g.,
- Click Connect
- Wait for connection verification (10-15 seconds)
Step 5: Configure Extension Settings
In Magento Admin, navigate to Stores > Configuration > Synton AI > General:
| Setting | Description | Recommended |
|---|---|---|
| Enable | Module activation | Yes |
| Sync Mode | Real-time or scheduled | Real-time |
| Include Disabled Products | Sync disabled products | No |
| Order History Range | Historical import | 90 days |
| Debug Mode | Enable detailed logging | No (unless troubleshooting) |
Click Save Config at the top right.
Most settings can be configured per Website, Store, or Store View. Use the scope dropdown in the top left to configure different values per scope.
Verification
Check Connection Status
- In Synton dashboard, go to Settings > Integrations > Magento
- Verify status shows Connected with green indicator
- Click Test Connection
- You should see:
- ✅ API Connection Successful
- ✅ Products Readable
- ✅ Orders Readable
- ✅ Integration Active
Verify Data Sync
- In Synton AI dashboard, navigate to Chat
- Ask:
"How many products do I have?" - Verify the count matches your Magento catalog (simple + configurable)
- Ask:
"Show me recent orders" - Verify orders display with correct data
Test REST API Access
Open a browser and test the Magento REST API:
https://yourstore.com/rest/V1/store/storeConfigs
You should see JSON configuration data, not an error.
Multi-Store Configuration
For multi-website/store/store-view setups:
Website Level
Configure API credentials per website:
- In Magento Admin, switch scope to specific website
- Go to Stores > Configuration > Synton AI
- Uncheck Use Default for settings you want to customize
- Configure website-specific settings
- Save
Store View Level
Configure language and currency:
- Switch scope to specific store view
- Set language mappings for multi-language ads
- Set primary currency for reporting
Configuration Hierarchy
Global (Default Config)
├── Website 1 (US)
│ ├── Store 1 (Main Store)
│ │ ├── Store View EN-US (English)
│ │ └── Store View ES-US (Spanish)
│ └── Store 2 (Outlet Store)
│ └── Store View EN-US
└── Website 2 (EU)
└── Store 3 (European Store)
├── Store View EN-GB (English)
├── Store View FR-FR (French)
└── Store View DE-DE (German)
Each level can have independent Synton configuration.
Multi-Source Inventory (MSI)
If using Magento MSI for multiple warehouses:
- In Synton, go to Settings > Integrations > Magento
- Click Inventory Sources
- Map each Magento source to a Synton location:
- Default Source → Main Warehouse
- NY Warehouse → New York DC
- LA Warehouse → Los Angeles DC
- Configure per-source alert thresholds
- Click Save
Synton will track inventory separately per source and can pause ads when specific sources run low.
Initial Sync
After connection, an initial sync begins automatically:
- In Synton, go to Settings > Integrations > Magento
- Monitor Initial Sync Progress
- Sync time depends on catalog size:
- Small (< 100 products): 2-5 minutes
- Medium (100-1,000 products): 10-20 minutes
- Large (1,000-10,000 products): 1-3 hours
- Very large (> 10,000 products): 4-12 hours
Run initial sync during off-peak hours to minimize impact on server resources.
Troubleshooting
"Could not connect to Magento API"
Solutions:
- Verify store URL is accessible externally (not localhost)
- Check integration is Active in Magento admin
- Confirm firewall isn't blocking API requests
- Test REST API manually:
curl https://yourstore.com/rest/V1/store/storeConfigs - Check Magento logs:
var/log/system.log
"Authentication failed"
Solutions:
- Verify integration is Active in System > Integrations
- Check Access Token is correct
- Confirm API permissions include all required resources
- Try regenerating integration:
- Deactivate and reactivate in Magento
- Copy new token to Synton
- Review
var/log/system.logfor authentication errors
Products not syncing
Solutions:
- Verify products have Status: Enabled
- Check products are assigned to a website
- Verify stock status and visibility settings
- Check indexer status:
bin/magento indexer:status - Reindex if needed:
bin/magento indexer:reindex catalog_product_flat
bin/magento indexer:reindex cataloginventory_stock
Attributes missing
Solutions:
- Verify attribute is Visible on Catalog Pages Front-end
- Check attribute is in product's attribute set
- Confirm attribute has value assigned to product
- Try manual sync in Synton dashboard
Slow initial sync
Causes: Large catalogs, server resources
Solutions:
- Large catalogs can take hours - this is normal
- Run during off-peak hours
- Switch to Scheduled sync mode instead of real-time
- Check Elasticsearch/OpenSearch health:
curl http://localhost:9200/_cluster/health - Monitor server resources (CPU, memory, disk I/O)
High server load during sync
Solutions:
- Adjust sync batch size in configuration:
- Stores > Configuration > Synton AI > Performance
- Reduce batch size from 100 to 50
- Use "Update by Schedule" indexer mode:
bin/magento indexer:set-mode schedule - Run sync during off-hours
- Consider upgrading server resources
Indexer shows "Invalid" status
Solutions:
# Check indexer status
bin/magento indexer:status
# Reindex specific indexers
bin/magento indexer:reindex catalog_product_flat
bin/magento indexer:reindex cataloginventory_stock
bin/magento indexer:reindex catalog_category_product
bin/magento indexer:reindex catalog_product_price
# Or reindex all
bin/magento indexer:reindex
Adobe Commerce Cloud
For Adobe Commerce Cloud deployments:
Add to Environment Configuration
Edit .magento.env.yaml:
stage:
deploy:
SYNTON_AI_TOKEN:
from_variable: SYNTON_AI_TOKEN
Set the environment variable:
magento-cloud variable:create \
--level environment \
--name SYNTON_AI_TOKEN \
--value "your_access_token" \
--environment master
Update Build Configuration
Edit .magento.app.yaml build hook:
hooks:
build: |
set -e
composer config repositories.syntonai composer https://packages.synton.ai/magento
composer require synton/module-ai:^1.0
Deploy
git add .magento.env.yaml .magento.app.yaml
git commit -m "Add Synton AI extension"
git push origin master
CLI Commands
The extension provides useful CLI commands:
# Trigger manual product sync
bin/magento synton:sync:products
# Check connection status
bin/magento synton:status
# View sync statistics
bin/magento synton:sync:stats
# Clear sync queue
bin/magento synton:queue:clear
# View sync logs
bin/magento synton:log:view --lines 50
Extension Compatibility
Compatible Extensions
Works with:
- Magento PageBuilder
- Adobe Stock Integration
- Amazon Sales Channel
- MSI (Multi-Source Inventory)
- Popular payment gateways
- Shipping extensions
Known Conflicts
| Extension | Issue | Solution |
|---|---|---|
| Custom REST API overrides | May break sync | Whitelist Synton endpoints |
| Heavy Full Page Cache | Cached API responses | Exclude /rest/V1/synton/ |
| Custom inventory modules | Stock sync conflicts | Configure data source priority |
Uninstallation
To remove the extension:
Via Command Line
# Disable module
bin/magento module:disable Synton_Ai
# Remove package
composer remove synton/module-ai
# Run setup upgrade
bin/magento setup:upgrade
# Compile (if production)
bin/magento setup:di:compile
# Clear cache
bin/magento cache:flush
Via Admin Panel
- Go to System > Extensions > Integrations
- Find Synton AI
- Click Delete
- Confirm deletion
In Synton Dashboard
- Go to Settings > Integrations
- Find Magento card
- Click Disconnect
- Confirm disconnection
Synced data remains in Synton for reporting purposes unless you request deletion. Contact support@synton.ai to delete all data.
Next Steps
- Open Your Dashboard at app.synton.ai
- Complete Onboarding — Follow the guided setup in your dashboard
- Explore AI Agents — Let Synton start analyzing and optimizing your store
Support
- Documentation: docs.synton.ai
- Email: support@synton.ai
- Dashboard: app.synton.ai