A template that integrates Kontext advertisements into the Next.js AI Chatbot
Kontext Homepage · Kontext Docs
- Real-time analysis
- We analyze each user session in real time, without the need for keywords.
- Contextual matching
- We match user context with the most relevant products, brands, or entertainment content.
- Native ad generation
- Our platform creates contextual, native advertisements tailored to each user session, ensuring maximum relevance and engagement.
Example of Kontext ads in the chat interface
-
Follow the instructions to deploy & run the Next.js AI Chatbot
-
To run Kontext ads, you will need a token from Kontext. You can get one by getting in touch with us.
-
You will need to install the Kontext SDK.
npm install @kontextso/sdk
-
Initialize the AdsProvider by following these instructions in the
chat.tsx
file. -
Include your first format, such as an InlineAd in the
Messages
component.