genai-product-comparison-agent@1.0.11
step 1:
install the npm package
step 2:
import the package module
import { AIAgent } from 'genai-product-comparison-agent';
step 3:
use the component with props:
props need to be added: email, token.
Example usage:
import React from 'react'
import { AIAgent } from 'genai-product-comparison-agent';
const NewComponent = () => {
const email = 'your_email_id';
const token = 'your_token'
return (
<div>
<AIAgent email={email} token={token}/>
</div>
)
}
steps for publishing the npm package:
run the command "npm run build" for generating build file for the package
run "npm login" for logging into the npm account
after login run "npm publish --access public" to deploy the package to npm