Install AI Commerce
Edit on GitHubThis document describes how to install the AI Commerce base package. Individual AI Commerce features require additional installation steps — see their respective installation guides.
Prerequisites
Install the required features:
| NAME | VERSION | INSTALLATION GUIDE |
|---|---|---|
| AiFoundation | 202602.0 |
1) Install the required modules
Install the required module:
composer require spryker-feature/ai-commerce --update-with-dependencies
2) Configure AiFoundation
Add the AI provider configuration:
config/Shared/config_ai.php
$openAiConfiguration = [
'provider_name' => \Spryker\Shared\AiFoundation\AiFoundationConstants::PROVIDER_OPENAI,
'provider_config' => [
'key' => getenv('OPEN_AI_API_TOKEN') ?: '', // provide your OpenAi api key
'model' => 'gpt-4o-mini',
],
];
$config[\Spryker\Shared\AiFoundation\AiFoundationConstants::AI_CONFIGURATIONS] = [
\Spryker\Shared\AiFoundation\AiFoundationConstants::AI_CONFIGURATION_DEFAULT => $openAiConfiguration,
];
config/Shared/config_default.php
require 'config_ai.php';
Thank you!
For submitting the form