PHP code example of gtstudio / module-ai-widgets

1. Go to this page and download the library: Download gtstudio/module-ai-widgets library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gtstudio / module-ai-widgets example snippets

bash
composer nto module:enable Gtstudio_AiWidgets
php bin/magento setup:upgrade
xml
<!-- view/adminhtml/layout/default.xml -->
<page>
    <body>
        <referenceBlock name="gtstudio.ai.chat.widget">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">
                    Vendor_Module::chat/custom-widget.phtml
                </argument>
            </action>
        </referenceBlock>
    </body>
</page>