<?xml version="1.0"?>
<!--
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
-->

<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="cron" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
        <label>Cron Jobs</label>
        <field id="ai_model_enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Enable AI Model Sync</label>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <comment>Enable or disable the AI Model cron job that syncs products and categories data to WriteTextAI API.</comment>
        </field>
        <field id="ai_model_sync_cron_schedule" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
            <label>AI Model Sync Cron Schedule</label>
            <comment>Define the schedule for the AI Model Sync cron job. Use standard cron expression format (e.g., "0 0 * * *" for daily at midnight).</comment>
        </field>
    </group>
</include>
