Kendo UI for Vue
With the Vue AI Prompt, you let your users write prompts and interact with AI-generated responses directly in your app. Stream responses in real time for immediate feedback, and connect OpenAI to power intelligent suggestions. Customize buttons, inputs, and views, and integrate the Speech-to-Text component to let users dictate prompts. This gives your app a flexible, responsive AI experience that feels natural and tailored to your users’ workflow.
The Vue AI Prompt can stream responses in real time, letting users see content as it’s generated. Enable streaming, handle generation with onPromptRequest
event, and stop it with onCancel
, while updating the output progressively. This keeps users engaged, especially for long responses or chat-like interactions where immediate feedback matters.
See the Vue AI Prompt streaming demo
The Vue AI Prompt makes it simple to connect your app to services like OpenAI or Azure OpenAI. By hooking into the onPromptRequest
event, you can pass user input to your AI service and display the response right in the component. Whether you’re building with OpenAI or Azure, integration is straightforward—configure your keys and model, and the component handles the flow, allowing you to focus on delivering AI-powered features to your users.
The component enables you to provide sample prompt suggestions that can be submitted to the LLM with a single click. Simply set a custom suggestionsList and pass it to the promptSuggestions prop of the AIPromptView component.
Get more flexibility by customizing the toolbar and tailoring views to your specific needs. Define custom tools inside the AI Prompt toolbar or build a custom PromptContent
view to match your design or workflow. You can replace the default generate button and input with custom components and enable voice input through the integrated Speech-to-Text component. In addition, you can leverage structured response handling events to manipulate or format output before it reaches users. This lets you integrate third-party libraries for custom styling, rich text, or specialized formats, giving you full control over both the input experience and the generated results.
The Kendo UI for Vue AI Prompt empowers you to easily define custom commands that can be used by users to fine-tune a response.
To ensure smooth interaction, the component emits several events that enable you to control its behavior upon user interaction:
onActiveviewchange
– fires when the active view is changed onCommandexecute
– fires each time a user clicks a command in the Command view onPromptrequest
– fires when the user clicks the Generate button in the Prompt view The Kendo UI for Vue AI Prompt component has built-in localization and right-to-left (RTL) support to accommodate users who communicate in a right-to-left language script, such as Arabic and Hebrew.