Get up and running with the OpenGiant TypeScript SDK in just a few steps.
In just a few minutes, you’ll have full control over how your AI communicates. Whether you’re crafting customer support bots or designing immersive in-game NPCs, OpenGiant ensures every interaction feels thoughtful, on-brand, and unmistakably human.Let’s get started.
Head over to OpenGiant Studio to craft your AI persona. Shape the tone, style, and personality to fit your brand.Once you’ve created your persona, you’ll receive two essentials:
OG Key
Persona ID
We’ll use these in the next steps.
Want a guided experience? We’d be happy to walk you through setting up your persona and integrating OpenGiant. Talk to us and let’s build something great together.
Use your provider’s SDK as usual, then pass the raw output through OpenGiant to shape responses that resonate.
Copy
// Example using OpenAI's SDKimport OpenAI from 'openai';const client = new OpenAI({ apiKey: process.env['OPENAI_API_KEY'], // Default environment variable});async function main() { const chatCompletion = await client.chat.completions.create({ messages: [{ role: 'user', content: 'I need help with my account statement.' }], model: 'gpt-4o', }); // Pass raw response through OpenGiant const refinedResponse = await og.refine(chatCompletion); console.log(refinedResponse);}main();