AskAI
Enable users to ask AI questions about your content with integrated LLM endpoints.
Overview
The AskAI component provides a seamless way for users to interact with AI assistants about your content. It creates contextual prompts and opens conversations in popular AI platforms like ChatGPT, Grok, and others, using your LLM endpoints for accurate, content-aware responses.
How It Works
This component requires you to have an LLM endpoint set up to work. See the LLM Endpoints documentation for details.
The AskAI component generates intelligent prompts that include:
- Context about your company/product
- Direct links to your documentation
- Instructions for the AI to provide helpful assistance
When clicked, it opens a dropdown menu with options to continue the conversation in various AI platforms.
Install the required dependencies:
The AskAI component uses Radix UI components for the dropdown interface.
Make sure that the following shadcn/ui components are present in your project:
Copy and paste the following code into your project.
'use client';
import { Button } from '@kit/ui/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '@kit/ui/dropdown-menu';
import { Icon } from '@kit/ui/icon';
Update the import paths to match your project setup.
Integrated LLM endpoints
Endpoint | Description |
---|---|
View as Markdown | Direct link to your LLM endpoint |
ChatGPT | OpenAI's conversational AI |
Grok | xAI's helpful and maximally truthful AI |
Claude | Anthropic's constitutional AI (do not support pre-filling prompts) |
v0 | Vercel's AI-powered design tool |
Scira AI | Advanced AI assistant |
t3 | t3.chat's AI assistant (do not support pre-filling prompts) |
Usage
import { AskAi } from '@kit/cms/ui/ask-ai';
<AskAi
url={'/path/to/your/md/endpoint'}
companyName="Your Blog"
/>
API Reference
AskAiProps
Prop | Type | Default |
---|---|---|
url* | string | |
companyName* | string |
Add powerful search functionality to your Notion-powered applications.
Enable users to quickly navigate back to the top of long pages with a smooth scroll-to-top button.
How is this guide?
Last updated on 10/17/2025