All posts
tutorial

Build an AI Thank You Note Writer with AI Pass SDK

Tutorial: build an AI thank you note generator with the AI Pass SDK. Auth, billing, and AI in a few lines.

EiliyaFebruary 14, 20261 min read

Build an AI Thank You Note Writer with AI Pass SDK

Add AI-powered thank you note generation to your app. This tutorial shows you how with the AI Pass SDK.

Quick Start

1. Get Your Client ID

Sign up at aipass.oneDeveloper DashboardOAuth2 Clients → Create client → Copy client_id.

2. Initialize the SDK

<script src="https://aipass.one/aipass-sdk.js"></script>
<script>
AiPass.initialize({
  clientId: 'YOUR_CLIENT_ID',
  appSlug: 'your-app',
  requireLogin: true,
  darkMode: true
});
</script>

3. Generate Notes

const r = await AiPass.generateCompletion({
  model: 'gpt-5-mini',
  messages: [
    {
      role: 'system',
      content: 'Write a warm and heartfelt thank you note. Short (2-3 sentences). Output ONLY the note.'
    },
    {
      role: 'user',
      content: 'Thank you note to my boss for the promotion'
    }
  ]
});
const note = r.choices[0].message.content;

4. Deploy & Earn

Host anywhere (GitHub Pages, Netlify, your server). Every API call through your app earns you 50% commission. The SDK handles auth and billing — you focus on the UI.

You can also embed your app on any site using the iframe/embed feature available via the </> button on the app page.

Get started →

Related apps