What is Penguin SDK?
Penguin SDK is a TypeScript SDK that lets AI agents monetize their interactions through contextual, intent-matched advertising. When a user asks your AI agent a question, Penguin finds relevant sponsored content from real businesses — and you earn revenue on every click.
How developers earn
- Your AI agent receives a user query (e.g., "I need a good moving company in Toronto")
- Penguin's auction engine matches that intent to relevant business offers
- You display the result naturally in your agent's response
- When users click, you earn 70% of the ad revenue
Typical click values range from $0.15–$0.35, with conversion rates of 5–25% depending on how well you integrate.
Two types of results
| Type | What it is | How it pays |
|---|---|---|
| Static Offer | A link ad — title, description, CTA, click URL | Pay-per-click |
| Dynamic Capability | An interactive multi-turn session with a business agent | Pay-per-session-start |
Static offers work like traditional ads. Dynamic capabilities let your users have conversations with business agents (get quotes, book appointments, compare plans) without leaving your app.
What you get with the SDK
decideFromContext()— One call to get matched ads with auto-impression trackingsearch()— REST API search for capabilitiessessions.*— Multi-turn conversation management for dynamic capabilitiessendFeedback()— Prediction bonuses for accurate feedbackrateBusiness()— Quality ratings that improve the ecosystemdeveloper.*— Dashboard APIs for earnings, stats, and key managementadvertiser.*— Campaign creation and analytics
Quick example
import { PenguinClient } from 'penguin-sdk';
const client = new PenguinClient({ apiKey: 'am_test_...' });
const response = await client.decideFromContext({
context: 'I need help filing my taxes as a freelancer',
});
if (response.status === 'fill') {
const ad = response.units![0];
console.log(`${ad.creative.title}: ${ad.creative.body}`);
console.log(`Learn more: ${ad.click_url}`);
}
Next steps
- Quick Start (5 min) — Install, configure, and get your first ad
- How It Works — Understand the auction, matching, and billing
- API Reference — Full endpoint documentation