Skip to main content
1

Install the package

npm install @whetdata/input
2

Create an API key

Sign up at whetdata.com and create an API key if you don’t already have one.
3

Add to your app

import { WhetdataProvider, WhetInput } from '@whetdata/input';

function MyApp() {
  const [text, setText] = useState('');
  
  return (
    <WhetdataProvider config={{
      apiKey: 'your-api-key-here',
      enablePIIMasking: true,
      enableAnalytics: true
    }}>
      <WhetInput
        value={text}
        onChange={setText}
        placeholder="Describe your product..."
        target="product_description"
        nudgePackId="ecommerce_optimization"
        goal="Create compelling product descriptions"
      />
    </WhetdataProvider>
  );
}
Need help? Check out our Discord or contact support.
I