Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Product Creation with AI] Update prompt to generate 3 short descriptions #13268

Merged
merged 6 commits into from
Jul 9, 2024

Conversation

selanthiraiyan
Copy link
Contributor

@selanthiraiyan selanthiraiyan commented Jul 8, 2024

Closes: #13265

Description

Update AI product generation code to generate three options for product short description fields.

Changes

  • Make AIProduct's shortDescription property as an array of strings.
  • Update AI prompt to ask for three short descriptions.
  • Update mock json files and unit tests.

Testing information

  1. Test that the M1 of product creation using AI flow works as expected.
  2. Intercept the product generation network request and make sure the JSON response contains 3 product short descriptions.
  3. Disable the productCreationAIv2M1 feature flag, and make sure the previous AI flow works as before.

Screenshots

NA


  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@selanthiraiyan selanthiraiyan added the feature: add/edit products Related to adding or editing products. label Jul 8, 2024
@selanthiraiyan selanthiraiyan added this to the 19.5 milestone Jul 8, 2024
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jul 8, 2024

WooCommerce iOS📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr13268-b0996ec
Version19.4
Bundle IDcom.automattic.alpha.woocommerce
Commitb0996ec
App Center BuildWooCommerce - Prototype Builds #9931
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@selanthiraiyan selanthiraiyan marked this pull request as ready for review July 8, 2024 12:03
@itsmeichigo itsmeichigo self-assigned this Jul 9, 2024
Copy link
Contributor

@itsmeichigo itsmeichigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@selanthiraiyan selanthiraiyan enabled auto-merge July 9, 2024 04:31
@selanthiraiyan selanthiraiyan merged commit 5932200 into trunk Jul 9, 2024
22 checks passed
@selanthiraiyan selanthiraiyan deleted the feat/13265-short-description branch July 9, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: add/edit products Related to adding or editing products.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate three options for short description field
3 participants