Appearance
<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /guides/AdvisableAI.md for this page in Markdown format</div>
Advisable AI
Set up
In settings under EcommerceN Plus > Advisable AI Settings section we need to
- enable Ενεργοποίηση Advisable AI
- enable Ενεργοποίηση Feed,
- set up url to
https://api.advisable.ai/and set version to latest (now at v1) - set up username and password (only for administration purposes)
- set up Application Id and Application Secret
We need to set up all products (even deleted ones) in order to have all products while booting data for orders in AI, so execute command php cli.php patch/advisableAiAddAllProductsToFeed
Admin Part
Admin part will be moved to separate application as it is not needed from advisable clients. Temporary Create client and
Create client
The command is php cli.php patch/advisableAiCreateClient/{urlencoded-string-to-bypass-invalid-characters}
Steps 3 and 4 must be completed under SetUp section.
urlencoded-string-to-bypass-invalid-characters is of the format username/firstName/lastName/email/password which should be urlencoded
in advisable ai logs (application/logs/advisable-ai-*) is the response to copy and keep.
Create app
The command is php cli.php patch/advisableAiCreateApp/{app name} i.e. createApp/TestApp
Steps 3, 4 and 5 must be completed under SetUp section.
in advisable ai logs (application/logs/advisable-ai-*) is the response to copy, keep and get App Id and secret
Set up xml
Steps 2, 3 , 5 under SetUp section must be completed first.
You should run patch/advisableAiAddAllProductsToFeed to add all products in ADVISABLE_AI xml. We recommend to first validate the catalog using patch/advisableAiValidateCatalog and after it validates execute php cli.php patch/advisableAiCreateCatalog
The xml is set up from advisable_ai to be read once every week
Boot data (history)
Steps 2, 3 and 5 under SetUp section must be completed first. Xml must also be set up for orders.
First boot customers by running boot orders by php cli.php patch/advisableAiCreateCustomers and thenphp cli.php patch/advisableAiCreateOrders
Info
Uses ecommercen/ai-connector.
All pharmacies are under same client account. For other industry we need other client.
Basically AI connector has both admin and front requests.
Admin requests need username, password and can be used outside of client. ie an app can be created from local cli and pass the appid and app secret only in settings for client usage.