Back to Top

Guide for Bagisto ChatGPT AI Review Translator

Updated 25 November 2024

Bagisto ChatGPT AI Review Translator Extension is used to translate reviews into the default language of your store.

It is built on the Langchain framework, which is a powerful language translation platform.

The AI Translator module uses OpenAI’s API key to translate reviews.

This means that the module has access to OpenAI’s large language model, which is one of the most advanced language models in the world.

This allows the module to translate reviews into various languages, including English, French, German, Spanish, Hindi, and more.

Start your headless eCommerce
now.
Find out More

If you want to use complete AI technology for content generation, image generation, chatbot, and much more. You can check the Bagisto Complete AI Suite extension.

Features

  • Bagisto ChatGPT AI Review Translator Extension translates reviews to the selected language of the store.
  • The Translate button only appears if the review is not in the default language of your store.
  • The extension supports multiple languages and provides accurate and understandable translations.
  • Customers can also choose which languages to translate from the store.
  • The extension uses LangChain OpenAI to automate the translation process.
  • ChatGPT AI Review Translator module is easy to configure.
  • The extension supports ChatGPT versions 3.5 and 4.0.

Installation

For the Installation of Bagisto, you can follow the Link.

After the Fresh Installation of the Bagisto ChatGPT AI Review Translator, we need to configure all the information related to the Langchain AI.

Once that is done, we need to follow the below installation process.

Unzip the respective extension zip and then merge the “packages” folder into the project root directory.

Go to the config/app.php file and add the following line under providers.

Webkul\AITranslator\Providers\AITranslatorServiceProvider::class
Installation code -Bagisto ChatGPT AI Review Translator

Goto composer.json file and add the following line under ‘psr-4’

"Webkul\\AITranslator\\": "packages/Webkul/AITranslator/src"
Installation code -Bagisto ChatGPT AI Review Translator -3

Run the following commands to publish the package:

composer dump-autoload
php artisan optimize
php artisan vendor:publish --force

Press the number before “Webkul\AITranslator\Providers\AITranslatorProvider” and then press enter to publish all assets and configurations.

Generate OpenAI Key – OpenAI Account

The user has to first create an OpenAI account and log in to the OpenAI dashboard as shown in the screenshot.

dashboard

Click on the API section where the Create New Secret Key will be visible as shown in the screenshot.

Api

When the user clicks on this button, a pop-up will appear showing the API key. In the pop-up, there will be a “Copy” button that allows the user to easily copy the key to their clipboard.

api-key

The generated key is to be used in the configuration settings section under the Open AI key.

Langchain Configuration

This chatbot is built on the Langchain framework and uses the OpenAI API key to translate reviews.

Setup OpenAI credentials in .env file

<strong>OPENAI_API_KEY=
PINECONE_API_KEY=
</strong>

Note: Create a .env file in the root directory, copy everything from the .env.example, and paste it into the .env file.

Installation

Install the npm dependencies but run the following command

<strong>npm i
</strong>

Run the following command to run the node js server

<strong>npm run dev
</strong>
screenshot_1693976761844

API Documentation for AI Translator

<code><strong>POST /api/translate</strong></code>

Admin Configuration – Bagisto ChatGPT AI Review Translator

In the Bagisto Admin Panel, The Admin goes to the configuration page and enters the API URL and API key provided by OpenAI to make the Review translation work.

Note: You can also check Bagisto AI content generator for AI-driven content for your website like product, category, and CMS page.

ai-translator-configuration

Note- Before proceeding, the admin must create multiple backend store views. This step allows the store to support different languages and regions.

You can also check the Bagisto ChatGPT Chatbot module which can improve customer support by answering questions and helping customers to buy products.

View the Translated Review at Storefront

Users visit the storefront and click on a product they’re interested in.

They are redirected to the product page, where they can view details and read product reviews from other customers.

Initially, users see product reviews in the store’s default language, which the admin can set.

spainsh-store-view-1

Customers can select their desired language from the store’s language options.

langauge-store

Once users choose their preferred language, the entire store is translated into their selected language.

english-store-view

After the translation, users will see a “Translate” button under each review, but only if the review is not already in the default language of the store.

The review is translated and displayed to the user in their selected local language.

After checking the other reviews customers can checkout and place the order for respective orders.

translated-store-view

Support

That’s all about the “Bagisto ChatGPT AI Review Translator“.

However, If you have any queries regarding the plugin, please contact us at Webkul Support System. You may also check our quality Bagisto Extensions.

Current Product Version - v2.2.2

Supported Framework Version - Bagisto v2.2.2

Blog Version - Bagisto v2.2.2
  • Version Bagisto v2.2.2
  • Version Bagisto v1.5.x
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content