Chat SDK
Ad Formats
Choose the right chat ad format for your UX
Ad Formats
The Chat SDK supports four native formats:
| Format | Best for |
|---|---|
chat_sponsored_recommendation | Product/tool suggestion in a conversation |
chat_cta_card | Strong CTA with visual focus |
chat_contextual_link | Lightweight inline recommendation |
chat_sponsored_answer | Full sponsored block in assistant output |
Configure a format
const ad = await ads.getAdForContent({
sessionId: 'page-42',
contentText: pageText,
format: 'chat_cta_card'
});
Render methods
ad?.renderMarkdown();
ad?.renderHTML();
ad?.renderPlainText();