Transform by Example powered by OpenAI ChatGPT API
Zoho DataPrep helps you transform columns based on example inputs using integration with ChatGPT API, a generative artificial intelligence developed by OpenAI. To enable this feature in your DataPrep organization, go to the OpenAI Integration tab in the Settings page.
Click here to know more about enabling OpenAI integrated features.
Note: If Ask Zia is not integrated with ChatGPT, Zoho DataPrep utilizes its Inbuilt AI to perform the transformations.
Here's a quick video on ChatGPT API integration with Zoho DataPrep.
Transform by example easily helps you transform the data in any column just by providing examples of the output. Using this feature, you can enter the required output against a few cell values in your data column as examples and the rest of the output will be auto-generated for you, by applying ChatGPT API generated formula internally.
Here's a quick demo on the features powered by OpenAI in Zoho DataPrep.
Data Privacy Notice : Zoho DataPrep utilizes OpenAI's ChatGPT API, an external service based in the USA, subject to OpenAI's Terms of Use . Please be aware that the information sent to OpenAI depends on the access provided by you, the user. The data shared with ChatGPT is based on the features you enable. Details such as column names and/or selected cell data will be shared based on each feature. You can choose to enable or disable each feature based on the level of data you want to share. Therefore, exercise caution while using this service and ensure that the data you provide does not contain confidential or personal information.
Go to OpenAI Integration in the Settings page to learn more about configuring this integration.
Notes :
- The generative response are coming in from ChatGPT's training data. Accuracy, consistency, and relevance of the response are subjective to the type of prompts and the data available in its training set.
- ChatGPT doesn't respond to prompts about personal information.
1.
Right-click on a column, select the Transform by example option from the context menu and click Configure in the OpenAI configuration pop-up. This pop-up appears only when you configure it for the first time.

You can also go to the
OpenAI Integration tab in the
Settings page by clicking the settings icon at the top-right corner in the top bar.
Click here to know more.
Note: The OpenAI configuration in DataPrep will be visible to only the Account admin.
The features can enabled for your DataPrep organization only by the Account admin.
2. Provide the API Key and Organization ID of your OpenAI organization to configure OpenAI integration in your DataPrep organization.
3. Click the Save button. Consent popup will be shown. Please read the data privacy notice carefully before you proceed. By proceeding, you acknowledge and accept the risks, and OpenAI's terms of use policy.
4. Once saved, you can choose to enable the Transform by Example feature.
5. After enabling the feature, you will be able to use them in your DataPrep organization.
Notes:
1. The ChatGPT powered features, when enabled can be used by the Account admin and the Organization admins in your DataPrep organization.
2. The API key entered is specific to the particular organization that it is configured in. If you are a part of multiple Zoho DataPrep organizations, the API key still won't be shared across organizations.
3. The API key entered is specific to Zoho DataPrep, and will not be shared with any other Zoho service.
Organization ID and API key in OpenAI
1. Go to your settings page in Open AI to get the Organization name and ID. Here's a snapshot for reference.
Read more from OpenAI
2. Go to the
API keys tab under the
Organization section to get your API Key. Here's a snapshot for reference.
Read more from OpenAI
1. Right-click on a column and select the Transform by example option from the context menu.
2. An editable version of the selected column appears right next to the original column where you can type in the required output against a few cell values from your data column as an example, and press enter.

3. Once you enter the example, the rest of the column data is transformed, and the output column name is contextually auto-generated by ChatGPT based on your input prompt and shown as a preview. The formula script used to get the output is displayed in the Generated formula panel.
Transform by example is now equipped with a re-try mechanism which gets you the best result out of ChatGPT's response by re-trying the query automatically in a different way if the output data did not match your expectation.
4. For instance, I have given the domain name "zylker.com" here in letters as an example, and the transform automatically derives rest of the output using the auto-generated formula powered by ChatGPT.
5. If the generated output doesn't match your requirements for all the values, you can provide another example and press enter. DataPrep now takes the new input into consideration and generates a new way to transform the data.
6. The updated formula will also be displayed in the Generated formula field in the right panel.
5. Click the Apply to apply the transform.
Notes:
1. You can also modify the generated formula using the Customize option.
2. This converts the transform by example panel into a formula column transform. You can now use the full capability of the formula column feature to fine-tune the formula to your requirements.
3. You can also use the chat based formula builder powered by OpenAI ChatGPT to generate the required formula. Click here to learn more.
a) I want to change the format of the values in the date column below to the format that represents day along with the date. I just type in the example for the first value with "Thursday, 06 December 2018", and DataPrep fills the rest of the column with the required output. Here's the snapshot of the generated formula and the output.
b) I want to extract the names from the Email ID column. I just type in the value "john" as an example, and DataPrep fills the rest of the column with the required output. Here's the snapshot of the generated formula and the output.
c) Here, I have given the first example "Donnie Denson" to separate out the names with a space. Below is the snapshot of the auto-generated formula and the output for the rest of the column.
d) I wish to clean the phone numbers in my dataset by removing the delimiters and standardize them. Below is the snapshot of the auto-generated formula and the output for the rest of the column.
SEE ALSO