AI
Pass

How to Build an AI Name Explorer with AI Pass SDK

How to Build an AI Name Explorer with AI Pass SDK

Build a name meaning and origin explorer โ€” and earn 50% commission on every lookup.

What You'll Build

A web tool where users enter any name and get detailed info about its meaning, origin, history, and cultural significance.

Prerequisites

  1. Sign up at aipass.one
  2. Developer Dashboard โ†’ OAuth2 Clients โ†’ create client โ†’ copy Client ID

Step 1: SDK Setup

<!DOCTYPE html>
<html>
<head>
  <title>AI Name Explorer</title>
  <link href="https://aipass.one/aipass-ui.css" rel="stylesheet">
</head>
<body>
  <script src="https://aipass.one/aipass-sdk.js"></script>
  <script>
    AiPass.initialize({
      clientId: 'YOUR_CLIENT_ID',
      requireLogin: true,
      darkMode: true
    });
  </script>
</body>
</html>

Step 2: Interface

<div style="max-width: 600px; margin: 40px auto; padding: 20px;">
  <h1>๐Ÿ”ค Name Explorer</h1>
  <input id="name" placeholder="Enter any name..." style="width:100%; padding:12px; font-size:16px;">
  <button onclick="explore()" style="width:100%; padding:12px; margin-top:10px;">Explore Name</button>
  <div id="result" style="margin-top: 20px; white-space: pre-wrap;"></div>
</div>

Step 3: AI Logic

async function explore() {
  const name = document.getElementById('name').value;
  const resultDiv = document.getElementById('result');
  resultDiv.textContent = 'Researching...';

  try {
    const r = await AiPass.generateCompletion({
      model: 'gpt-5-mini',
      temperature: 1,
      max_tokens: 16000,
      messages: [
        {
          role: 'system',
          content: 'You are a name expert. For any given name, provide: 1) Meaning 2) Origin & Etymology 3) Cultural Significance 4) Famous Bearers 5) Popularity Trends 6) Variations in Other Languages. Be thorough and engaging.'
        },
        { role: 'user', content: `Tell me about the name: ${name}` }
      ]
    });
    resultDiv.textContent = r.choices[0].message.content;
  } catch (err) {
    resultDiv.textContent = 'Error. Please try again.';
  }
}

Always include temperature: 1 and max_tokens: 16000.

Step 4: Deploy

Option A โ€” Self-host: GitHub Pages, Netlify, Vercel, or any server.

Option B โ€” AI Pass catalog: Publish and use the </> embed button.

Revenue

50% commission on every API call your users make.

Live: AI Name Explorer ยท SDK