Custom AI Assistant Behavior
Learn how to customize the behavior of your AI assistant.
instructions
Parameter (Recommended)
The instructions
parameter is the recommended way to customize AI assistant behavior. It will remain compatible with performance optimizations to the CopilotKit platform.
It can be customized for Copilot UI as well as programmatically:
Copilot UI
Copilot UI components implements CopilotChatProps
, which accepts an instructions
property:
Customize makeSystemMessage
(Not Recommended)
This approach is not recommended as it may interfere with more advanced optimizations we are experimenting with, but it is available should you need it.
For cases requiring complete control over the system message, you can use the makeSystemMessage
function.