We help out clients bridge the execution gap offering end-to-end technology
planning, implementation & management to provide peace-of-mind, increased
quality, and lower the risk.
To deliver a great digital experience across every
screen we will prioritize continuous
delivery, integrate real user feedback,
collect data and improve based upon new insights
from digital restoration
to incremental improvement, we navigate the complexities of delivering
great digital experiences.
We create smart Digital Products
Web Applications
Back-End Development
Hybrid Mobile Applications
Dev Ops
UI/UX Design
Load Testing
Code Audit
Blockchain Development
Technologies
React
Javascript
Vue
Electron
Angular
Node JS
Mongo DB
Nest
Docker
Redis
AWS
Google Cloud
Digital Ocean
Azure
Heroku
Bootstrap
React
Javascript
Vue
Electron
Angular
Node JS
Mongo DB
Nest
Docker
Redis
AWS
Google Cloud
Digital Ocean
Azure
Heroku
Indian Coast Guard
Chingari
Myglamm
Selec
Techurate
Drip Capital
hBits
Genie Connections
ePlannerPro
Pixis
Yalo
Novigo
Pureblu
Human Edge
Saal
X Over Time
Indian Coast Guard
Chingari
Myglamm
Selec
Techurate
Drip Capital
hBits
Genie Connections
ePlannerPro
Pixis
Yalo
Novigo
Pureblu
Human Edge
Saal
Various Sectors
Social Media
Banking
Trading
Education
E-Commerce
Advertising
Real Estate
Import Export
Riddhesh Ganatra
Apr 11, 2023
Script to use Chat-GPT at scale
We wanted to get categories for products just by product name. So instead of training our own AI model we tried chat GPT and are very happy with the results.
The question we asked chat-gpt:
I am creating a search feature for an ecommerce store. Create categories and tags for the product. Also, create a few keywords that users search for products in the category this product belongs to. product: Samsung Galaxy A53 5G
Response from ChatGPT:
Now how do we do this for 1000 products or maybe more?
We will need an API key from open ai and can write a script to get this done.
Go to this page and get the API key: https://platform.openai.com/account/api-keys
Code:
import { ChatGPTAPI } from 'chatgpt'
async function example() {
const api = new ChatGPTAPI({
apiKey: `PUT api here`
})
let questions=[`I am creating a search feature for an ecommerce store. Create categories and tags for the product. Also, create a few keywords that users search for products in the category this product belongs to. product: Samsung Galaxy A53 5G`]
for (let index = 0; index < questions.length; index++) {
const question = questions[index];
const res = await api.sendMessage(question)
console.log(res.text)
}
}
example()
Above code will get results for all questions in an array and log responses.
We at Code B are a team of Fullstack software developers, passionate and dedicated to growing businesses for clients.
We have experience in Web Applications(Frontend and Backend), Mobile Applications(Native and Hybrid), DevOps (AWS, GCP, Azure, Digital Ocean, and Heroku), Blockchain(Solana), and UI/UX Design(Figma).
Contact us if you need any help with Software.
Script to use Chat-GPT at scale was originally published in GoPenAI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Contact Us
Recognition and Certificates