[Store Customization] Update the store title with an AI generated one (#41632)

* Make the call to update the store title with an AI generated one

* Add changelog
This commit is contained in:
Alba Rincón 2023-11-24 14:40:37 +01:00 committed by GitHub
parent 853ba527d2
commit b6657403f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -275,6 +275,14 @@ export const updateStorePatterns = async (
context.businessInfoDescription.descriptionText,
},
} ),
apiFetch( {
path: '/wc/private/ai/store-title',
method: 'POST',
data: {
business_description:
context.businessInfoDescription.descriptionText,
},
} ),
] );
if ( ! response.ai_content_generated ) {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: enhancement
Call to the store title endpoint to update the store title with an AI generated one