AI Elements Documentation
Overview
Provide intelligent documentation retrieval for the AI Elements component library when building AI-native applications. AI Elements is a component library built on shadcn/ui that provides pre-built components like conversations, messages, prompts, workflows, and more - all designed to integrate with the AI SDK.
This skill automatically fetches relevant documentation from the bundled markdown files and provides context-aware routing to ensure users get the right information format for their query.
Activation
Automatically Activate When:
AI Elements Component Names Mentioned:
- Chat & Messaging: Message, Conversation, Response, Loader, Prompt Input, Suggestion, Actions
- AI-Specific: Tool, Reasoning, Chain of Thought, Plan, Task, Queue, Artifact
- Workflow: Canvas, Node, Edge, Connection, Toolbar, Panel, Controls
- UI Enhancements: Code Block, Image, Sources, Inline Citation, Confirmation, etc.
AI Elements Library Terms:
- "ai-elements", "AI Elements library"
- "ai-native app", "AI native application"
- "shadcn AI components"
- "@ai-elements/..." (component installation syntax)
File Context Detection:
- Imports from
@/components/ai-elements/
- Component usage matching AI Elements component names
- AI Elements commands in package.json
AI-Native Development Queries:
- Building chat interfaces with AI responses
- Creating workflow visualizations for AI agents
- Displaying AI reasoning or chain-of-thought
- Implementing AI artifact containers
Do NOT Activate For:
- Generic chat/messaging apps without AI context
- General React Flow usage without AI workflow context
- Standard UI components unless specifically AI Elements components
- Generic "conversation" mentions without AI/component context
Core Capabilities
1. Context-Aware Documentation Routing
Route queries intelligently based on intent to provide the most useful documentation format:
Route 1: Implementation Queries → Examples + Components
Triggers:
- "how to build...", "create a...", "implement a..."
- "building a chatbot", "creating a workflow visualization"
- "I want to make...", "I need to develop..."
Action:
- Identify the most relevant example from INDEX.md
- Read the example file using Read tool:
.claude/skills/ai-elements/docs/examples/[example].md
- Identify 2-3 key components mentioned in the example
- Read those component files:
.claude/skills/ai-elements/docs/components/[component].md
- Present with integration pattern explanation
Example Query: "How do I build a chatbot with reasoning?"
Fetch:
docs/examples/chatbot.md
docs/components/reasoning.md
docs/components/conversation.md
Route 2: API Reference Queries → Component Only
Triggers:
- "what is...", "what does... do", "what props..."
- "how does X component work"
- "show me the API for..."
- "what properties does... accept"
Action:
- Look up component in INDEX.md
- Read single component file:
.claude/skills/ai-elements/docs/components/[component].md
- Suggest 2-3 category-related components from INDEX.md
Example Query: "What props does Message accept?"
Fetch:
docs/components/message.md
Suggest: Conversation, Response, Actions (same category)
Route 3: General Guidance Queries → Overview Docs
Triggers:
- "getting started with AI Elements"
- "how to install...", "setup..."
- "troubleshooting...", "common issues..."
- "best practices for..."
Action:
- Read appropriate general documentation:
docs/introduction.md for getting started
docs/usage.md for implementation patterns
docs/troubleshooting.md for issues
docs/README.md for overview
Example Query: "I'm new to AI Elements, how do I get started?"
Fetch:
docs/introduction.md
docs/usage.md
Route 4: Category/Use Case Queries → README + Components
Triggers:
- "components for building chat interfaces"
- "workflow visualization components"
- "what components help with..."
- "show me all... components"
Action:
- Read
docs/README.md (contains categorized component lists)
- Optionally read 1-2 key components in that category
- List all relevant components with brief descriptions from INDEX.md
Example Query: "What components help with workflow visualization?"
Fetch:
docs/README.md
- Optionally:
docs/components/canvas.md
2. Smart Multi-Page Fetching
Fetch Multiple Pages (2-4 total) When:
- Implementation queries ("how to build...")
- Query mentions multiple components ("chat with reasoning")
- Component docs reference other required components
- Related component sets (Canvas + Node + Edge, Message + Conversation + Response)
Fetch Single Page When:
- Simple reference queries ("what props...")
- Troubleshooting lookups
- General overview requests
Stop Fetching When:
- Already fetched 3-4 pages
- Query is answered sufficiently
- Additional pages would be tangential
3. Category-Aware Suggestions
After fetching documentation, always suggest 2-3 related components using these category groupings:
Chat & Messaging:
- Message, Conversation, Response, Loader, Prompt Input, Suggestion, Actions
AI-Specific Features:
- Tool, Reasoning, Chain of Thought, Plan, Task, Queue, Artifact
Workflow & Canvas:
- Canvas, Node, Edge, Connection, Toolbar, Panel, Controls
UI Enhancements:
- Code Block, Image, Sources, Inline Citation, Web Preview, Shimmer, Open in Chat, Confirmation, Context, Branch
Common Pairings:
- Message → Conversation, Response, Actions
- Reasoning → Chain of Thought, Plan, Task
- Canvas → Node, Edge, Toolbar, Panel
- Prompt Input → Suggestion, Confirmation
- Tool → Artifact, Code Block
- Sources → Inline Citation
Suggest components from:
- Same category (highest priority)
- Commonly used together
- Next implementation step
4. Installation Command Generation
Always include installation commands in responses:
Single component:
**Installation:**
`npx ai-elements add [component-name]`
Multiple components:
**Installation:**
`npx ai-elements add message conversation response`
All components:
**Installation (all components):**
`npx ai-elements add @ai-elements/all`
For workflow components (Canvas, Node, Edge, etc.):
**Installation:**
`npx ai-elements add canvas` (requires React Flow)
Response Formats
Single-Page Response Format
I've fetched the [Component Name] documentation from AI Elements.
**Installation:**
`npx ai-elements add [component-name]`
[Full component documentation content from file]
---
**Related Components:**
- **[Component 1]** - [Brief description of relationship]
- **[Component 2]** - [Brief description of relationship]
- **[Component 3]** - [Brief description of relationship]
Multi-Page Response Format
This requires understanding multiple components. I've fetched:
---
## [Example/Component 1 Name]
**Installation:**
`npx ai-elements add [component-name]`
[Full content from file]
---
## [Component 2 Name]
**Installation:**
`npx ai-elements add [component-name]`
[Full content from file]
---
## [Component 3 Name] (if needed)
**Installation:**
`npx ai-elements add [component-name]`
[Full content from file]
---
**Integration Pattern:**
[2-3 sentences explaining how these components work together, referencing examples from the documentation]
**Related Resources:**
- **[Additional Component]** - [Description]
- **[Tutorial/Example]** - [Description]
Implementation Guidance Scope
✅ DO Provide:
Pattern Explanations from Examples
- "The chatbot example shows using Conversation with auto-scroll"
- "The workflow example demonstrates connecting Canvas + Node + Edge"
Component Integration Patterns
- "Typically used together: Message inside Conversation with Response for AI output"
- "Canvas requires Node and Edge components for complete workflows"
Best Practices from Docs
- "The docs recommend using Loader during AI response generation"
- "Prompt Input includes built-in file attachment handling"
Common Pitfall Warnings
- "Note: Canvas requires React Flow to be installed separately"
- "Response component uses Streamdown for markdown rendering"
Installation Guidance
- "Install all chat components:
npx ai-elements add message conversation response"
- "Prerequisites: Next.js with AI SDK and shadcn/ui"
❌ DON'T Provide:
- Complete Custom Implementations - Reference examples instead of generating new code
- Customization Beyond Docs - Only suggest what's documented
- Debugging User Code - Can reference troubleshooting docs only
- Undocumented Features - Only describe documented capabilities
- Framework Integration (unless documented) - Stick to documented Next.js + AI SDK patterns
Documentation Access
File Structure
All documentation is bundled in the skill at:
.claude/skills/ai-elements/
├── SKILL.md (this file)
├── INDEX.md (searchable component reference)
└── docs/
├── README.md (overview and categories)
├── introduction.md (getting started)
├── usage.md (implementation patterns)
├── troubleshooting.md (common issues)
├── components/ (31 component files)
│ ├── message.md
│ ├── conversation.md
│ ├── reasoning.md
│ └── ...
└── examples/ (3 tutorial files)
├── chatbot.md
├── v0.md
└── workflow.md
How to Access Documentation
- Search INDEX.md for component names, keywords, or categories
- Read files using the Read tool with absolute paths:
- Components:
.claude/skills/ai-elements/docs/components/[name].md
- Examples:
.claude/skills/ai-elements/docs/examples/[name].md
- General:
.claude/skills/ai-elements/docs/[name].md
- Extract metadata from INDEX.md entries (keywords, related components, categories)
- Generate suggestions using category groupings and common pairings
Query Interpretation Examples
Example 1: Building a Feature
Query: "How do I build a chat interface with AI responses?"
Routing: Implementation query → Examples + Components
Process:
- Search INDEX.md for "chat", "conversation", "chatbot"
- Identify relevant example: chatbot.md
- Read
.claude/skills/ai-elements/docs/examples/chatbot.md
- Extract key components mentioned: Conversation, Message, Response
- Read those component files
- Format multi-page response with integration pattern
Response includes:
- Installation commands for all components
- Full chatbot example
- Component API references
- Integration pattern explanation
Example 2: API Lookup
Query: "What props does the Reasoning component accept?"
Routing: API reference query → Component only
Process:
- Look up "reasoning" in INDEX.md
- Read
.claude/skills/ai-elements/docs/components/reasoning.md
- Extract category from INDEX.md: "AI-Specific Features"
- Find related components: Chain of Thought, Plan, Task
Response includes:
- Installation:
npx ai-elements add reasoning
- Full Reasoning component documentation
- Props table and usage examples
- Suggestions: Chain of Thought, Plan, Task
Example 3: Category Exploration
Query: "What components help with workflow visualization?"
Routing: Category query → README + key component
Process:
- Search INDEX.md for "workflow" category
- Read
.claude/skills/ai-elements/docs/README.md
- Extract Workflow & Canvas category section
- Optionally read Canvas component as primary example
Response includes:
- List of all workflow components
- Brief descriptions from README
- Installation command for workflow set
- Suggestion to check workflow example
Example 4: Getting Started
Query: "I'm new to AI Elements, how do I get started?"
Routing: General guidance → Overview docs
Process:
- Read
.claude/skills/ai-elements/docs/introduction.md
- Read
.claude/skills/ai-elements/docs/usage.md
Response includes:
- Installation instructions
- Prerequisites checklist
- Basic usage patterns
- Suggestions to explore chatbot/v0/workflow examples
Important Notes
Prerequisites
Always mention when relevant:
- Node.js 18 or later
- Next.js project
- AI SDK installed
- shadcn/ui installed
- React Flow (for workflow components only)
Component Customization
Components are installed as source files into the user's codebase (typically @/components/ai-elements/), making them fully customizable. Reference usage.md for customization guidance.
AI SDK Integration
All components are designed for use with the AI SDK. Reference integration patterns with useChat, useCompletion, and other AI SDK hooks when showing examples.
React Flow Dependency
Canvas, Node, Edge, Connection, Toolbar, Panel, and Controls components require React Flow to be installed separately. Always note this dependency when fetching workflow component documentation.
Workflow Summary
For every query:
- Identify intent → Implementation, API reference, category, or general guidance
- Route appropriately → Determine which files to fetch
- Search INDEX.md → Find relevant components, keywords, categories
- Read files → Use Read tool to access documentation
- Format response → Include installation, content, integration pattern, suggestions
- Suggest related → Use category groupings and common pairings
Keep responses:
- Focused on documented information
- Formatted with clear installation commands
- Enriched with relevant component suggestions
- Practical with integration patterns from examples
1---2name: ai-elements3description: Intelligent documentation system for AI Elements component library. Activate automatically when working with AI-native applications or when AI Elements component names are mentioned (Message, Conversation, Reasoning, Canvas, etc.). Provides context-aware documentation retrieval - fetches examples for implementation queries, component references for API lookups, and smart multi-page fetching for complex tasks.4---5
6# AI Elements Documentation
7
8## Overview
9
10Provide intelligent documentation retrieval for the AI Elements component library when building AI-native applications. AI Elements is a component library built on shadcn/ui that provides pre-built components like conversations, messages, prompts, workflows, and more - all designed to integrate with the AI SDK.
11
12This skill automatically fetches relevant documentation from the bundled markdown files and provides context-aware routing to ensure users get the right information format for their query.
13
14## Activation
15
16### Automatically Activate When:
17
181. **AI Elements Component Names Mentioned:**
19 - Chat & Messaging: Message, Conversation, Response, Loader, Prompt Input, Suggestion, Actions
20 - AI-Specific: Tool, Reasoning, Chain of Thought, Plan, Task, Queue, Artifact
21 - Workflow: Canvas, Node, Edge, Connection, Toolbar, Panel, Controls
22 - UI Enhancements: Code Block, Image, Sources, Inline Citation, Confirmation, etc.
23
242. **AI Elements Library Terms:**
25 - "ai-elements", "AI Elements library"
26 - "ai-native app", "AI native application"
27 - "shadcn AI components"
28 - "@ai-elements/..." (component installation syntax)
29
303. **File Context Detection:**
31 - Imports from `@/components/ai-elements/`
32 - Component usage matching AI Elements component names
33 - AI Elements commands in package.json
34
354. **AI-Native Development Queries:**
36 - Building chat interfaces with AI responses
37 - Creating workflow visualizations for AI agents
38 - Displaying AI reasoning or chain-of-thought
39 - Implementing AI artifact containers
40
41### Do NOT Activate For:
42
43- Generic chat/messaging apps without AI context
44- General React Flow usage without AI workflow context
45- Standard UI components unless specifically AI Elements components
46- Generic "conversation" mentions without AI/component context
47
48## Core Capabilities
49
50### 1. Context-Aware Documentation Routing
51
52Route queries intelligently based on intent to provide the most useful documentation format:
53
54#### Route 1: Implementation Queries → Examples + Components
55
56**Triggers:**
57- "how to build...", "create a...", "implement a..."
58- "building a chatbot", "creating a workflow visualization"
59- "I want to make...", "I need to develop..."
60
61**Action:**
621. Identify the most relevant example from INDEX.md
632. Read the example file using Read tool: `.claude/skills/ai-elements/docs/examples/[example].md`
643. Identify 2-3 key components mentioned in the example
654. Read those component files: `.claude/skills/ai-elements/docs/components/[component].md`
665. Present with integration pattern explanation
67
68**Example Query:** "How do I build a chatbot with reasoning?"
69**Fetch:**
70- `docs/examples/chatbot.md`
71- `docs/components/reasoning.md`
72- `docs/components/conversation.md`
73
74#### Route 2: API Reference Queries → Component Only
75
76**Triggers:**
77- "what is...", "what does... do", "what props..."
78- "how does X component work"
79- "show me the API for..."
80- "what properties does... accept"
81
82**Action:**
831. Look up component in INDEX.md
842. Read single component file: `.claude/skills/ai-elements/docs/components/[component].md`
853. Suggest 2-3 category-related components from INDEX.md
86
87**Example Query:** "What props does Message accept?"
88**Fetch:**
89- `docs/components/message.md`
90**Suggest:** Conversation, Response, Actions (same category)
91
92#### Route 3: General Guidance Queries → Overview Docs
93
94**Triggers:**
95- "getting started with AI Elements"
96- "how to install...", "setup..."
97- "troubleshooting...", "common issues..."
98- "best practices for..."
99
100**Action:**
1011. Read appropriate general documentation:
102 - `docs/introduction.md` for getting started
103 - `docs/usage.md` for implementation patterns
104 - `docs/troubleshooting.md` for issues
105 - `docs/README.md` for overview
106
107**Example Query:** "I'm new to AI Elements, how do I get started?"
108**Fetch:**
109- `docs/introduction.md`
110- `docs/usage.md`
111
112#### Route 4: Category/Use Case Queries → README + Components
113
114**Triggers:**
115- "components for building chat interfaces"
116- "workflow visualization components"
117- "what components help with..."
118- "show me all... components"
119
120**Action:**
1211. Read `docs/README.md` (contains categorized component lists)
1222. Optionally read 1-2 key components in that category
1233. List all relevant components with brief descriptions from INDEX.md
124
125**Example Query:** "What components help with workflow visualization?"
126**Fetch:**
127- `docs/README.md`
128- Optionally: `docs/components/canvas.md`
129
130### 2. Smart Multi-Page Fetching
131
132**Fetch Multiple Pages (2-4 total) When:**
133- Implementation queries ("how to build...")
134- Query mentions multiple components ("chat with reasoning")
135- Component docs reference other required components
136- Related component sets (Canvas + Node + Edge, Message + Conversation + Response)
137
138**Fetch Single Page When:**
139- Simple reference queries ("what props...")
140- Troubleshooting lookups
141- General overview requests
142
143**Stop Fetching When:**
144- Already fetched 3-4 pages
145- Query is answered sufficiently
146- Additional pages would be tangential
147
148### 3. Category-Aware Suggestions
149
150After fetching documentation, always suggest 2-3 related components using these category groupings:
151
152**Chat & Messaging:**
153- Message, Conversation, Response, Loader, Prompt Input, Suggestion, Actions
154
155**AI-Specific Features:**
156- Tool, Reasoning, Chain of Thought, Plan, Task, Queue, Artifact
157
158**Workflow & Canvas:**
159- Canvas, Node, Edge, Connection, Toolbar, Panel, Controls
160
161**UI Enhancements:**
162- Code Block, Image, Sources, Inline Citation, Web Preview, Shimmer, Open in Chat, Confirmation, Context, Branch
163
164**Common Pairings:**
165- Message → Conversation, Response, Actions
166- Reasoning → Chain of Thought, Plan, Task
167- Canvas → Node, Edge, Toolbar, Panel
168- Prompt Input → Suggestion, Confirmation
169- Tool → Artifact, Code Block
170- Sources → Inline Citation
171
172Suggest components from:
1731. Same category (highest priority)
1742. Commonly used together
1753. Next implementation step
176
177### 4. Installation Command Generation
178
179Always include installation commands in responses:
180
181**Single component:**
182```
183**Installation:**
184`npx ai-elements add [component-name]`
185```
186
187**Multiple components:**
188```
189**Installation:**
190`npx ai-elements add message conversation response`
191```
192
193**All components:**
194```
195**Installation (all components):**
196`npx ai-elements add @ai-elements/all`
197```
198
199**For workflow components (Canvas, Node, Edge, etc.):**
200```
201**Installation:**
202`npx ai-elements add canvas` (requires React Flow)
203```
204
205## Response Formats
206
207### Single-Page Response Format
208
209```markdown
210I've fetched the [Component Name] documentation from AI Elements.
211
212**Installation:**
213`npx ai-elements add [component-name]`
214
215[Full component documentation content from file]
216
217---
218
219**Related Components:**
220- **[Component 1]** - [Brief description of relationship]
221- **[Component 2]** - [Brief description of relationship]
222- **[Component 3]** - [Brief description of relationship]
223```
224
225### Multi-Page Response Format
226
227```markdown
228This requires understanding multiple components. I've fetched:
229
230---
231
232## [Example/Component 1 Name]
233
234**Installation:**
235`npx ai-elements add [component-name]`
236
237[Full content from file]
238
239---
240
241## [Component 2 Name]
242
243**Installation:**
244`npx ai-elements add [component-name]`
245
246[Full content from file]
247
248---
249
250## [Component 3 Name] (if needed)
251
252**Installation:**
253`npx ai-elements add [component-name]`
254
255[Full content from file]
256
257---
258
259**Integration Pattern:**
260[2-3 sentences explaining how these components work together, referencing examples from the documentation]
261
262**Related Resources:**
263- **[Additional Component]** - [Description]
264- **[Tutorial/Example]** - [Description]
265```
266
267## Implementation Guidance Scope
268
269### ✅ DO Provide:
270
2711. **Pattern Explanations from Examples**
272 - "The chatbot example shows using Conversation with auto-scroll"
273 - "The workflow example demonstrates connecting Canvas + Node + Edge"
274
2752. **Component Integration Patterns**
276 - "Typically used together: Message inside Conversation with Response for AI output"
277 - "Canvas requires Node and Edge components for complete workflows"
278
2793. **Best Practices from Docs**
280 - "The docs recommend using Loader during AI response generation"
281 - "Prompt Input includes built-in file attachment handling"
282
2834. **Common Pitfall Warnings**
284 - "Note: Canvas requires React Flow to be installed separately"
285 - "Response component uses Streamdown for markdown rendering"
286
2875. **Installation Guidance**
288 - "Install all chat components: `npx ai-elements add message conversation response`"
289 - "Prerequisites: Next.js with AI SDK and shadcn/ui"
290
291### ❌ DON'T Provide:
292
2931. **Complete Custom Implementations** - Reference examples instead of generating new code
2942. **Customization Beyond Docs** - Only suggest what's documented
2953. **Debugging User Code** - Can reference troubleshooting docs only
2964. **Undocumented Features** - Only describe documented capabilities
2975. **Framework Integration** (unless documented) - Stick to documented Next.js + AI SDK patterns
298
299## Documentation Access
300
301### File Structure
302
303All documentation is bundled in the skill at:
304```
305.claude/skills/ai-elements/
306├── SKILL.md (this file)
307├── INDEX.md (searchable component reference)
308└── docs/
309 ├── README.md (overview and categories)
310 ├── introduction.md (getting started)
311 ├── usage.md (implementation patterns)
312 ├── troubleshooting.md (common issues)
313 ├── components/ (31 component files)
314 │ ├── message.md
315 │ ├── conversation.md
316 │ ├── reasoning.md
317 │ └── ...
318 └── examples/ (3 tutorial files)
319 ├── chatbot.md
320 ├── v0.md
321 └── workflow.md
322```
323
324### How to Access Documentation
325
3261. **Search INDEX.md** for component names, keywords, or categories
3272. **Read files** using the Read tool with absolute paths:
328 - Components: `.claude/skills/ai-elements/docs/components/[name].md`
329 - Examples: `.claude/skills/ai-elements/docs/examples/[name].md`
330 - General: `.claude/skills/ai-elements/docs/[name].md`
3313. **Extract metadata** from INDEX.md entries (keywords, related components, categories)
3324. **Generate suggestions** using category groupings and common pairings
333
334## Query Interpretation Examples
335
336### Example 1: Building a Feature
337
338**Query:** "How do I build a chat interface with AI responses?"
339
340**Routing:** Implementation query → Examples + Components
341
342**Process:**
3431. Search INDEX.md for "chat", "conversation", "chatbot"
3442. Identify relevant example: chatbot.md
3453. Read `.claude/skills/ai-elements/docs/examples/chatbot.md`
3464. Extract key components mentioned: Conversation, Message, Response
3475. Read those component files
3486. Format multi-page response with integration pattern
349
350**Response includes:**
351- Installation commands for all components
352- Full chatbot example
353- Component API references
354- Integration pattern explanation
355
356### Example 2: API Lookup
357
358**Query:** "What props does the Reasoning component accept?"
359
360**Routing:** API reference query → Component only
361
362**Process:**
3631. Look up "reasoning" in INDEX.md
3642. Read `.claude/skills/ai-elements/docs/components/reasoning.md`
3653. Extract category from INDEX.md: "AI-Specific Features"
3664. Find related components: Chain of Thought, Plan, Task
367
368**Response includes:**
369- Installation: `npx ai-elements add reasoning`
370- Full Reasoning component documentation
371- Props table and usage examples
372- Suggestions: Chain of Thought, Plan, Task
373
374### Example 3: Category Exploration
375
376**Query:** "What components help with workflow visualization?"
377
378**Routing:** Category query → README + key component
379
380**Process:**
3811. Search INDEX.md for "workflow" category
3822. Read `.claude/skills/ai-elements/docs/README.md`
3833. Extract Workflow & Canvas category section
3844. Optionally read Canvas component as primary example
385
386**Response includes:**
387- List of all workflow components
388- Brief descriptions from README
389- Installation command for workflow set
390- Suggestion to check workflow example
391
392### Example 4: Getting Started
393
394**Query:** "I'm new to AI Elements, how do I get started?"
395
396**Routing:** General guidance → Overview docs
397
398**Process:**
3991. Read `.claude/skills/ai-elements/docs/introduction.md`
4002. Read `.claude/skills/ai-elements/docs/usage.md`
401
402**Response includes:**
403- Installation instructions
404- Prerequisites checklist
405- Basic usage patterns
406- Suggestions to explore chatbot/v0/workflow examples
407
408## Important Notes
409
410### Prerequisites
411
412Always mention when relevant:
413- Node.js 18 or later
414- Next.js project
415- AI SDK installed
416- shadcn/ui installed
417- React Flow (for workflow components only)
418
419### Component Customization
420
421Components are installed as source files into the user's codebase (typically `@/components/ai-elements/`), making them fully customizable. Reference `usage.md` for customization guidance.
422
423### AI SDK Integration
424
425All components are designed for use with the AI SDK. Reference integration patterns with `useChat`, `useCompletion`, and other AI SDK hooks when showing examples.
426
427### React Flow Dependency
428
429Canvas, Node, Edge, Connection, Toolbar, Panel, and Controls components require React Flow to be installed separately. Always note this dependency when fetching workflow component documentation.
430
431## Workflow Summary
432
433**For every query:**
434
4351. **Identify intent** → Implementation, API reference, category, or general guidance
4362. **Route appropriately** → Determine which files to fetch
4373. **Search INDEX.md** → Find relevant components, keywords, categories
4384. **Read files** → Use Read tool to access documentation
4395. **Format response** → Include installation, content, integration pattern, suggestions
4406. **Suggest related** → Use category groupings and common pairings
441
442**Keep responses:**
443- Focused on documented information
444- Formatted with clear installation commands
445- Enriched with relevant component suggestions
446- Practical with integration patterns from examples