跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.kontext.so/llms.txt

Use this file to discover all available pages before exploring further.

JavaScript Demo

看看用我们轻量的 SDK 接入高性能广告有多简单。

环境要求

  • 一个现代浏览器环境(SDK 不绑定任何框架——在静态页面、自定义聊天 UI 或任意 SPA 中都能使用)。
你需要一个 发布方账号 来获取 publisherToken 与 placement code。

安装

通过 npm 安装,或从 CDN 加载。

展示第一个广告

创建会话、喂入消息、挂载广告——五分钟完成接入。

API 参考

createSessionSessionAd,以及完整事件列表。

实践指南

no-fill、切换 character、会话恢复等常见模式。

示例应用

使用你自己的 publisher token 端到端运行 Vite 示例。