diff --git a/frontend/src/components/shared/CopilotKit/IntegrationExample.tsx b/frontend/src/components/shared/CopilotKit/IntegrationExample.tsx new file mode 100644 index 00000000..9b2eb30d --- /dev/null +++ b/frontend/src/components/shared/CopilotKit/IntegrationExample.tsx @@ -0,0 +1,245 @@ +/** + * Integration Example Component + * Shows how to integrate PlatformPersonaChat into existing editors + * Demonstrates practical usage patterns for different platforms + */ + +import React from 'react'; +import { PlatformPersonaProvider, PlatformPersonaChat } from '../PersonaContext'; +import { PlatformType } from '../../types/PlatformPersonaTypes'; + +// Example: LinkedIn Writer Integration +export const LinkedInWriterWithPersonaChat: React.FC = () => { + return ( +
Upload Image/Video
++ See how to integrate persona-aware AI chat into existing content editors +
++ AI responses automatically match your writing style, vocabulary preferences, and brand voice +
++ Get platform-specific advice for character limits, hashtag strategies, and engagement patterns +
++ AI understands your content goals, audience, and industry context for better suggestions +
++ Chat directly in your editor while maintaining focus on content creation +
++ 1. Wrap your editor with PlatformPersonaProvider: This provides persona context to all child components. +
++ 2. Add PlatformPersonaChat component: Place it where you want the AI chat interface. +
++ 3. Configure platform-specific settings: The chat automatically adapts to each platform's requirements. +
++ 4. Customize appearance: Use className and other props to match your editor's design. +
+Loading {platform} persona chat...
+Unable to load persona data for {platform}.
++ {corePersona.archetype} • {corePersona.confidence_score}% confidence +
+ )} ++ Test the persona-aware CopilotKit integration across different platforms +
++ AI-powered content assistance with your personal writing style +
++ Context Injection: The chat automatically receives your writing persona, + linguistic fingerprint, and platform-specific constraints through CopilotKit's context system. +
++ Dynamic System Messages: System messages are generated dynamically based on + your persona data and selected platform, ensuring AI responses match your writing style. +
++ Platform Optimization: Each platform has specific character limits, + engagement patterns, and best practices that are automatically incorporated into AI responses. +
+