Skip to content

Use learning options and groups #54

Answered by ahmadfaizalbh
mordi-d asked this question in Q&A
Discussion options

You must be logged in to vote

Learn

Learn tag usage Example:

{% block %}
    {% client %}Remember (?P<object>.*) (?P<description>(is|are) .*){% endclient %}
    {% response %}I will remember that %object %description {% endresponse %}
    {% learn %}
      {% group %}
        {% block %}
            {% client %}(Do you know|tell me) about %object{% endclient %}
            {% response %}%object %description{% endresponse %}
        {% endblock %}
      {% endgroup %}
    {% endlearn %}
{% endblock %}

when above is present in your templates you could have sample conversation as follows

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahmadfaizalbh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants