New to Kendo UI for jQueryStart a free 30-day trial

Templates

The InlineAIPrompt provides template options that enable you to customize the rendering of its output content.

For a complete example, refer to the demo on customizing the InlineAIPrompt templates.

Response Template

The InlineAIPrompt component provides the ability to customize the appearance of the AI response that is displayed in the output card.

To customize the response appearance, handle the responseTemplate function and customize the rendering of the AI response.

js
    responseTemplate: function(response) {
        return `
            <p><strong>Prompt:</strong></p>
            <p>${response.prompt}</p>
            <br/>
            <p><strong>Output:</strong></p>
            <p><strong>${response.output}</strong></p>
        `
    },

See Also

In this article
Response TemplateSee Also
Not finding the help you need?
Contact Support