• Resolved jamesc91

    (@jamesc91)


    Hello,

    I just upgraded to pro however I was under the impression that there would be further benefits for WooCommerce but I am unable to see them.

    1. How do I edit the woo commerce prompt used?
    2. I assumed the prompt would take into account the product attributes however this does not look to be the case. Is this correct that the attributes are not taken into account when the product description is being requested?
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @jamesc91 ! 👋

    Just a heads up, this forum is only for the regular version of AI Engine. If you have any questions about pro features, please contact us through MeowApps support.

    That being said, the WooCommerce Product Generator is included in the regular plan and does not require an upgrade for usage with the pro version. If you want to modify the prompt being used, you would have to look for filters.

    You cannot actually change this value dynamically through options as it’s hard-coded. 😕 But what you can do is use filters to change the value used by this query. Here, I’ve provided you with an example. It will be executed for every request, so you might use it only when needed or add some conditions. 😉

    add_filter('mwai_ai_query', function($args) {
    $args->setPrompt(str_replace('(between 120 and 240 words)', '(minimum 150 words)', $args->prompt));
    $args->setMaxTokens(1024);
    return $args;
    }, 10, 999);
    Thread Starter jamesc91

    (@jamesc91)

    Thank you very much. Could you also confirm regarding product attributes and how I can use these within the prompt or are they used?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Woo Commerce’ is closed to new replies.