{% extends 'base.html.twig' %} {# EXAMPLE: How to use Karizma AI Suggestions in your forms This is a simple example showing two ways to integrate AI suggestions: 1. Using data-ai-suggest attribute (easiest) 2. Using JavaScript (for more control) #} {% block body %}
Example Form with AI Suggestions
{# METHOD 1: Simple - Just add data-ai-suggest attribute #}
AI suggestion will appear when you leave this field
{# METHOD 1: Textarea with AI #}
AI will improve your text automatically
{# Regular field without AI #}
This field does not have AI suggestions
{# Another AI-enabled field #}
Programmatic Attachment Example
{# These fields will have AI attached via JavaScript #}
{% endblock %} {% block javascripts %} {{ parent() }} {# IMPORTANT: Load the library first #} {# METHOD 2: Programmatic attachment #} {% endblock %}